{"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 organization."},{"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 organization."},{"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":"Organization management: avatar, invitations, billing context, and usage."},{"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":"Tracker","description":"Tracker script version metadata and integrity hashes for supported client integrations."},{"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 organizations; 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":{"/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","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"enabled":{"type":"boolean"},"triggerType":{"type":"string"},"triggerConditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"destinations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"alarmId":{"type":"string"},"type":{"type":"string"},"identifier":{"type":"string"},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","alarmId","type","identifier","config","createdAt","updatedAt"]}}},"required":["id","organizationId","websiteId","name","description","enabled","triggerType","triggerConditions","createdAt","updatedAt","destinations"]}}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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,"maxItems":10,"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","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"enabled":{"type":"boolean"},"triggerType":{"type":"string"},"triggerConditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"destinations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"alarmId":{"type":"string"},"type":{"type":"string"},"identifier":{"type":"string"},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","alarmId","type","identifier","config","createdAt","updatedAt"]}}},"required":["id","organizationId","websiteId","name","description","enabled","triggerType","triggerConditions","createdAt","updatedAt","destinations"]}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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","maxItems":10,"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","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"enabled":{"type":"boolean"},"triggerType":{"type":"string"},"triggerConditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"destinations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"alarmId":{"type":"string"},"type":{"type":"string"},"identifier":{"type":"string"},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","alarmId","type","identifier","config","createdAt","updatedAt"]}}},"required":["id","organizationId","websiteId","name","description","enabled","triggerType","triggerConditions","createdAt","updatedAt","destinations"]}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":{"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"]},"chartType":{"type":"string"},"color":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"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","chartContext","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":{"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"]},"chartType":{"type":"string"},"color":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"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","chartContext","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":{"annotationType":{"enum":["point","line","range"],"type":"string"},"xValue":{"anyOf":[{"type":"string","format":"date"},{"type":"string","format":"date-time"}]},"xEndValue":{"anyOf":[{"type":"string","format":"date"},{"type":"string","format":"date-time"}]},"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"]},"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":["annotationType","xValue","websiteId","chartType","chartContext","text"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"annotationType":{"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"]},"chartType":{"type":"string"},"color":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"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","chartContext","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":{"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"]},"chartType":{"type":"string"},"color":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"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","chartContext","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":{"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"},"websiteId":{"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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"},"limit":{"type":"integer","minimum":1,"maximum":200,"default":200},"offset":{"type":"integer","minimum":0,"maximum":9007199254740991,"default":0}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"defaultValue":{"type":"boolean"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"dependencies":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"environment":{"anyOf":[{"type":"string"},{"type":"null"}]},"id":{"type":"string"},"key":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"organizationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"payload":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"persistAcrossAuth":{"type":"boolean"},"rules":{"anyOf":[{"type":"array","items":{"not":{}}},{"type":"null"}]},"rolloutBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"rolloutPercentage":{"anyOf":[{"type":"number"},{"type":"null"}]},"status":{"enum":["active","inactive","archived"],"type":"string"},"targetGroupIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"targetGroups":{"type":"array","items":{"type":"object","properties":{"color":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"rules":{"type":"array","items":{"not":{}}},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"websiteId":{"type":"string"}},"required":["color","createdAt","createdBy","deletedAt","description","id","name","rules","updatedAt","websiteId"]}},"type":{"enum":["boolean","rollout","multivariant"],"type":"string"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"variants":{"anyOf":[{"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"]}},{"type":"null"}]},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["createdAt","createdBy","defaultValue","deletedAt","dependencies","description","environment","id","key","name","organizationId","payload","persistAcrossAuth","rules","rolloutBy","rolloutPercentage","status","targetGroupIds","type","updatedAt","userId","variants","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/flags/stats":{"post":{"operationId":"flags.stats","summary":"Get flag evaluation stats","description":"Returns recent feature flag evaluation stats for a website. Requires scope read permission.","tags":["Flags"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"},"days":{"type":"integer","minimum":1,"maximum":90,"default":30}},"required":["websiteId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"evaluatedUsers":{"type":"number"},"evaluationCount":{"type":"number"},"identifiedUsers":{"type":"number"},"key":{"type":"string"},"lastEvaluatedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]}},"required":["evaluatedUsers","evaluationCount","identifiedUsers","key","lastEvaluatedAt"]}}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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","properties":{"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"defaultValue":{"type":"boolean"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"dependencies":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"environment":{"anyOf":[{"type":"string"},{"type":"null"}]},"id":{"type":"string"},"key":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"organizationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"payload":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"persistAcrossAuth":{"type":"boolean"},"rules":{"anyOf":[{"type":"array","items":{"not":{}}},{"type":"null"}]},"rolloutBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"rolloutPercentage":{"anyOf":[{"type":"number"},{"type":"null"}]},"status":{"enum":["active","inactive","archived"],"type":"string"},"targetGroupIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"targetGroups":{"type":"array","items":{"type":"object","properties":{"color":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"rules":{"type":"array","items":{"not":{}}},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"websiteId":{"type":"string"}},"required":["color","createdAt","createdBy","deletedAt","description","id","name","rules","updatedAt","websiteId"]}},"type":{"enum":["boolean","rollout","multivariant"],"type":"string"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"variants":{"anyOf":[{"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"]}},{"type":"null"}]},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["createdAt","createdBy","defaultValue","deletedAt","dependencies","description","environment","id","key","name","organizationId","payload","persistAcrossAuth","rules","rolloutBy","rolloutPercentage","status","targetGroupIds","type","updatedAt","userId","variants","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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","properties":{"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"defaultValue":{"type":"boolean"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"dependencies":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"environment":{"anyOf":[{"type":"string"},{"type":"null"}]},"id":{"type":"string"},"key":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"organizationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"payload":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"persistAcrossAuth":{"type":"boolean"},"rules":{"anyOf":[{"type":"array","items":{"not":{}}},{"type":"null"}]},"rolloutBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"rolloutPercentage":{"anyOf":[{"type":"number"},{"type":"null"}]},"status":{"enum":["active","inactive","archived"],"type":"string"},"targetGroupIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"targetGroups":{"type":"array","items":{"type":"object","properties":{"color":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"rules":{"type":"array","items":{"not":{}}},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"websiteId":{"type":"string"}},"required":["color","createdAt","createdBy","deletedAt","description","id","name","rules","updatedAt","websiteId"]}},"type":{"enum":["boolean","rollout","multivariant"],"type":"string"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"variants":{"anyOf":[{"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"]}},{"type":"null"}]},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["createdAt","createdBy","defaultValue","deletedAt","dependencies","description","environment","id","key","name","organizationId","payload","persistAcrossAuth","rules","rolloutBy","rolloutPercentage","status","targetGroupIds","type","updatedAt","userId","variants","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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","properties":{"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"defaultValue":{"type":"boolean"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"dependencies":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"environment":{"anyOf":[{"type":"string"},{"type":"null"}]},"id":{"type":"string"},"key":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"organizationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"payload":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"persistAcrossAuth":{"type":"boolean"},"rules":{"anyOf":[{"type":"array","items":{"not":{}}},{"type":"null"}]},"rolloutBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"rolloutPercentage":{"anyOf":[{"type":"number"},{"type":"null"}]},"status":{"enum":["active","inactive","archived"],"type":"string"},"targetGroupIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"targetGroups":{"type":"array","items":{"type":"object","properties":{"color":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"rules":{"type":"array","items":{"not":{}}},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"websiteId":{"type":"string"}},"required":["color","createdAt","createdBy","deletedAt","description","id","name","rules","updatedAt","websiteId"]}},"type":{"enum":["boolean","rollout","multivariant"],"type":"string"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"variants":{"anyOf":[{"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"]}},{"type":"null"}]},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["createdAt","createdBy","defaultValue","deletedAt","dependencies","description","environment","id","key","name","organizationId","payload","persistAcrossAuth","rules","rolloutBy","rolloutPercentage","status","targetGroupIds","type","updatedAt","userId","variants","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":{"anyOf":[{"type":"string"},{"type":"null"}]},"targetGroupIds":{"type":"array","items":{"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":{"anyOf":[{"type":"string"},{"type":"null"}]},"defaultValue":{"type":"boolean"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"dependencies":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"environment":{"anyOf":[{"type":"string"},{"type":"null"}]},"id":{"type":"string"},"key":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"organizationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"payload":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"persistAcrossAuth":{"type":"boolean"},"rules":{"anyOf":[{"type":"array","items":{"not":{}}},{"type":"null"}]},"rolloutBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"rolloutPercentage":{"anyOf":[{"type":"number"},{"type":"null"}]},"status":{"enum":["active","inactive","archived"],"type":"string"},"targetGroupIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"targetGroups":{"type":"array","items":{"type":"object","properties":{"color":{"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"id":{"type":"string"},"name":{"type":"string"},"rules":{"type":"array","items":{"not":{}}},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"websiteId":{"type":"string"}},"required":["color","createdAt","createdBy","deletedAt","description","id","name","rules","updatedAt","websiteId"]}},"type":{"enum":["boolean","rollout","multivariant"],"type":"string"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"variants":{"anyOf":[{"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"]}},{"type":"null"}]},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["createdAt","createdBy","defaultValue","deletedAt","dependencies","description","environment","id","key","name","organizationId","payload","persistAcrossAuth","rules","rolloutBy","rolloutPercentage","status","targetGroupIds","type","updatedAt","userId","variants","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"enum":["contains","ends_with","equals","in","not_contains","not_equals","not_in","starts_with"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}},{"type":"null"}]},"id":{"type":"string"},"ignoreHistoricData":{"type":"boolean"},"isActive":{"type":"boolean"},"name":{"type":"string"},"steps":{"type":"array","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"]}},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["createdAt","description","filters","id","ignoreHistoricData","isActive","name","steps","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"filters":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"enum":["contains","ends_with","equals","in","not_contains","not_equals","not_in","starts_with"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}},{"type":"null"}]},"id":{"type":"string"},"ignoreHistoricData":{"type":"boolean"},"isActive":{"type":"boolean"},"name":{"type":"string"},"steps":{"type":"array","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"]}},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"websiteId":{"type":"string"}},"required":["createdAt","createdBy","deletedAt","description","filters","id","ignoreHistoricData","isActive","name","steps","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":["contains","ends_with","equals","in","not_contains","not_equals","not_in","starts_with"],"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":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"filters":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"enum":["contains","ends_with","equals","in","not_contains","not_equals","not_in","starts_with"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}},{"type":"null"}]},"id":{"type":"string"},"ignoreHistoricData":{"type":"boolean"},"isActive":{"type":"boolean"},"name":{"type":"string"},"steps":{"type":"array","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"]}},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"websiteId":{"type":"string"}},"required":["createdAt","createdBy","deletedAt","description","filters","id","ignoreHistoricData","isActive","name","steps","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":["contains","ends_with","equals","in","not_contains","not_equals","not_in","starts_with"],"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":{"anyOf":[{"type":"string"},{"type":"null"}]},"deletedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"filters":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"enum":["contains","ends_with","equals","in","not_contains","not_equals","not_in","starts_with"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}},{"type":"null"}]},"id":{"type":"string"},"ignoreHistoricData":{"type":"boolean"},"isActive":{"type":"boolean"},"name":{"type":"string"},"steps":{"type":"array","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"]}},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"websiteId":{"type":"string"}},"required":["createdAt","createdBy","deletedAt","description","filters","id","ignoreHistoricData","isActive","name","steps","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":{"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"},"cohort":{"type":"object","properties":{"filters":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"field":{"enum":["browser_name","device_type","os_name","country","utm_source","utm_medium","utm_campaign"],"type":"string"},"operator":{"enum":["equals","not_equals","in","not_in"],"type":"string"},"value":{"anyOf":[{"type":"string","minLength":1},{"type":"array","minItems":1,"maxItems":50,"items":{"type":"string","minLength":1}}]}},"required":["field","operator","value"],"additionalProperties":false}}},"required":["filters"],"additionalProperties":false,"description":"Read-only cohort. Funnel filters select first-step visitors; subsequent ordered steps may have different context. Goal filters select page-view visitors and matching completions. Saved filters are ANDed. Use the referrer breakdown tool to compare source groups. These are visitors, not attempts."},"funnelId":{"type":"string"},"websiteId":{"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"},"duration_available":{"type":"boolean"},"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_context_available":{"type":"boolean"},"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_context_available","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":{"available":{"type":"boolean"},"total_errors":{"type":"number"},"sessions_with_errors":{"type":"number"},"dropoffs_with_errors":{"type":"number"},"error_correlation_rate":{"type":"number"}},"required":["available","total_errors","sessions_with_errors","dropoffs_with_errors","error_correlation_rate"]},"measurement":{"type":"object","properties":{"websiteId":{"type":"string"},"definitionId":{"type":"string"},"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"},"definition":{"anyOf":[{"type":"object","properties":{"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"enum":["event_name","path","referrer","country","city","device_type","browser_name","os_name","language","utm_source","utm_medium","utm_campaign","utm_term","utm_content","user_agent","screen_resolution"],"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"],"additionalProperties":false},"default":[]}},"required":["type","target"]},{"type":"object","properties":{"steps":{"type":"array","minItems":2,"items":{"type":"object","properties":{"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string"},"name":{"type":"string","minLength":1},"conditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["type","target","name"]}},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"enum":["event_name","path","referrer","country","city","device_type","browser_name","os_name","language","utm_source","utm_medium","utm_campaign","utm_term","utm_content","user_agent","screen_resolution"],"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"],"additionalProperties":false},"default":[]}},"required":["steps"]}]}},"required":["websiteId","definitionId","startDate","endDate","definition"]},"savedDefinition":{"anyOf":[{"type":"object","properties":{"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"enum":["event_name","path","referrer","country","city","device_type","browser_name","os_name","language","utm_source","utm_medium","utm_campaign","utm_term","utm_content","user_agent","screen_resolution"],"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"],"additionalProperties":false},"default":[]}},"required":["type","target"]},{"type":"object","properties":{"steps":{"type":"array","minItems":2,"items":{"type":"object","properties":{"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string"},"name":{"type":"string","minLength":1},"conditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["type","target","name"]}},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"enum":["event_name","path","referrer","country","city","device_type","browser_name","os_name","language","utm_source","utm_medium","utm_campaign","utm_term","utm_content","user_agent","screen_resolution"],"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"],"additionalProperties":false},"default":[]}},"required":["steps"]}]},"cohort":{"type":"object","properties":{"filters":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"field":{"enum":["browser_name","device_type","os_name","country","utm_source","utm_medium","utm_campaign"],"type":"string"},"operator":{"enum":["equals","not_equals","in","not_in"],"type":"string"},"value":{"anyOf":[{"type":"string","minLength":1},{"type":"array","minItems":1,"maxItems":50,"items":{"type":"string","minLength":1}}]}},"required":["field","operator","value"],"additionalProperties":false}}},"required":["filters"],"additionalProperties":false,"description":"Read-only cohort. Funnel filters select first-step visitors; subsequent ordered steps may have different context. Goal filters select page-view visitors and matching completions. Saved filters are ANDed. Use the referrer breakdown tool to compare source groups. These are visitors, not attempts."}},"required":["overall_conversion_rate","total_users_entered","total_users_completed","avg_completion_time","avg_completion_time_formatted","biggest_dropoff_step","biggest_dropoff_rate","duration_available","steps_analytics","error_insights","measurement","savedDefinition"]}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":{"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"},"cohort":{"type":"object","properties":{"filters":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"field":{"enum":["browser_name","device_type","os_name","country","utm_source","utm_medium","utm_campaign"],"type":"string"},"operator":{"enum":["equals","not_equals","in","not_in"],"type":"string"},"value":{"anyOf":[{"type":"string","minLength":1},{"type":"array","minItems":1,"maxItems":50,"items":{"type":"string","minLength":1}}]}},"required":["field","operator","value"],"additionalProperties":false}}},"required":["filters"],"additionalProperties":false,"description":"Read-only cohort. Funnel filters select first-step visitors; subsequent ordered steps may have different context. Goal filters select page-view visitors and matching completions. Saved filters are ANDed. Use the referrer breakdown tool to compare source groups. These are visitors, not attempts."},"funnelId":{"type":"string"},"websiteId":{"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"]}},"measurement":{"type":"object","properties":{"websiteId":{"type":"string"},"definitionId":{"type":"string"},"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"},"definition":{"anyOf":[{"type":"object","properties":{"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"enum":["event_name","path","referrer","country","city","device_type","browser_name","os_name","language","utm_source","utm_medium","utm_campaign","utm_term","utm_content","user_agent","screen_resolution"],"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"],"additionalProperties":false},"default":[]}},"required":["type","target"]},{"type":"object","properties":{"steps":{"type":"array","minItems":2,"items":{"type":"object","properties":{"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string"},"name":{"type":"string","minLength":1},"conditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["type","target","name"]}},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"enum":["event_name","path","referrer","country","city","device_type","browser_name","os_name","language","utm_source","utm_medium","utm_campaign","utm_term","utm_content","user_agent","screen_resolution"],"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"],"additionalProperties":false},"default":[]}},"required":["steps"]}]}},"required":["websiteId","definitionId","startDate","endDate","definition"]},"savedDefinition":{"anyOf":[{"type":"object","properties":{"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"enum":["event_name","path","referrer","country","city","device_type","browser_name","os_name","language","utm_source","utm_medium","utm_campaign","utm_term","utm_content","user_agent","screen_resolution"],"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"],"additionalProperties":false},"default":[]}},"required":["type","target"]},{"type":"object","properties":{"steps":{"type":"array","minItems":2,"items":{"type":"object","properties":{"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string"},"name":{"type":"string","minLength":1},"conditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["type","target","name"]}},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"enum":["event_name","path","referrer","country","city","device_type","browser_name","os_name","language","utm_source","utm_medium","utm_campaign","utm_term","utm_content","user_agent","screen_resolution"],"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"],"additionalProperties":false},"default":[]}},"required":["steps"]}]},"cohort":{"type":"object","properties":{"filters":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"field":{"enum":["browser_name","device_type","os_name","country","utm_source","utm_medium","utm_campaign"],"type":"string"},"operator":{"enum":["equals","not_equals","in","not_in"],"type":"string"},"value":{"anyOf":[{"type":"string","minLength":1},{"type":"array","minItems":1,"maxItems":50,"items":{"type":"string","minLength":1}}]}},"required":["field","operator","value"],"additionalProperties":false}}},"required":["filters"],"additionalProperties":false,"description":"Read-only cohort. Funnel filters select first-step visitors; subsequent ordered steps may have different context. Goal filters select page-view visitors and matching completions. Saved filters are ANDed. Use the referrer breakdown tool to compare source groups. These are visitors, not attempts."}},"required":["referrer_analytics","measurement","savedDefinition"]}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":{"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"},"cohort":{"not":{}},"funnelId":{"type":"string"},"websiteId":{"type":"string"},"linkId":{"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"},"duration_available":{"type":"boolean"},"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_context_available":{"type":"boolean"},"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_context_available","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":{"available":{"type":"boolean"},"total_errors":{"type":"number"},"sessions_with_errors":{"type":"number"},"dropoffs_with_errors":{"type":"number"},"error_correlation_rate":{"type":"number"}},"required":["available","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","duration_available","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":["contains","ends_with","equals","in","not_contains","not_equals","not_in","starts_with"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}},{"type":"null"}]},"ignoreHistoricData":{"type":"boolean"},"isActive":{"type":"boolean"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":["contains","ends_with","equals","in","not_contains","not_equals","not_in","starts_with"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}},{"type":"null"}]},"ignoreHistoricData":{"type":"boolean"},"isActive":{"type":"boolean"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":["contains","ends_with","equals","in","not_contains","not_equals","not_in","starts_with"],"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":["contains","ends_with","equals","in","not_contains","not_equals","not_in","starts_with"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}},{"type":"null"}]},"ignoreHistoricData":{"type":"boolean"},"isActive":{"type":"boolean"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":["contains","ends_with","equals","in","not_contains","not_equals","not_in","starts_with"],"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":["contains","ends_with","equals","in","not_contains","not_equals","not_in","starts_with"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}},{"type":"null"}]},"ignoreHistoricData":{"type":"boolean"},"isActive":{"type":"boolean"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":{"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"},"cohort":{"type":"object","properties":{"filters":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"field":{"enum":["browser_name","device_type","os_name","country","utm_source","utm_medium","utm_campaign"],"type":"string"},"operator":{"enum":["equals","not_equals","in","not_in"],"type":"string"},"value":{"anyOf":[{"type":"string","minLength":1},{"type":"array","minItems":1,"maxItems":50,"items":{"type":"string","minLength":1}}]}},"required":["field","operator","value"],"additionalProperties":false}}},"required":["filters"],"additionalProperties":false,"description":"Read-only cohort. Funnel filters select first-step visitors; subsequent ordered steps may have different context. Goal filters select page-view visitors and matching completions. Saved filters are ANDed. Use the referrer breakdown tool to compare source groups. These are visitors, not attempts."},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"enum":["contains","ends_with","equals","in","not_contains","not_equals","not_in","starts_with"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}},"goalId":{"type":"string"},"websiteId":{"type":"string"}},"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"},"duration_available":{"type":"boolean"},"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_context_available":{"type":"boolean"},"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_context_available","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":{"available":{"type":"boolean"},"total_errors":{"type":"number"},"sessions_with_errors":{"type":"number"},"dropoffs_with_errors":{"type":"number"},"error_correlation_rate":{"type":"number"}},"required":["available","total_errors","sessions_with_errors","dropoffs_with_errors","error_correlation_rate"]},"measurement":{"type":"object","properties":{"websiteId":{"type":"string"},"definitionId":{"type":"string"},"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"},"definition":{"anyOf":[{"type":"object","properties":{"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"enum":["event_name","path","referrer","country","city","device_type","browser_name","os_name","language","utm_source","utm_medium","utm_campaign","utm_term","utm_content","user_agent","screen_resolution"],"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"],"additionalProperties":false},"default":[]}},"required":["type","target"]},{"type":"object","properties":{"steps":{"type":"array","minItems":2,"items":{"type":"object","properties":{"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string"},"name":{"type":"string","minLength":1},"conditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["type","target","name"]}},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"enum":["event_name","path","referrer","country","city","device_type","browser_name","os_name","language","utm_source","utm_medium","utm_campaign","utm_term","utm_content","user_agent","screen_resolution"],"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"],"additionalProperties":false},"default":[]}},"required":["steps"]}]}},"required":["websiteId","definitionId","startDate","endDate","definition"]},"savedDefinition":{"anyOf":[{"type":"object","properties":{"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"enum":["event_name","path","referrer","country","city","device_type","browser_name","os_name","language","utm_source","utm_medium","utm_campaign","utm_term","utm_content","user_agent","screen_resolution"],"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"],"additionalProperties":false},"default":[]}},"required":["type","target"]},{"type":"object","properties":{"steps":{"type":"array","minItems":2,"items":{"type":"object","properties":{"type":{"enum":["PAGE_VIEW","EVENT","CUSTOM"],"type":"string"},"target":{"type":"string"},"name":{"type":"string","minLength":1},"conditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["type","target","name"]}},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"enum":["event_name","path","referrer","country","city","device_type","browser_name","os_name","language","utm_source","utm_medium","utm_campaign","utm_term","utm_content","user_agent","screen_resolution"],"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"],"additionalProperties":false},"default":[]}},"required":["steps"]}]},"cohort":{"type":"object","properties":{"filters":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"field":{"enum":["browser_name","device_type","os_name","country","utm_source","utm_medium","utm_campaign"],"type":"string"},"operator":{"enum":["equals","not_equals","in","not_in"],"type":"string"},"value":{"anyOf":[{"type":"string","minLength":1},{"type":"array","minItems":1,"maxItems":50,"items":{"type":"string","minLength":1}}]}},"required":["field","operator","value"],"additionalProperties":false}}},"required":["filters"],"additionalProperties":false,"description":"Read-only cohort. Funnel filters select first-step visitors; subsequent ordered steps may have different context. Goal filters select page-view visitors and matching completions. Saved filters are ANDed. Use the referrer breakdown tool to compare source groups. These are visitors, not attempts."}},"required":["overall_conversion_rate","total_users_entered","total_users_completed","avg_completion_time","avg_completion_time_formatted","biggest_dropoff_step","biggest_dropoff_rate","duration_available","steps_analytics","error_insights","measurement","savedDefinition"]}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":{"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"},"filters":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"enum":["contains","ends_with","equals","in","not_contains","not_equals","not_in","starts_with"],"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["field","operator","value"]}},"goalIds":{"type":"array","minItems":1,"items":{"type":"string"}},"websiteId":{"type":"string"}},"required":["goalIds","websiteId"]}}}},"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"},"duration_available":{"type":"boolean"},"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_context_available":{"type":"boolean"},"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_context_available","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":{"available":{"type":"boolean"},"total_errors":{"type":"number"},"sessions_with_errors":{"type":"number"},"dropoffs_with_errors":{"type":"number"},"error_correlation_rate":{"type":"number"}},"required":["available","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","duration_available","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/link-folders/list":{"post":{"operationId":"linkFolders.list","summary":"List link folders","description":"Returns folders used to organize short links inside an organization. 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":{"anyOf":[{"type":"string"},{"type":"null"}]},"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"},"linkCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","organizationId","createdBy","name","slug","deletedAt","createdAt","updatedAt","linkCount"]}}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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":{"anyOf":[{"type":"string"},{"type":"null"}]},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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":{"anyOf":[{"type":"string"},{"type":"null"}]},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"x-required-scopes":["write:links"]}},"/links/list":{"post":{"operationId":"links.list","summary":"List links","description":"Returns up to the 1000 most recent links for the organization. Optional organizationId defaults to the active organization from the session. Use the paginated endpoint for larger organizations. 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":{"anyOf":[{"type":"string"},{"type":"null"}]},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"x-required-scopes":["read:links"]}},"/links/paginated":{"post":{"operationId":"links.paginated","summary":"List links (paginated)","description":"Returns a page of links for the organization with server-side search, sort, type filter, and offset pagination. Set includeTotal only when an exact filtered count is needed. Requires read:links scope.","tags":["Links"],"requestBody":{"required":true,"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},"includeTotal":{"type":"boolean","default":false},"limit":{"type":"integer","minimum":1,"maximum":100,"default":50},"offset":{"type":"integer","minimum":0,"maximum":9007199254740991,"default":0},"search":{"type":"string","minLength":1,"maxLength":255},"sort":{"enum":["newest","oldest","name-asc","name-desc"],"type":"string","default":"newest"},"type":{"enum":["all","short","deep"],"type":"string","default":"all"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"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"]}},"hasMore":{"type":"boolean"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["items","hasMore"]}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"x-required-scopes":["read:links"]}},"/links/get":{"post":{"operationId":"links.get","summary":"Get link","description":"Returns a single link by id; the organization 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":{"anyOf":[{"type":"string"},{"type":"null"}]},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"x-required-scopes":["read:links"]}},"/links/create":{"post":{"operationId":"links.create","summary":"Create link","description":"Creates a new short link. To file it, pass folderId for an existing folder, or folder ({ name, slug? }) to use the folder with that slug and create it if missing; the slug defaults to one derived from name. 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":[{"enum":["instagram","tiktok","youtube","x","spotify","linkedin","facebook","whatsapp","telegram"],"type":"string"},{"type":"null"}]},"folder":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"slug":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z0-9_-]+$"}},"required":["name"]}},"required":["name","targetUrl"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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":[{"enum":["instagram","tiktok","youtube","x","spotify","linkedin","facebook","whatsapp","telegram"],"type":"string"},{"type":"null"}]}},"required":["id"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"createdBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"x-required-scopes":["write:links"]}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":{"aiAgents":{"type":"object","properties":{"weeklyDigest":{"type":"boolean"}},"required":["weeklyDigest"]},"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":["aiAgents","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":{"aiAgents":{"type":"object","properties":{"weeklyDigest":{"type":"boolean"}}},"billing":{"type":"object","properties":{"usageWarnings":{"type":"boolean"}}},"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"}}},"uptime":{"type":"object","properties":{"downEmails":{"type":"boolean"},"recoveryEmails":{"type":"boolean"}}}}}},"required":["settings"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"aiAgents":{"type":"object","properties":{"weeklyDigest":{"type":"boolean"}},"required":["weeklyDigest"]},"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":["aiAgents","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/organizations/getUsage":{"post":{"operationId":"organizations.getUsage","summary":"Get usage","description":"Returns usage for the active organization.","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/organizations/getBillingContext":{"post":{"operationId":"organizations.getBillingContext","summary":"Get billing context","description":"Returns billing context for the requested website or active organization, with a free-tier fallback.","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"security":[]}},"/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,"maxLength":100}},"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","unknown"],"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"},"freshness":{"enum":["fresh","stale","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","freshness","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"security":[]}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"x-required-scopes":["read:status_pages"]}},"/statusPage/createAssetUploadUrl":{"post":{"operationId":"statusPage.createAssetUploadUrl","summary":"Create an asset upload URL","description":"Returns a short-lived presigned URL for uploading a status page logo or favicon. Requires write:status_pages scope.","tags":["StatusPage"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"asset":{"enum":["logo","favicon"],"type":"string"},"contentLength":{"type":"integer","minimum":-9007199254740991,"maximum":2097152,"exclusiveMinimum":0},"contentType":{"enum":["image/jpeg","image/png","image/vnd.microsoft.icon","image/webp","image/x-icon"],"type":"string"},"organizationId":{"type":"string"}},"required":["asset","contentLength","contentType","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"x-required-scopes":["write: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":{"name":{"type":"string","minLength":1,"maxLength":120},"slug":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-z0-9-]+$"},"description":{"type":"string","maxLength":500},"logoUrl":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"faviconUrl":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"websiteUrl":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"supportUrl":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"theme":{"enum":["system","light","dark"],"type":"string"},"organizationId":{"type":"string"}},"required":["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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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":{"name":{"type":"string","minLength":1,"maxLength":120},"slug":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-z0-9-]+$"},"description":{"type":"string","maxLength":500},"logoUrl":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"faviconUrl":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"websiteUrl":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"supportUrl":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"theme":{"enum":["system","light","dark"],"type":"string"},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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","maxLength":120},{"type":"null"}]},"hideUrl":{"type":"boolean"},"hideUptimePercentage":{"type":"boolean"},"hideLatency":{"type":"boolean"},"order":{"type":"integer","minimum":0,"maximum":100000}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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,"maxLength":200},"severity":{"enum":["minor","major","critical"],"type":"string","default":"minor"},"message":{"type":"string","minLength":1,"maxLength":5000},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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,"maxLength":5000}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"x-required-scopes":["read:status_pages"]}},"/target-groups/list":{"post":{"operationId":"targetGroups.list","summary":"List target groups","description":"Returns all target groups for a website. Requires feature flag 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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/uptime/getScheduleByWebsiteId":{"post":{"operationId":"uptime.getScheduleByWebsiteId","summary":"Get schedule by website","description":"Returns uptime schedule for a website with BullMQ scheduler status. 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","properties":{"id":{"type":"string"},"websiteId":{"anyOf":[{"type":"string"},{"type":"null"}]},"organizationId":{"type":"string"},"url":{"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"},"isPaused":{"type":"boolean"},"timeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"cacheBust":{"type":"boolean"},"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"]},{"type":"null"}]}},"required":["id","websiteId","organizationId","url","name","granularity","isPaused","cacheBust","createdAt","updatedAt","schedulerStatus"]},{"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"x-required-scopes":["read:monitors"]}},"/uptime/listSchedules":{"post":{"operationId":"uptime.listSchedules","summary":"List schedules","description":"Returns uptime schedules for one organization or all accessible organizations. 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":{"enum":["minute","five_minutes","ten_minutes","thirty_minutes","hour","six_hours","twelve_hours","day"],"type":"string"},"isPaused":{"type":"boolean"},"timeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"cacheBust":{"type":"boolean"},"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"]},{"type":"null"}]}},"required":["id","websiteId","organizationId","url","name","granularity","isPaused","cacheBust","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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":{"enum":["minute","five_minutes","ten_minutes","thirty_minutes","hour","six_hours","twelve_hours","day"],"type":"string"},"isPaused":{"type":"boolean"},"timeout":{"anyOf":[{"type":"number"},{"type":"null"}]},"cacheBust":{"type":"boolean"},"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"]},{"type":"null"}]}},"required":["id","websiteId","organizationId","url","name","granularity","isPaused","cacheBust","createdAt","updatedAt","schedulerStatus"]}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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"}},"required":["url","granularity"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"scheduleId":{"type":"string"},"url":{"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"}},"required":["scheduleId"]}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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"}},"required":["scheduleId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"scheduleId":{"type":"string"},"url":{"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"}},"required":["scheduleId"]}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}},"x-required-scopes":["write:monitors"]}},"/websites/list":{"post":{"operationId":"websites.list","summary":"List websites","description":"Returns websites for the active organization.","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/websites/create":{"post":{"operationId":"websites.create","summary":"Create website","description":"Creates a website. Requires organization 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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/websites/transfer":{"post":{"operationId":"websites.transfer","summary":"Transfer website","description":"Transfers a website to another organization.","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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/websites/agentInstallProgress":{"post":{"operationId":"websites.agentInstallProgress","summary":"Read coding agent install progress","description":"Reads the latest install report a coding agent posted for a setup session. Requires website read permission.","tags":["Websites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"},"setupSession":{"type":"string","minLength":8,"maxLength":32,"pattern":"^[A-Za-z0-9]+$"}},"required":["websiteId","setupSession"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"agent":{"type":"string"},"status":{"enum":["success","partial","failed"],"type":"string"},"framework":{"anyOf":[{"type":"string"},{"type":"null"}]},"installMethod":{"anyOf":[{"type":"string"},{"type":"null"}]},"steps":{"type":"array","items":{"type":"string"}},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"resolved":{"type":"boolean"}},"required":["code","message","resolved"]}},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}]},"reportedAt":{"type":"string"}},"required":["agent","status","framework","installMethod","steps","issues","errorMessage","reportedAt"]},{"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/websites/checkAgentSetup":{"post":{"operationId":"websites.checkAgentSetup","summary":"Check AI agent tracking setup","description":"Requests the website's homepage and llms.txt as GPTBot and reports whether each request was recorded through @databuddy/sdk/agents or a Vercel log drain, the HTTP status each request got, and which bot protection blocked it. Also reports the homepage status for a regular browser, so a bot rule can be told apart from a site that is down. 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":{"homepage":{"type":"boolean"},"llmsTxt":{"type":"boolean"},"probes":{"type":"object","properties":{"homepage":{"type":"object","properties":{"status":{"anyOf":[{"type":"number"},{"type":"null"}]},"blockedBy":{"anyOf":[{"enum":["Cloudflare","Vercel","Akamai"],"type":"string"},{"type":"null"}]}},"required":["status","blockedBy"]},"llmsTxt":{"type":"object","properties":{"status":{"anyOf":[{"type":"number"},{"type":"null"}]},"blockedBy":{"anyOf":[{"enum":["Cloudflare","Vercel","Akamai"],"type":"string"},{"type":"null"}]}},"required":["status","blockedBy"]}},"required":["homepage","llmsTxt"]},"controlStatus":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["homepage","llmsTxt","probes","controlStatus"]}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/websites/checkAiRobots":{"post":{"operationId":"websites.checkAiRobots","summary":"Check robots.txt rules for AI crawlers","description":"Reads the website's robots.txt and reports, for each AI crawler user agent, whether it is allowed, partly blocked, or blocked, and since when a blocked crawler has been blocked. Requires website read permission.","tags":["Websites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"websiteId":{"type":"string"},"userAgents":{"type":"array","maxItems":1000,"items":{"type":"string"}}},"required":["websiteId","userAgents"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"hasRobotsTxt":{"type":"boolean"},"access":{"type":"array","items":{"enum":["allowed","partial","blocked"],"type":"string"}},"blockedSince":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"required":["hasRobotsTxt","access","blockedSince"]}}}},"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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}},"/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":"Some of the details are invalid. Check them and try again."},"data":{}},"required":["defined","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":"Sign in to continue."},"data":{}},"required":["defined","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 on your plan. Upgrade to add more."},"data":{"type":"object","properties":{"feature":{"type":"string"},"limit":{"type":"number"},"current":{"type":"number"},"nextPlan":{"type":"string"}},"required":["feature","limit","current"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"FEATURE_UNAVAILABLE"},"status":{"const":402},"message":{"type":"string","default":"This feature is not included in your plan. Upgrade to use it."},"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"]}]}}}},"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 do this. Ask an owner or admin of your organization for access."},"data":{}},"required":["defined","code","status","message"]},{"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":"This item was not found. It may have been deleted."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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":"Something with this name already exists. Pick a different one."},"data":{"type":"object","properties":{"resourceType":{"type":"string"},"resourceId":{"type":"string"}},"required":["resourceType"]}},"required":["defined","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. Try again shortly."},"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":"Something went wrong on our side. Try again in a moment."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"status":{"const":503},"message":{"type":"string","default":"This service is temporarily unavailable. Try again in a moment."},"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"]}]}}}}}}}}}