{"openapi":"3.0.3","info":{"title":"FormVigilant API","version":"0.1.0","description":"FormVigilant /v1 API (SPEC §11)."},"components":{"securitySchemes":{"session":{"type":"apiKey","in":"cookie","name":"fv_session"},"apiKey":{"type":"http","scheme":"bearer","description":"fv_live_… API key"}},"schemas":{}},"paths":{"/v1/health":{"get":{"tags":["meta"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"version":{"type":"string"}},"required":["ok","time","version"],"additionalProperties":false}}}}}}},"/v1/auth/signup":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"email":{"type":"string"},"password":{"type":"string","minLength":8,"maxLength":200},"orgName":{"type":"string","minLength":1,"maxLength":120},"timezone":{"type":"string","minLength":1,"maxLength":64},"inviteToken":{"type":"string"}},"required":["name","email","password","orgName"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"type":"string"},"totpEnabled":{"type":"boolean"},"lastActiveAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","email","name","totpEnabled","lastActiveAt","createdAt"],"additionalProperties":false},"org":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string","minLength":1,"maxLength":64},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"trialEndsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"settings":{"type":"object","properties":{"logoUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"brandColor":{"nullable":true,"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"quietHours":{"nullable":true,"type":"object","properties":{"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["start","end"],"additionalProperties":false},"dailyDigest":{"type":"object","properties":{"enabled":{"type":"boolean"},"time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["enabled","time"],"additionalProperties":false},"weeklyDigest":{"type":"object","properties":{"enabled":{"type":"boolean"},"weekday":{"type":"integer","minimum":0,"maximum":6},"time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["enabled","weekday","time"],"additionalProperties":false},"digestWhenHealthy":{"type":"boolean"},"require2fa":{"type":"boolean"},"reportFooter":{"nullable":true,"type":"string","maxLength":500},"defaultPaper":{"type":"string","enum":["a4","letter"]},"statusPageDomain":{"nullable":true,"type":"string","maxLength":253},"portalVisibility":{"type":"object","additionalProperties":{"type":"boolean"}}},"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","slug","timezone","plan","trialEndsAt","settings","createdAt","updatedAt"],"additionalProperties":false},"role":{"type":"string","enum":["owner","admin","technician","viewer","client"]},"memberships":{"type":"array","items":{"type":"object","properties":{"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgName":{"type":"string"},"orgSlug":{"type":"string"},"role":{"type":"string","enum":["owner","admin","technician","viewer","client"]}},"required":["orgId","orgName","orgSlug","role"],"additionalProperties":false}},"features":{"type":"object","properties":{"l5":{"type":"boolean"}},"required":["l5"],"additionalProperties":false}},"required":["user","org","role","memberships","features"],"additionalProperties":false}}}}}}},"/v1/auth/login":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"password":{"type":"string","minLength":1,"maxLength":200},"totp":{"type":"string","pattern":"^\\d{6}$"},"recoveryCode":{"type":"string","pattern":"^[a-z2-7]{4}-[a-z2-7]{4}-[a-z2-7]{4}$"}},"required":["email","password"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"type":"string"},"totpEnabled":{"type":"boolean"},"lastActiveAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","email","name","totpEnabled","lastActiveAt","createdAt"],"additionalProperties":false},"org":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string","minLength":1,"maxLength":64},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"trialEndsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"settings":{"type":"object","properties":{"logoUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"brandColor":{"nullable":true,"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"quietHours":{"nullable":true,"type":"object","properties":{"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["start","end"],"additionalProperties":false},"dailyDigest":{"type":"object","properties":{"enabled":{"type":"boolean"},"time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["enabled","time"],"additionalProperties":false},"weeklyDigest":{"type":"object","properties":{"enabled":{"type":"boolean"},"weekday":{"type":"integer","minimum":0,"maximum":6},"time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["enabled","weekday","time"],"additionalProperties":false},"digestWhenHealthy":{"type":"boolean"},"require2fa":{"type":"boolean"},"reportFooter":{"nullable":true,"type":"string","maxLength":500},"defaultPaper":{"type":"string","enum":["a4","letter"]},"statusPageDomain":{"nullable":true,"type":"string","maxLength":253},"portalVisibility":{"type":"object","additionalProperties":{"type":"boolean"}}},"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","slug","timezone","plan","trialEndsAt","settings","createdAt","updatedAt"],"additionalProperties":false},"role":{"nullable":true,"type":"string","enum":["owner","admin","technician","viewer","client"]},"memberships":{"type":"array","items":{"type":"object","properties":{"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgName":{"type":"string"},"orgSlug":{"type":"string"},"role":{"type":"string","enum":["owner","admin","technician","viewer","client"]}},"required":["orgId","orgName","orgSlug","role"],"additionalProperties":false}},"features":{"type":"object","properties":{"l5":{"type":"boolean"}},"required":["l5"],"additionalProperties":false},"orgs":{"type":"array","items":{"type":"object","properties":{"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgName":{"type":"string"},"orgSlug":{"type":"string"},"role":{"type":"string","enum":["owner","admin","technician","viewer","client"]}},"required":["orgId","orgName","orgSlug","role"],"additionalProperties":false}},"platformAdmin":{"type":"boolean"},"effectivePlan":{"nullable":true,"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"impersonation":{"nullable":true,"type":"object","properties":{"sessionId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"adminUserId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"reason":{"type":"string","enum":["support_ticket","billing","debugging","onboarding","incident_investigation","other"]},"ticketRef":{"nullable":true,"type":"string"},"readOnly":{"type":"boolean"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["sessionId","adminUserId","orgId","reason","ticketRef","readOnly","expiresAt"],"additionalProperties":false}},"required":["user","org","role","memberships","features","orgs","platformAdmin","effectivePlan","impersonation"],"additionalProperties":false}}}}}}},"/v1/auth/logout":{"post":{"tags":["auth"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/auth/forgot":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"}},"required":["email"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/auth/reset":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":16,"maxLength":256},"password":{"type":"string","minLength":8,"maxLength":200}},"required":["token","password"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/auth/me":{"get":{"tags":["auth"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"type":"string"},"totpEnabled":{"type":"boolean"},"lastActiveAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","email","name","totpEnabled","lastActiveAt","createdAt"],"additionalProperties":false},"org":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string","minLength":1,"maxLength":64},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"trialEndsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"settings":{"type":"object","properties":{"logoUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"brandColor":{"nullable":true,"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"quietHours":{"nullable":true,"type":"object","properties":{"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["start","end"],"additionalProperties":false},"dailyDigest":{"type":"object","properties":{"enabled":{"type":"boolean"},"time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["enabled","time"],"additionalProperties":false},"weeklyDigest":{"type":"object","properties":{"enabled":{"type":"boolean"},"weekday":{"type":"integer","minimum":0,"maximum":6},"time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["enabled","weekday","time"],"additionalProperties":false},"digestWhenHealthy":{"type":"boolean"},"require2fa":{"type":"boolean"},"reportFooter":{"nullable":true,"type":"string","maxLength":500},"defaultPaper":{"type":"string","enum":["a4","letter"]},"statusPageDomain":{"nullable":true,"type":"string","maxLength":253},"portalVisibility":{"type":"object","additionalProperties":{"type":"boolean"}}},"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","slug","timezone","plan","trialEndsAt","settings","createdAt","updatedAt"],"additionalProperties":false},"role":{"nullable":true,"type":"string","enum":["owner","admin","technician","viewer","client"]},"memberships":{"type":"array","items":{"type":"object","properties":{"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgName":{"type":"string"},"orgSlug":{"type":"string"},"role":{"type":"string","enum":["owner","admin","technician","viewer","client"]}},"required":["orgId","orgName","orgSlug","role"],"additionalProperties":false}},"features":{"type":"object","properties":{"l5":{"type":"boolean"}},"required":["l5"],"additionalProperties":false},"orgs":{"type":"array","items":{"type":"object","properties":{"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgName":{"type":"string"},"orgSlug":{"type":"string"},"role":{"type":"string","enum":["owner","admin","technician","viewer","client"]}},"required":["orgId","orgName","orgSlug","role"],"additionalProperties":false}},"platformAdmin":{"type":"boolean"},"effectivePlan":{"nullable":true,"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"impersonation":{"nullable":true,"type":"object","properties":{"sessionId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"adminUserId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"reason":{"type":"string","enum":["support_ticket","billing","debugging","onboarding","incident_investigation","other"]},"ticketRef":{"nullable":true,"type":"string"},"readOnly":{"type":"boolean"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["sessionId","adminUserId","orgId","reason","ticketRef","readOnly","expiresAt"],"additionalProperties":false}},"required":["user","org","role","memberships","features","orgs","platformAdmin","effectivePlan","impersonation"],"additionalProperties":false}}}}}}},"/v1/auth/switch-org":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"required":["orgId"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"type":"string"},"totpEnabled":{"type":"boolean"},"lastActiveAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","email","name","totpEnabled","lastActiveAt","createdAt"],"additionalProperties":false},"org":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string","minLength":1,"maxLength":64},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"trialEndsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"settings":{"type":"object","properties":{"logoUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"brandColor":{"nullable":true,"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"quietHours":{"nullable":true,"type":"object","properties":{"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["start","end"],"additionalProperties":false},"dailyDigest":{"type":"object","properties":{"enabled":{"type":"boolean"},"time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["enabled","time"],"additionalProperties":false},"weeklyDigest":{"type":"object","properties":{"enabled":{"type":"boolean"},"weekday":{"type":"integer","minimum":0,"maximum":6},"time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["enabled","weekday","time"],"additionalProperties":false},"digestWhenHealthy":{"type":"boolean"},"require2fa":{"type":"boolean"},"reportFooter":{"nullable":true,"type":"string","maxLength":500},"defaultPaper":{"type":"string","enum":["a4","letter"]},"statusPageDomain":{"nullable":true,"type":"string","maxLength":253},"portalVisibility":{"type":"object","additionalProperties":{"type":"boolean"}}},"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","slug","timezone","plan","trialEndsAt","settings","createdAt","updatedAt"],"additionalProperties":false},"role":{"type":"string","enum":["owner","admin","technician","viewer","client"]},"memberships":{"type":"array","items":{"type":"object","properties":{"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgName":{"type":"string"},"orgSlug":{"type":"string"},"role":{"type":"string","enum":["owner","admin","technician","viewer","client"]}},"required":["orgId","orgName","orgSlug","role"],"additionalProperties":false}},"features":{"type":"object","properties":{"l5":{"type":"boolean"}},"required":["l5"],"additionalProperties":false}},"required":["user","org","role","memberships","features"],"additionalProperties":false}}}}}}},"/v1/invites/accept":{"post":{"tags":["team"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":16,"maxLength":256}},"required":["token"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"type":"string"},"totpEnabled":{"type":"boolean"},"lastActiveAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","email","name","totpEnabled","lastActiveAt","createdAt"],"additionalProperties":false},"org":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string","minLength":1,"maxLength":64},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"trialEndsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"settings":{"type":"object","properties":{"logoUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"brandColor":{"nullable":true,"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"quietHours":{"nullable":true,"type":"object","properties":{"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["start","end"],"additionalProperties":false},"dailyDigest":{"type":"object","properties":{"enabled":{"type":"boolean"},"time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["enabled","time"],"additionalProperties":false},"weeklyDigest":{"type":"object","properties":{"enabled":{"type":"boolean"},"weekday":{"type":"integer","minimum":0,"maximum":6},"time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["enabled","weekday","time"],"additionalProperties":false},"digestWhenHealthy":{"type":"boolean"},"require2fa":{"type":"boolean"},"reportFooter":{"nullable":true,"type":"string","maxLength":500},"defaultPaper":{"type":"string","enum":["a4","letter"]},"statusPageDomain":{"nullable":true,"type":"string","maxLength":253},"portalVisibility":{"type":"object","additionalProperties":{"type":"boolean"}}},"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","slug","timezone","plan","trialEndsAt","settings","createdAt","updatedAt"],"additionalProperties":false},"role":{"type":"string","enum":["owner","admin","technician","viewer","client"]},"memberships":{"type":"array","items":{"type":"object","properties":{"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgName":{"type":"string"},"orgSlug":{"type":"string"},"role":{"type":"string","enum":["owner","admin","technician","viewer","client"]}},"required":["orgId","orgName","orgSlug","role"],"additionalProperties":false}},"features":{"type":"object","properties":{"l5":{"type":"boolean"}},"required":["l5"],"additionalProperties":false}},"required":["user","org","role","memberships","features"],"additionalProperties":false}}}}}}},"/v1/connector/pair":{"post":{"tags":["connector"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":4,"maxLength":32},"site_url":{"type":"string","format":"uri"},"site_name":{"type":"string","maxLength":200},"versions":{"type":"object","properties":{"wp":{"type":"string"},"php":{"type":"string"},"connector":{"type":"string"}},"required":["wp","php","connector"]},"adapters":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string","enum":["wpforms","gravityforms","cf7","fluentforms","formidable","ninjaforms","elementor"]},"version":{"nullable":true,"type":"string"},"active":{"type":"boolean"}},"required":["slug","version","active"]}},"rest_base":{"type":"string"}},"required":["code","site_url","versions"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"site_id":{"type":"string"},"secret":{"type":"string"},"catch_token":{"type":"string"},"catch_domain":{"type":"string"},"api_base":{"type":"string"}},"required":["site_id","secret","catch_token","catch_domain","api_base"],"additionalProperties":false}}}}}}},"/v1/connector/heartbeat":{"post":{"tags":["connector"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"versions":{"type":"object","properties":{"wp":{"type":"string"},"php":{"type":"string"},"connector":{"type":"string"}},"required":["wp","php","connector"]},"adapters":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string","enum":["wpforms","gravityforms","cf7","fluentforms","formidable","ninjaforms","elementor"]},"version":{"nullable":true,"type":"string"},"active":{"type":"boolean"}},"required":["slug","version","active"]}},"cron_ok":{"type":"boolean"},"smtp":{"type":"object","properties":{"plugin":{"nullable":true,"type":"string"},"provider":{"nullable":true,"type":"string"},"version":{"nullable":true,"type":"string"}},"required":["plugin","provider"]},"plugins":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"active":{"type":"boolean"}},"required":["slug","name","version","active"]}},"sent_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"rest_base":{"type":"string","maxLength":255}},"required":["versions","adapters","cron_ok"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"server_time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"rediscover":{"type":"boolean"}},"required":["ok","server_time"],"additionalProperties":false}}}}}}},"/v1/connector/mail-event":{"post":{"tags":["connector"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"marker":{"type":"string"},"event":{"type":"string","enum":["wp_mail_succeeded","wp_mail_failed"]},"to":{"type":"array","items":{"type":"string"}},"subject":{"type":"string"},"mailer":{"nullable":true,"type":"string"},"message_id":{"nullable":true,"type":"string"},"error":{"nullable":true,"type":"string"},"error_code":{"nullable":true,"type":"string"},"occurred_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["marker","event","to","occurred_at"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/sites/pairing-code":{"post":{"tags":["sites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"nullable":true,"type":"object","properties":{"siteUrl":{"type":"string","maxLength":2048,"format":"uri"},"groupId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}}}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"pluginDownloadUrl":{"type":"string"}},"required":["code","expiresAt","pluginDownloadUrl"],"additionalProperties":false}}}}}}},"/v1/sites/pairing-code/{code}/status":{"get":{"tags":["sites"],"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"code","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"status":{"type":"string","enum":["pending","paired","expired"]},"siteId":{"nullable":true,"type":"string"}},"required":["code","status","siteId"],"additionalProperties":false}}}}}}},"/v1/site-groups":{"get":{"tags":["sites"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"siteCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}}},"post":{"tags":["sites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"siteCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name"],"additionalProperties":false}}}}}}},"/v1/sites":{"get":{"tags":["sites"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"query","name":"cursor","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"anyOf":[{"type":"string","enum":["connected","unreachable","paused","archived"]},{"type":"array","items":{"type":"string","enum":["connected","unreachable","paused","archived"]}}]},"in":"query","name":"status","required":false},{"schema":{"anyOf":[{"type":"string","enum":["healthy","failing","warning","unknown","paused","testing"]},{"type":"array","items":{"type":"string","enum":["healthy","failing","warning","unknown","paused","testing"]}}]},"in":"query","name":"health","required":false},{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"query","name":"groupId","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","enum":["name","status","lastRun","uptime"]},"in":"query","name":"sort","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"url":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"groupId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"groupName":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["connected","unreachable","paused","archived"]},"timezone":{"nullable":true,"type":"string","minLength":1,"maxLength":64},"wpVersion":{"nullable":true,"type":"string"},"phpVersion":{"nullable":true,"type":"string"},"connectorVersion":{"nullable":true,"type":"string"},"plugins":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"active":{"type":"boolean"}},"required":["slug","name","version","active"],"additionalProperties":false}},"smtp":{"nullable":true,"type":"object","properties":{"plugin":{"nullable":true,"type":"string"},"provider":{"nullable":true,"type":"string"},"version":{"nullable":true,"type":"string"}},"required":["plugin","provider"],"additionalProperties":false},"lastHeartbeatAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"publicStatus":{"type":"boolean"},"connectedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"health":{"type":"object","properties":{"status":{"type":"string","enum":["healthy","failing","warning","unknown","paused","testing"]},"formsCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"monitoredCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uptime30d":{"nullable":true,"type":"number"},"uptimeDays":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"status":{"type":"string","enum":["ok","fail","unknown","paused","none"]}},"required":["date","status"],"additionalProperties":false}},"levels":{"type":"array","items":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"mark":{"type":"string","enum":["hit","fail","pending","off"]}},"required":["level","mark"],"additionalProperties":false}},"targetLevel":{"nullable":true,"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"nextRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"openIncidentId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"note":{"nullable":true,"type":"string"}},"required":["status","formsCount","monitoredCount","uptime30d","uptimeDays","levels","targetLevel","lastRunAt","nextRunAt","openIncidentId","note"],"additionalProperties":false}},"required":["id","orgId","url","name","slug","groupId","groupName","status","timezone","wpVersion","phpVersion","connectorVersion","plugins","smtp","lastHeartbeatAt","publicStatus","connectedAt","createdAt","updatedAt","health"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"summary":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"forms":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"healthy":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failing":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"warning":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unknown":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paused":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"testing":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["total","forms","healthy","failing","warning","unknown","paused","testing"],"additionalProperties":false}},"required":["items","nextCursor","summary"],"additionalProperties":false}}}}}}},"/v1/sites/{id}":{"get":{"tags":["sites"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"url":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"groupId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"groupName":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["connected","unreachable","paused","archived"]},"timezone":{"nullable":true,"type":"string","minLength":1,"maxLength":64},"wpVersion":{"nullable":true,"type":"string"},"phpVersion":{"nullable":true,"type":"string"},"connectorVersion":{"nullable":true,"type":"string"},"plugins":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"active":{"type":"boolean"}},"required":["slug","name","version","active"],"additionalProperties":false}},"smtp":{"nullable":true,"type":"object","properties":{"plugin":{"nullable":true,"type":"string"},"provider":{"nullable":true,"type":"string"},"version":{"nullable":true,"type":"string"}},"required":["plugin","provider"],"additionalProperties":false},"lastHeartbeatAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"publicStatus":{"type":"boolean"},"connectedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"health":{"type":"object","properties":{"status":{"type":"string","enum":["healthy","failing","warning","unknown","paused","testing"]},"formsCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"monitoredCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uptime30d":{"nullable":true,"type":"number"},"uptimeDays":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"status":{"type":"string","enum":["ok","fail","unknown","paused","none"]}},"required":["date","status"],"additionalProperties":false}},"levels":{"type":"array","items":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"mark":{"type":"string","enum":["hit","fail","pending","off"]}},"required":["level","mark"],"additionalProperties":false}},"targetLevel":{"nullable":true,"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"nextRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"openIncidentId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"note":{"nullable":true,"type":"string"}},"required":["status","formsCount","monitoredCount","uptime30d","uptimeDays","levels","targetLevel","lastRunAt","nextRunAt","openIncidentId","note"],"additionalProperties":false}},"required":["id","orgId","url","name","slug","groupId","groupName","status","timezone","wpVersion","phpVersion","connectorVersion","plugins","smtp","lastHeartbeatAt","publicStatus","connectedAt","createdAt","updatedAt","health"],"additionalProperties":false}}}}}},"patch":{"tags":["sites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"groupId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"timezone":{"nullable":true,"type":"string","minLength":1,"maxLength":64},"publicStatus":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"url":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"groupId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"groupName":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["connected","unreachable","paused","archived"]},"timezone":{"nullable":true,"type":"string","minLength":1,"maxLength":64},"wpVersion":{"nullable":true,"type":"string"},"phpVersion":{"nullable":true,"type":"string"},"connectorVersion":{"nullable":true,"type":"string"},"plugins":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"active":{"type":"boolean"}},"required":["slug","name","version","active"],"additionalProperties":false}},"smtp":{"nullable":true,"type":"object","properties":{"plugin":{"nullable":true,"type":"string"},"provider":{"nullable":true,"type":"string"},"version":{"nullable":true,"type":"string"}},"required":["plugin","provider"],"additionalProperties":false},"lastHeartbeatAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"publicStatus":{"type":"boolean"},"connectedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"health":{"type":"object","properties":{"status":{"type":"string","enum":["healthy","failing","warning","unknown","paused","testing"]},"formsCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"monitoredCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uptime30d":{"nullable":true,"type":"number"},"uptimeDays":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"status":{"type":"string","enum":["ok","fail","unknown","paused","none"]}},"required":["date","status"],"additionalProperties":false}},"levels":{"type":"array","items":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"mark":{"type":"string","enum":["hit","fail","pending","off"]}},"required":["level","mark"],"additionalProperties":false}},"targetLevel":{"nullable":true,"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"nextRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"openIncidentId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"note":{"nullable":true,"type":"string"}},"required":["status","formsCount","monitoredCount","uptime30d","uptimeDays","levels","targetLevel","lastRunAt","nextRunAt","openIncidentId","note"],"additionalProperties":false}},"required":["id","orgId","url","name","slug","groupId","groupName","status","timezone","wpVersion","phpVersion","connectorVersion","plugins","smtp","lastHeartbeatAt","publicStatus","connectedAt","createdAt","updatedAt","health"],"additionalProperties":false}}}}}},"delete":{"tags":["sites"],"parameters":[{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"purge","required":false},{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/sites/{id}/pause":{"post":{"tags":["sites"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"url":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"groupId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"groupName":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["connected","unreachable","paused","archived"]},"timezone":{"nullable":true,"type":"string","minLength":1,"maxLength":64},"wpVersion":{"nullable":true,"type":"string"},"phpVersion":{"nullable":true,"type":"string"},"connectorVersion":{"nullable":true,"type":"string"},"plugins":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"active":{"type":"boolean"}},"required":["slug","name","version","active"],"additionalProperties":false}},"smtp":{"nullable":true,"type":"object","properties":{"plugin":{"nullable":true,"type":"string"},"provider":{"nullable":true,"type":"string"},"version":{"nullable":true,"type":"string"}},"required":["plugin","provider"],"additionalProperties":false},"lastHeartbeatAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"publicStatus":{"type":"boolean"},"connectedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"health":{"type":"object","properties":{"status":{"type":"string","enum":["healthy","failing","warning","unknown","paused","testing"]},"formsCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"monitoredCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uptime30d":{"nullable":true,"type":"number"},"uptimeDays":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"status":{"type":"string","enum":["ok","fail","unknown","paused","none"]}},"required":["date","status"],"additionalProperties":false}},"levels":{"type":"array","items":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"mark":{"type":"string","enum":["hit","fail","pending","off"]}},"required":["level","mark"],"additionalProperties":false}},"targetLevel":{"nullable":true,"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"nextRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"openIncidentId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"note":{"nullable":true,"type":"string"}},"required":["status","formsCount","monitoredCount","uptime30d","uptimeDays","levels","targetLevel","lastRunAt","nextRunAt","openIncidentId","note"],"additionalProperties":false}},"required":["id","orgId","url","name","slug","groupId","groupName","status","timezone","wpVersion","phpVersion","connectorVersion","plugins","smtp","lastHeartbeatAt","publicStatus","connectedAt","createdAt","updatedAt","health"],"additionalProperties":false}}}}}}},"/v1/sites/{id}/resume":{"post":{"tags":["sites"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"url":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"groupId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"groupName":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["connected","unreachable","paused","archived"]},"timezone":{"nullable":true,"type":"string","minLength":1,"maxLength":64},"wpVersion":{"nullable":true,"type":"string"},"phpVersion":{"nullable":true,"type":"string"},"connectorVersion":{"nullable":true,"type":"string"},"plugins":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"active":{"type":"boolean"}},"required":["slug","name","version","active"],"additionalProperties":false}},"smtp":{"nullable":true,"type":"object","properties":{"plugin":{"nullable":true,"type":"string"},"provider":{"nullable":true,"type":"string"},"version":{"nullable":true,"type":"string"}},"required":["plugin","provider"],"additionalProperties":false},"lastHeartbeatAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"publicStatus":{"type":"boolean"},"connectedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"health":{"type":"object","properties":{"status":{"type":"string","enum":["healthy","failing","warning","unknown","paused","testing"]},"formsCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"monitoredCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uptime30d":{"nullable":true,"type":"number"},"uptimeDays":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"status":{"type":"string","enum":["ok","fail","unknown","paused","none"]}},"required":["date","status"],"additionalProperties":false}},"levels":{"type":"array","items":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"mark":{"type":"string","enum":["hit","fail","pending","off"]}},"required":["level","mark"],"additionalProperties":false}},"targetLevel":{"nullable":true,"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"nextRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"openIncidentId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"note":{"nullable":true,"type":"string"}},"required":["status","formsCount","monitoredCount","uptime30d","uptimeDays","levels","targetLevel","lastRunAt","nextRunAt","openIncidentId","note"],"additionalProperties":false}},"required":["id","orgId","url","name","slug","groupId","groupName","status","timezone","wpVersion","phpVersion","connectorVersion","plugins","smtp","lastHeartbeatAt","publicStatus","connectedAt","createdAt","updatedAt","health"],"additionalProperties":false}}}}}}},"/v1/sites/{id}/discover":{"post":{"tags":["sites"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"discovered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["siteId","discovered","added","updated","removed"],"additionalProperties":false}}}}}}},"/v1/sites/{id}/forms":{"get":{"tags":["sites"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"adapter":{"type":"string","enum":["wpforms","gravityforms","cf7","fluentforms","formidable","ninjaforms","elementor"]},"externalId":{"type":"string"},"title":{"type":"string"},"pages":{"type":"array","items":{"type":"string"}},"fields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"label":{"type":"string"},"required":{"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"additionalProperties":false}}},"required":["id","type","label","required"],"additionalProperties":false}},"recipients":{"type":"array","items":{"type":"string"}},"capabilities":{"type":"object","properties":{"levels":{"type":"array","items":{"type":"integer","minimum":1,"maximum":5}},"side_effects":{"type":"string","enum":["suppressed","unknown"]},"testable":{"type":"boolean"},"unsupported":{"type":"array","items":{"type":"string"}},"integrations":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"suppressed":{"type":"boolean"}},"required":["name","suppressed"],"additionalProperties":false}},"captcha":{"nullable":true,"type":"object","properties":{"provider":{"type":"string"},"bypassed":{"type":"boolean"}},"required":["provider","bypassed"],"additionalProperties":false},"notes":{"type":"array","items":{"type":"string"}}},"required":["levels","side_effects","testable","unsupported"],"additionalProperties":false},"discoveredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"missingSince":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"monitor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"status":{"type":"string","enum":["active","paused","needs_config"]},"targetLevel":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"intervalMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","status","targetLevel","intervalMinutes"],"additionalProperties":false},"health":{"type":"object","properties":{"status":{"nullable":true,"type":"string","enum":["healthy","failing","warning","unknown","paused","testing"]},"levels":{"type":"array","items":{"type":"object","properties":{"level":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"mark":{"type":"string","enum":["hit","fail","pending","off"]}},"required":["level","mark"],"additionalProperties":false}},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["status","levels","lastRunAt"],"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","siteId","adapter","externalId","title","pages","fields","recipients","capabilities","discoveredAt","missingSince","monitor","createdAt","updatedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}}}},"/v1/sites/{id}/diagnostics":{"get":{"tags":["sites"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"fetchedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"reachable":{"type":"boolean"},"smtp":{"nullable":true,"type":"object","properties":{"plugin":{"nullable":true,"type":"string"},"provider":{"nullable":true,"type":"string"},"version":{"nullable":true,"type":"string"}},"required":["plugin","provider"],"additionalProperties":false},"recentMailFailures":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"to":{"type":"array","items":{"type":"string"}},"subject":{"type":"string"},"error":{"type":"string"}},"required":["at","to","error"],"additionalProperties":false}},"cronOk":{"nullable":true,"type":"boolean"},"dns":{"nullable":true,"type":"object","properties":{"domain":{"type":"string"},"spf":{"nullable":true,"type":"string"},"dkim":{"nullable":true,"type":"string"},"dmarc":{"nullable":true,"type":"string"}},"required":["domain","spf","dkim","dmarc"],"additionalProperties":false},"wpVersion":{"nullable":true,"type":"string"},"phpVersion":{"nullable":true,"type":"string"},"connectorVersion":{"nullable":true,"type":"string"},"lastHeartbeatAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"error":{"nullable":true,"type":"string"}},"required":["siteId","fetchedAt","reachable","smtp","recentMailFailures","cronOk","dns","wpVersion","phpVersion","connectorVersion","lastHeartbeatAt","error"],"additionalProperties":false}}}}}}},"/v1/sites/{id}/maintenance":{"get":{"tags":["sites"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"startsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"reason":{"nullable":true,"type":"string"}},"required":["id","siteId","startsAt","endsAt","reason"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}}},"post":{"tags":["sites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"reason":{"type":"string","maxLength":500}},"required":["startsAt","endsAt"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"startsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"reason":{"nullable":true,"type":"string"}},"required":["id","siteId","startsAt","endsAt","reason"],"additionalProperties":false}}}}}}},"/v1/sites/{id}/maintenance/{windowId}":{"delete":{"tags":["sites"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"windowId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/monitors":{"get":{"tags":["monitors"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"query","name":"cursor","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"query","name":"siteId","required":false},{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"query","name":"formId","required":false},{"schema":{"anyOf":[{"type":"string","enum":["active","paused","needs_config"]},{"type":"array","items":{"type":"string","enum":["active","paused","needs_config"]}}]},"in":"query","name":"status","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"formId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"form":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"title":{"type":"string"},"adapter":{"type":"string"}},"required":["id","title","adapter"],"additionalProperties":false},"targetLevel":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"intervalMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"windowStart":{"nullable":true,"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"windowEnd":{"nullable":true,"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"quietHours":{"nullable":true,"type":"object","properties":{"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["start","end"],"additionalProperties":false},"retriesBeforeIncident":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"resolveAfterPasses":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deleteTestEntry":{"type":"boolean"},"suppressSideEffects":{"type":"boolean"},"sideEffectsConfirmedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"escalationPolicyId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"status":{"type":"string","enum":["active","paused","needs_config"]},"nextRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastRunState":{"nullable":true,"type":"string","enum":["QUEUED","RUNNING","SUBMITTED","VERIFYING","PASSED","PASSED_LATE","FAILED","INCONCLUSIVE","TIMED_OUT","CANCELLED"]},"health":{"nullable":true,"type":"string","enum":["healthy","failing","warning","unknown","paused","testing"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","siteId","formId","site","form","targetLevel","intervalMinutes","windowStart","windowEnd","quietHours","retriesBeforeIncident","resolveAfterPasses","deleteTestEntry","suppressSideEffects","sideEffectsConfirmedAt","escalationPolicyId","status","nextRunAt","lastRunAt","lastRunState","health","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["items","nextCursor"],"additionalProperties":false}}}}}},"post":{"tags":["monitors"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"targetLevel":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"intervalMinutes":{"type":"integer","minimum":60,"maximum":10080},"windowStart":{"nullable":true,"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"windowEnd":{"nullable":true,"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"quietHours":{"nullable":true,"type":"object","properties":{"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["start","end"]},"retriesBeforeIncident":{"type":"integer","minimum":0,"maximum":5},"resolveAfterPasses":{"type":"integer","minimum":1,"maximum":10},"deleteTestEntry":{"type":"boolean"},"suppressSideEffects":{"type":"boolean"},"escalationPolicyId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"formId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"confirmSideEffects":{"type":"boolean"},"openWchTicket":{"type":"boolean"}},"required":["formId"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"formId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"form":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"title":{"type":"string"},"adapter":{"type":"string"}},"required":["id","title","adapter"],"additionalProperties":false},"targetLevel":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"intervalMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"windowStart":{"nullable":true,"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"windowEnd":{"nullable":true,"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"quietHours":{"nullable":true,"type":"object","properties":{"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["start","end"],"additionalProperties":false},"retriesBeforeIncident":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"resolveAfterPasses":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deleteTestEntry":{"type":"boolean"},"suppressSideEffects":{"type":"boolean"},"sideEffectsConfirmedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"escalationPolicyId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"status":{"type":"string","enum":["active","paused","needs_config"]},"nextRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastRunState":{"nullable":true,"type":"string","enum":["QUEUED","RUNNING","SUBMITTED","VERIFYING","PASSED","PASSED_LATE","FAILED","INCONCLUSIVE","TIMED_OUT","CANCELLED"]},"health":{"nullable":true,"type":"string","enum":["healthy","failing","warning","unknown","paused","testing"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"usage":{"type":"object","properties":{"warnings":{"type":"array","items":{"type":"object","properties":{"meter":{"type":"string","enum":["sites","monitors","seats","l5Destinations","trial"]},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"message":{"type":"string"}},"required":["meter","used","limit","message"],"additionalProperties":false}}},"required":["warnings"],"additionalProperties":false}},"required":["id","orgId","siteId","formId","site","form","targetLevel","intervalMinutes","windowStart","windowEnd","quietHours","retriesBeforeIncident","resolveAfterPasses","deleteTestEntry","suppressSideEffects","sideEffectsConfirmedAt","escalationPolicyId","status","nextRunAt","lastRunAt","lastRunState","health","createdAt","updatedAt","usage"],"additionalProperties":false}}}}}}},"/v1/monitors/{id}":{"get":{"tags":["monitors"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"formId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"form":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"title":{"type":"string"},"adapter":{"type":"string"}},"required":["id","title","adapter"],"additionalProperties":false},"targetLevel":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"intervalMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"windowStart":{"nullable":true,"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"windowEnd":{"nullable":true,"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"quietHours":{"nullable":true,"type":"object","properties":{"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["start","end"],"additionalProperties":false},"retriesBeforeIncident":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"resolveAfterPasses":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deleteTestEntry":{"type":"boolean"},"suppressSideEffects":{"type":"boolean"},"sideEffectsConfirmedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"escalationPolicyId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"status":{"type":"string","enum":["active","paused","needs_config"]},"nextRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastRunState":{"nullable":true,"type":"string","enum":["QUEUED","RUNNING","SUBMITTED","VERIFYING","PASSED","PASSED_LATE","FAILED","INCONCLUSIVE","TIMED_OUT","CANCELLED"]},"health":{"nullable":true,"type":"string","enum":["healthy","failing","warning","unknown","paused","testing"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"openWchTicket":{"default":false,"type":"boolean"}},"required":["id","orgId","siteId","formId","site","form","targetLevel","intervalMinutes","windowStart","windowEnd","quietHours","retriesBeforeIncident","resolveAfterPasses","deleteTestEntry","suppressSideEffects","sideEffectsConfirmedAt","escalationPolicyId","status","nextRunAt","lastRunAt","lastRunState","health","createdAt","updatedAt","openWchTicket"],"additionalProperties":false}}}}}},"patch":{"tags":["monitors"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"targetLevel":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"intervalMinutes":{"type":"integer","minimum":60,"maximum":10080},"windowStart":{"nullable":true,"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"windowEnd":{"nullable":true,"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"quietHours":{"nullable":true,"type":"object","properties":{"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["start","end"]},"retriesBeforeIncident":{"type":"integer","minimum":0,"maximum":5},"resolveAfterPasses":{"type":"integer","minimum":1,"maximum":10},"deleteTestEntry":{"type":"boolean"},"suppressSideEffects":{"type":"boolean"},"escalationPolicyId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"status":{"type":"string","enum":["active","paused"]},"confirmSideEffects":{"type":"boolean"},"openWchTicket":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"formId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"form":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"title":{"type":"string"},"adapter":{"type":"string"}},"required":["id","title","adapter"],"additionalProperties":false},"targetLevel":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"intervalMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"windowStart":{"nullable":true,"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"windowEnd":{"nullable":true,"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"quietHours":{"nullable":true,"type":"object","properties":{"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["start","end"],"additionalProperties":false},"retriesBeforeIncident":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"resolveAfterPasses":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deleteTestEntry":{"type":"boolean"},"suppressSideEffects":{"type":"boolean"},"sideEffectsConfirmedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"escalationPolicyId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"status":{"type":"string","enum":["active","paused","needs_config"]},"nextRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastRunState":{"nullable":true,"type":"string","enum":["QUEUED","RUNNING","SUBMITTED","VERIFYING","PASSED","PASSED_LATE","FAILED","INCONCLUSIVE","TIMED_OUT","CANCELLED"]},"health":{"nullable":true,"type":"string","enum":["healthy","failing","warning","unknown","paused","testing"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"usage":{"type":"object","properties":{"warnings":{"type":"array","items":{"type":"object","properties":{"meter":{"type":"string","enum":["sites","monitors","seats","l5Destinations","trial"]},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"message":{"type":"string"}},"required":["meter","used","limit","message"],"additionalProperties":false}}},"required":["warnings"],"additionalProperties":false}},"required":["id","orgId","siteId","formId","site","form","targetLevel","intervalMinutes","windowStart","windowEnd","quietHours","retriesBeforeIncident","resolveAfterPasses","deleteTestEntry","suppressSideEffects","sideEffectsConfirmedAt","escalationPolicyId","status","nextRunAt","lastRunAt","lastRunState","health","createdAt","updatedAt","usage"],"additionalProperties":false}}}}}},"delete":{"tags":["monitors"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/monitors/{id}/run":{"post":{"tags":["monitors"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"nullable":true,"type":"object","properties":{"targetLevel":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]}}}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"marker":{"type":"string"},"state":{"type":"string","enum":["QUEUED","RUNNING","SUBMITTED","VERIFYING","PASSED","PASSED_LATE","FAILED","INCONCLUSIVE","TIMED_OUT","CANCELLED"]}},"required":["runId","marker","state"],"additionalProperties":false}}}}}}},"/v1/runs":{"get":{"tags":["runs"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"query","name":"cursor","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"query","name":"siteId","required":false},{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"query","name":"monitorId","required":false},{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"query","name":"formId","required":false},{"schema":{"anyOf":[{"type":"string","enum":["QUEUED","RUNNING","SUBMITTED","VERIFYING","PASSED","PASSED_LATE","FAILED","INCONCLUSIVE","TIMED_OUT","CANCELLED"]},{"type":"array","items":{"type":"string","enum":["QUEUED","RUNNING","SUBMITTED","VERIFYING","PASSED","PASSED_LATE","FAILED","INCONCLUSIVE","TIMED_OUT","CANCELLED"]}}]},"in":"query","name":"state","required":false},{"schema":{"anyOf":[{"type":"string","enum":["scheduled","manual","retry"]},{"type":"array","items":{"type":"string","enum":["scheduled","manual","retry"]}}]},"in":"query","name":"trigger","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"to","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"monitorId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"formId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"form":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"title":{"type":"string"},"adapter":{"type":"string"}},"required":["id","title","adapter"],"additionalProperties":false},"marker":{"type":"string"},"trigger":{"type":"string","enum":["scheduled","manual","retry"]},"triggeredBy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"state":{"type":"string","enum":["QUEUED","RUNNING","SUBMITTED","VERIFYING","PASSED","PASSED_LATE","FAILED","INCONCLUSIVE","TIMED_OUT","CANCELLED"]},"targetLevel":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"reachedLevel":{"type":"integer","minimum":0,"maximum":5},"reasonCode":{"nullable":true,"type":"string","enum":["CONNECTOR_UNREACHABLE","PLUGIN_INACTIVE","FORM_NOT_FOUND","VALIDATION_REJECTED","CAPTCHA_BLOCKED","ENTRY_NOT_FOUND","WP_MAIL_FALSE","SMTP_REJECTED","PROVIDER_BOUNCE","CATCH_NOT_RECEIVED","DEST_AUTH_EXPIRED","DEST_NOT_FOUND","RATE_LIMITED","SITE_DOWN","MAINTENANCE","SIDE_EFFECTS_UNCONFIRMED","DEST_AUTH_EXPIRING","SLOW_DELIVERY","PLATFORM_ERROR"]},"scheduledFor":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"startedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"latencyMs":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"workerId":{"nullable":true,"type":"string"},"incidentId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","monitorId","siteId","formId","site","form","marker","trigger","triggeredBy","state","targetLevel","reachedLevel","reasonCode","scheduledFor","startedAt","endedAt","latencyMs","workerId","incidentId","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["items","nextCursor"],"additionalProperties":false}}}}}}},"/v1/runs/{id}":{"get":{"tags":["runs"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"monitorId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"formId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"form":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"title":{"type":"string"},"adapter":{"type":"string"}},"required":["id","title","adapter"],"additionalProperties":false},"marker":{"type":"string"},"trigger":{"type":"string","enum":["scheduled","manual","retry"]},"triggeredBy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"state":{"type":"string","enum":["QUEUED","RUNNING","SUBMITTED","VERIFYING","PASSED","PASSED_LATE","FAILED","INCONCLUSIVE","TIMED_OUT","CANCELLED"]},"targetLevel":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"reachedLevel":{"type":"integer","minimum":0,"maximum":5},"reasonCode":{"nullable":true,"type":"string","enum":["CONNECTOR_UNREACHABLE","PLUGIN_INACTIVE","FORM_NOT_FOUND","VALIDATION_REJECTED","CAPTCHA_BLOCKED","ENTRY_NOT_FOUND","WP_MAIL_FALSE","SMTP_REJECTED","PROVIDER_BOUNCE","CATCH_NOT_RECEIVED","DEST_AUTH_EXPIRED","DEST_NOT_FOUND","RATE_LIMITED","SITE_DOWN","MAINTENANCE","SIDE_EFFECTS_UNCONFIRMED","DEST_AUTH_EXPIRING","SLOW_DELIVERY","PLATFORM_ERROR"]},"scheduledFor":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"startedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"latencyMs":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"workerId":{"nullable":true,"type":"string"},"incidentId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"stages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"runId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"level":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"status":{"type":"string","enum":["pending","ok","fail","timeout","skipped"]},"startedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"latencyMs":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deadlineAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"evidence":{"type":"object","additionalProperties":{}},"reasonCode":{"nullable":true,"type":"string","enum":["CONNECTOR_UNREACHABLE","PLUGIN_INACTIVE","FORM_NOT_FOUND","VALIDATION_REJECTED","CAPTCHA_BLOCKED","ENTRY_NOT_FOUND","WP_MAIL_FALSE","SMTP_REJECTED","PROVIDER_BOUNCE","CATCH_NOT_RECEIVED","DEST_AUTH_EXPIRED","DEST_NOT_FOUND","RATE_LIMITED","SITE_DOWN","MAINTENANCE","SIDE_EFFECTS_UNCONFIRMED","DEST_AUTH_EXPIRING","SLOW_DELIVERY","PLATFORM_ERROR"]}},"required":["id","runId","level","status","startedAt","endedAt","latencyMs","deadlineAt","evidence","reasonCode"],"additionalProperties":false}},"evidence":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"runId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"marker":{"type":"string"},"kind":{"type":"string","enum":["mail_event","mx_inbound","provider_event"]},"payload":{"type":"object","additionalProperties":{}},"receivedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"late":{"type":"boolean"}},"required":["id","runId","marker","kind","payload","receivedAt"],"additionalProperties":false}},"log":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"source":{"type":"string"},"message":{"type":"string"}},"required":["at","source","message"],"additionalProperties":false}},"lastSuccessfulRun":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"endedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"latencyMs":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"trigger":{"type":"string","enum":["scheduled","manual","retry"]}},"required":["id","endedAt","latencyMs","trigger"],"additionalProperties":false}},"required":["id","orgId","monitorId","siteId","formId","site","form","marker","trigger","triggeredBy","state","targetLevel","reachedLevel","reasonCode","scheduledFor","startedAt","endedAt","latencyMs","workerId","incidentId","createdAt","stages","evidence","log","lastSuccessfulRun"],"additionalProperties":false}}}}}}},"/v1/incidents":{"get":{"tags":["incidents"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"query","name":"cursor","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"anyOf":[{"type":"string","enum":["open","acknowledged","snoozed","resolved"]},{"type":"array","items":{"type":"string","enum":["open","acknowledged","snoozed","resolved"]}}]},"in":"query","name":"status","required":false},{"schema":{"type":"string","enum":["open","resolved","all"]},"in":"query","name":"state","required":false},{"schema":{"anyOf":[{"type":"string","enum":["critical","warning","unknown"]},{"type":"array","items":{"type":"string","enum":["critical","warning","unknown"]}}]},"in":"query","name":"severity","required":false},{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"query","name":"siteId","required":false},{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"query","name":"monitorId","required":false},{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"query","name":"assigneeId","required":false},{"schema":{"type":"string","enum":["smtp_credentials","dns_auth","plugin_update","host_blocked_mail","recipient_mailbox","captcha","site_down","other"]},"in":"query","name":"rootCause","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"to","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"monitorId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"formId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"form":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"title":{"type":"string"},"adapter":{"type":"string"}},"required":["id","title","adapter"],"additionalProperties":false},"severity":{"type":"string","enum":["critical","warning","unknown"]},"status":{"type":"string","enum":["open","acknowledged","snoozed","resolved"]},"reasonCode":{"nullable":true,"type":"string","enum":["CONNECTOR_UNREACHABLE","PLUGIN_INACTIVE","FORM_NOT_FOUND","VALIDATION_REJECTED","CAPTCHA_BLOCKED","ENTRY_NOT_FOUND","WP_MAIL_FALSE","SMTP_REJECTED","PROVIDER_BOUNCE","CATCH_NOT_RECEIVED","DEST_AUTH_EXPIRED","DEST_NOT_FOUND","RATE_LIMITED","SITE_DOWN","MAINTENANCE","SIDE_EFFECTS_UNCONFIRMED","DEST_AUTH_EXPIRING","SLOW_DELIVERY","PLATFORM_ERROR"]},"failedLevel":{"nullable":true,"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"targetLevel":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"openedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"acknowledgedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"snoozedUntil":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"resolvedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"assignee":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"rootCause":{"nullable":true,"type":"string","enum":["smtp_credentials","dns_auth","plugin_update","host_blocked_mail","recipient_mailbox","captcha","site_down","other"]},"firstRunId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"lastRunId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"failedRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"escalationStep":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastPassAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","number","orgId","siteId","monitorId","formId","site","form","severity","status","reasonCode","failedLevel","targetLevel","openedAt","acknowledgedAt","snoozedUntil","resolvedAt","assignee","rootCause","firstRunId","lastRunId","failedRuns","escalationStep","lastPassAt","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"summary":{"type":"object","properties":{"open":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acknowledged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"snoozed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"resolved30d":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mttr30dMs":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["open","acknowledged","snoozed","resolved30d","mttr30dMs"],"additionalProperties":false}},"required":["items","nextCursor"],"additionalProperties":false}}}}}}},"/v1/incidents/{id}":{"get":{"tags":["incidents"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"monitorId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"formId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"form":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"title":{"type":"string"},"adapter":{"type":"string"}},"required":["id","title","adapter"],"additionalProperties":false},"severity":{"type":"string","enum":["critical","warning","unknown"]},"status":{"type":"string","enum":["open","acknowledged","snoozed","resolved"]},"reasonCode":{"nullable":true,"type":"string","enum":["CONNECTOR_UNREACHABLE","PLUGIN_INACTIVE","FORM_NOT_FOUND","VALIDATION_REJECTED","CAPTCHA_BLOCKED","ENTRY_NOT_FOUND","WP_MAIL_FALSE","SMTP_REJECTED","PROVIDER_BOUNCE","CATCH_NOT_RECEIVED","DEST_AUTH_EXPIRED","DEST_NOT_FOUND","RATE_LIMITED","SITE_DOWN","MAINTENANCE","SIDE_EFFECTS_UNCONFIRMED","DEST_AUTH_EXPIRING","SLOW_DELIVERY","PLATFORM_ERROR"]},"failedLevel":{"nullable":true,"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"targetLevel":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"openedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"acknowledgedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"snoozedUntil":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"resolvedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"assignee":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"rootCause":{"nullable":true,"type":"string","enum":["smtp_credentials","dns_auth","plugin_update","host_blocked_mail","recipient_mailbox","captcha","site_down","other"]},"firstRunId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"lastRunId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"failedRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"escalationStep":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastPassAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["opened","run_attached","acknowledged","snoozed","unsnoozed","assigned","note_added","notified","escalated","severity_changed","late_pass","resolved","auto_resolved","wch_ticket_opened","wch_ticket_closed"]},"actor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"payload":{"type":"object","additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","incidentId","kind","actor","payload","createdAt"],"additionalProperties":false}},"notes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"user":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"body":{"type":"string"},"runId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","incidentId","user","body","runId","createdAt"],"additionalProperties":false}},"escalationPolicy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"notificationsSummary":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"channelKind":{"type":"string"},"channelName":{"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["channelId","channelKind","channelName","sent","failed"],"additionalProperties":false}},"runCounts":{"type":"object","properties":{"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"passed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inconclusive":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["failed","passed","inconclusive"],"additionalProperties":false}},"required":["id","number","orgId","siteId","monitorId","formId","site","form","severity","status","reasonCode","failedLevel","targetLevel","openedAt","acknowledgedAt","snoozedUntil","resolvedAt","assignee","rootCause","firstRunId","lastRunId","failedRuns","escalationStep","lastPassAt","createdAt","updatedAt","events","notes","escalationPolicy","notificationsSummary","runCounts"],"additionalProperties":false}}}}}}},"/v1/incidents/{id}/acknowledge":{"post":{"tags":["incidents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"nullable":true,"type":"object","properties":{},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"monitorId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"formId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"form":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"title":{"type":"string"},"adapter":{"type":"string"}},"required":["id","title","adapter"],"additionalProperties":false},"severity":{"type":"string","enum":["critical","warning","unknown"]},"status":{"type":"string","enum":["open","acknowledged","snoozed","resolved"]},"reasonCode":{"nullable":true,"type":"string","enum":["CONNECTOR_UNREACHABLE","PLUGIN_INACTIVE","FORM_NOT_FOUND","VALIDATION_REJECTED","CAPTCHA_BLOCKED","ENTRY_NOT_FOUND","WP_MAIL_FALSE","SMTP_REJECTED","PROVIDER_BOUNCE","CATCH_NOT_RECEIVED","DEST_AUTH_EXPIRED","DEST_NOT_FOUND","RATE_LIMITED","SITE_DOWN","MAINTENANCE","SIDE_EFFECTS_UNCONFIRMED","DEST_AUTH_EXPIRING","SLOW_DELIVERY","PLATFORM_ERROR"]},"failedLevel":{"nullable":true,"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"targetLevel":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"openedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"acknowledgedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"snoozedUntil":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"resolvedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"assignee":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"rootCause":{"nullable":true,"type":"string","enum":["smtp_credentials","dns_auth","plugin_update","host_blocked_mail","recipient_mailbox","captcha","site_down","other"]},"firstRunId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"lastRunId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"failedRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"escalationStep":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastPassAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["opened","run_attached","acknowledged","snoozed","unsnoozed","assigned","note_added","notified","escalated","severity_changed","late_pass","resolved","auto_resolved","wch_ticket_opened","wch_ticket_closed"]},"actor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"payload":{"type":"object","additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","incidentId","kind","actor","payload","createdAt"],"additionalProperties":false}},"notes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"user":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"body":{"type":"string"},"runId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","incidentId","user","body","runId","createdAt"],"additionalProperties":false}},"escalationPolicy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"notificationsSummary":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"channelKind":{"type":"string"},"channelName":{"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["channelId","channelKind","channelName","sent","failed"],"additionalProperties":false}},"runCounts":{"type":"object","properties":{"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"passed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inconclusive":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["failed","passed","inconclusive"],"additionalProperties":false}},"required":["id","number","orgId","siteId","monitorId","formId","site","form","severity","status","reasonCode","failedLevel","targetLevel","openedAt","acknowledgedAt","snoozedUntil","resolvedAt","assignee","rootCause","firstRunId","lastRunId","failedRuns","escalationStep","lastPassAt","createdAt","updatedAt","events","notes","escalationPolicy","notificationsSummary","runCounts"],"additionalProperties":false}}}}}}},"/v1/incidents/{id}/snooze":{"post":{"tags":["incidents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["until"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"monitorId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"formId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"form":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"title":{"type":"string"},"adapter":{"type":"string"}},"required":["id","title","adapter"],"additionalProperties":false},"severity":{"type":"string","enum":["critical","warning","unknown"]},"status":{"type":"string","enum":["open","acknowledged","snoozed","resolved"]},"reasonCode":{"nullable":true,"type":"string","enum":["CONNECTOR_UNREACHABLE","PLUGIN_INACTIVE","FORM_NOT_FOUND","VALIDATION_REJECTED","CAPTCHA_BLOCKED","ENTRY_NOT_FOUND","WP_MAIL_FALSE","SMTP_REJECTED","PROVIDER_BOUNCE","CATCH_NOT_RECEIVED","DEST_AUTH_EXPIRED","DEST_NOT_FOUND","RATE_LIMITED","SITE_DOWN","MAINTENANCE","SIDE_EFFECTS_UNCONFIRMED","DEST_AUTH_EXPIRING","SLOW_DELIVERY","PLATFORM_ERROR"]},"failedLevel":{"nullable":true,"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"targetLevel":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"openedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"acknowledgedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"snoozedUntil":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"resolvedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"assignee":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"rootCause":{"nullable":true,"type":"string","enum":["smtp_credentials","dns_auth","plugin_update","host_blocked_mail","recipient_mailbox","captcha","site_down","other"]},"firstRunId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"lastRunId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"failedRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"escalationStep":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastPassAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["opened","run_attached","acknowledged","snoozed","unsnoozed","assigned","note_added","notified","escalated","severity_changed","late_pass","resolved","auto_resolved","wch_ticket_opened","wch_ticket_closed"]},"actor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"payload":{"type":"object","additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","incidentId","kind","actor","payload","createdAt"],"additionalProperties":false}},"notes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"user":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"body":{"type":"string"},"runId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","incidentId","user","body","runId","createdAt"],"additionalProperties":false}},"escalationPolicy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"notificationsSummary":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"channelKind":{"type":"string"},"channelName":{"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["channelId","channelKind","channelName","sent","failed"],"additionalProperties":false}},"runCounts":{"type":"object","properties":{"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"passed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inconclusive":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["failed","passed","inconclusive"],"additionalProperties":false}},"required":["id","number","orgId","siteId","monitorId","formId","site","form","severity","status","reasonCode","failedLevel","targetLevel","openedAt","acknowledgedAt","snoozedUntil","resolvedAt","assignee","rootCause","firstRunId","lastRunId","failedRuns","escalationStep","lastPassAt","createdAt","updatedAt","events","notes","escalationPolicy","notificationsSummary","runCounts"],"additionalProperties":false}}}}}}},"/v1/incidents/{id}/assign":{"post":{"tags":["incidents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"required":["userId"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"monitorId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"formId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"form":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"title":{"type":"string"},"adapter":{"type":"string"}},"required":["id","title","adapter"],"additionalProperties":false},"severity":{"type":"string","enum":["critical","warning","unknown"]},"status":{"type":"string","enum":["open","acknowledged","snoozed","resolved"]},"reasonCode":{"nullable":true,"type":"string","enum":["CONNECTOR_UNREACHABLE","PLUGIN_INACTIVE","FORM_NOT_FOUND","VALIDATION_REJECTED","CAPTCHA_BLOCKED","ENTRY_NOT_FOUND","WP_MAIL_FALSE","SMTP_REJECTED","PROVIDER_BOUNCE","CATCH_NOT_RECEIVED","DEST_AUTH_EXPIRED","DEST_NOT_FOUND","RATE_LIMITED","SITE_DOWN","MAINTENANCE","SIDE_EFFECTS_UNCONFIRMED","DEST_AUTH_EXPIRING","SLOW_DELIVERY","PLATFORM_ERROR"]},"failedLevel":{"nullable":true,"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"targetLevel":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"openedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"acknowledgedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"snoozedUntil":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"resolvedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"assignee":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"rootCause":{"nullable":true,"type":"string","enum":["smtp_credentials","dns_auth","plugin_update","host_blocked_mail","recipient_mailbox","captcha","site_down","other"]},"firstRunId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"lastRunId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"failedRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"escalationStep":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastPassAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["opened","run_attached","acknowledged","snoozed","unsnoozed","assigned","note_added","notified","escalated","severity_changed","late_pass","resolved","auto_resolved","wch_ticket_opened","wch_ticket_closed"]},"actor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"payload":{"type":"object","additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","incidentId","kind","actor","payload","createdAt"],"additionalProperties":false}},"notes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"user":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"body":{"type":"string"},"runId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","incidentId","user","body","runId","createdAt"],"additionalProperties":false}},"escalationPolicy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"notificationsSummary":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"channelKind":{"type":"string"},"channelName":{"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["channelId","channelKind","channelName","sent","failed"],"additionalProperties":false}},"runCounts":{"type":"object","properties":{"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"passed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inconclusive":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["failed","passed","inconclusive"],"additionalProperties":false}},"required":["id","number","orgId","siteId","monitorId","formId","site","form","severity","status","reasonCode","failedLevel","targetLevel","openedAt","acknowledgedAt","snoozedUntil","resolvedAt","assignee","rootCause","firstRunId","lastRunId","failedRuns","escalationStep","lastPassAt","createdAt","updatedAt","events","notes","escalationPolicy","notificationsSummary","runCounts"],"additionalProperties":false}}}}}}},"/v1/incidents/{id}/resolve":{"post":{"tags":["incidents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rootCause":{"type":"string","enum":["smtp_credentials","dns_auth","plugin_update","host_blocked_mail","recipient_mailbox","captcha","site_down","other"]},"note":{"type":"string","maxLength":5000}},"required":["rootCause"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"monitorId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"formId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"form":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"title":{"type":"string"},"adapter":{"type":"string"}},"required":["id","title","adapter"],"additionalProperties":false},"severity":{"type":"string","enum":["critical","warning","unknown"]},"status":{"type":"string","enum":["open","acknowledged","snoozed","resolved"]},"reasonCode":{"nullable":true,"type":"string","enum":["CONNECTOR_UNREACHABLE","PLUGIN_INACTIVE","FORM_NOT_FOUND","VALIDATION_REJECTED","CAPTCHA_BLOCKED","ENTRY_NOT_FOUND","WP_MAIL_FALSE","SMTP_REJECTED","PROVIDER_BOUNCE","CATCH_NOT_RECEIVED","DEST_AUTH_EXPIRED","DEST_NOT_FOUND","RATE_LIMITED","SITE_DOWN","MAINTENANCE","SIDE_EFFECTS_UNCONFIRMED","DEST_AUTH_EXPIRING","SLOW_DELIVERY","PLATFORM_ERROR"]},"failedLevel":{"nullable":true,"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"targetLevel":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"openedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"acknowledgedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"snoozedUntil":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"resolvedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"assignee":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"rootCause":{"nullable":true,"type":"string","enum":["smtp_credentials","dns_auth","plugin_update","host_blocked_mail","recipient_mailbox","captcha","site_down","other"]},"firstRunId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"lastRunId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"failedRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"escalationStep":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastPassAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["opened","run_attached","acknowledged","snoozed","unsnoozed","assigned","note_added","notified","escalated","severity_changed","late_pass","resolved","auto_resolved","wch_ticket_opened","wch_ticket_closed"]},"actor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"payload":{"type":"object","additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","incidentId","kind","actor","payload","createdAt"],"additionalProperties":false}},"notes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"user":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"body":{"type":"string"},"runId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","incidentId","user","body","runId","createdAt"],"additionalProperties":false}},"escalationPolicy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"notificationsSummary":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"channelKind":{"type":"string"},"channelName":{"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["channelId","channelKind","channelName","sent","failed"],"additionalProperties":false}},"runCounts":{"type":"object","properties":{"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"passed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inconclusive":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["failed","passed","inconclusive"],"additionalProperties":false}},"required":["id","number","orgId","siteId","monitorId","formId","site","form","severity","status","reasonCode","failedLevel","targetLevel","openedAt","acknowledgedAt","snoozedUntil","resolvedAt","assignee","rootCause","firstRunId","lastRunId","failedRuns","escalationStep","lastPassAt","createdAt","updatedAt","events","notes","escalationPolicy","notificationsSummary","runCounts"],"additionalProperties":false}}}}}}},"/v1/incidents/{id}/notes":{"post":{"tags":["incidents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":5000},"runId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"required":["body"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"monitorId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"formId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"form":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"title":{"type":"string"},"adapter":{"type":"string"}},"required":["id","title","adapter"],"additionalProperties":false},"severity":{"type":"string","enum":["critical","warning","unknown"]},"status":{"type":"string","enum":["open","acknowledged","snoozed","resolved"]},"reasonCode":{"nullable":true,"type":"string","enum":["CONNECTOR_UNREACHABLE","PLUGIN_INACTIVE","FORM_NOT_FOUND","VALIDATION_REJECTED","CAPTCHA_BLOCKED","ENTRY_NOT_FOUND","WP_MAIL_FALSE","SMTP_REJECTED","PROVIDER_BOUNCE","CATCH_NOT_RECEIVED","DEST_AUTH_EXPIRED","DEST_NOT_FOUND","RATE_LIMITED","SITE_DOWN","MAINTENANCE","SIDE_EFFECTS_UNCONFIRMED","DEST_AUTH_EXPIRING","SLOW_DELIVERY","PLATFORM_ERROR"]},"failedLevel":{"nullable":true,"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"targetLevel":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"openedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"acknowledgedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"snoozedUntil":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"resolvedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"assignee":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"rootCause":{"nullable":true,"type":"string","enum":["smtp_credentials","dns_auth","plugin_update","host_blocked_mail","recipient_mailbox","captcha","site_down","other"]},"firstRunId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"lastRunId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"failedRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"escalationStep":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastPassAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["opened","run_attached","acknowledged","snoozed","unsnoozed","assigned","note_added","notified","escalated","severity_changed","late_pass","resolved","auto_resolved","wch_ticket_opened","wch_ticket_closed"]},"actor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"payload":{"type":"object","additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","incidentId","kind","actor","payload","createdAt"],"additionalProperties":false}},"notes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"user":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"body":{"type":"string"},"runId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","incidentId","user","body","runId","createdAt"],"additionalProperties":false}},"escalationPolicy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"notificationsSummary":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"channelKind":{"type":"string"},"channelName":{"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["channelId","channelKind","channelName","sent","failed"],"additionalProperties":false}},"runCounts":{"type":"object","properties":{"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"passed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inconclusive":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["failed","passed","inconclusive"],"additionalProperties":false}},"required":["id","number","orgId","siteId","monitorId","formId","site","form","severity","status","reasonCode","failedLevel","targetLevel","openedAt","acknowledgedAt","snoozedUntil","resolvedAt","assignee","rootCause","firstRunId","lastRunId","failedRuns","escalationStep","lastPassAt","createdAt","updatedAt","events","notes","escalationPolicy","notificationsSummary","runCounts"],"additionalProperties":false}}}}}}},"/v1/alert-channels":{"get":{"tags":["alerts"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"kind":{"type":"string","enum":["email","slack","webhook","teams","discord","sms"]},"config":{"type":"object","additionalProperties":{}},"status":{"type":"string","enum":["active","error","disabled"]},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","name","kind","config","status","lastError","createdAt","updatedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}}},"post":{"tags":["alerts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"kind":{"type":"string","enum":["slack"]},"config":{"type":"object","properties":{"mode":{"type":"string","enum":["app"]},"installationId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"channelId":{"type":"string","minLength":1,"maxLength":32},"channelName":{"type":"string","maxLength":80},"threaded":{"default":true,"type":"boolean"}},"required":["mode","installationId","channelId"]}},"required":["name","kind","config"]},{"allOf":[{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120}},"required":["name"]},{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["email"]},"config":{"type":"object","properties":{"recipients":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}}},"required":["recipients"]}},"required":["kind","config"]},{"type":"object","properties":{"kind":{"type":"string","enum":["slack"]},"config":{"type":"object","properties":{"webhookUrl":{"type":"string","maxLength":2048,"format":"uri"},"channel":{"type":"string","maxLength":80},"workspace":{"type":"string","maxLength":120}},"required":["webhookUrl"]}},"required":["kind","config"]},{"type":"object","properties":{"kind":{"type":"string","enum":["webhook"]},"config":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"secret":{"type":"string","minLength":16,"maxLength":200}},"required":["url"]}},"required":["kind","config"]},{"type":"object","properties":{"kind":{"type":"string","enum":["teams"]},"config":{"type":"object","properties":{"webhookUrl":{"type":"string","maxLength":2048,"format":"uri"}},"required":["webhookUrl"]}},"required":["kind","config"]},{"type":"object","properties":{"kind":{"type":"string","enum":["discord"]},"config":{"type":"object","properties":{"webhookUrl":{"type":"string","maxLength":2048,"format":"uri"}},"required":["webhookUrl"]}},"required":["kind","config"]},{"type":"object","properties":{"kind":{"type":"string","enum":["sms"]},"config":{"type":"object","properties":{"numbers":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^\\+[1-9]\\d{6,14}$"}}},"required":["numbers"]}},"required":["kind","config"]}]}]}]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"kind":{"type":"string","enum":["email","slack","webhook","teams","discord","sms"]},"config":{"type":"object","additionalProperties":{}},"status":{"type":"string","enum":["active","error","disabled"]},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","name","kind","config","status","lastError","createdAt","updatedAt"],"additionalProperties":false}}}}}}},"/v1/alert-channels/{id}":{"get":{"tags":["alerts"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"kind":{"type":"string","enum":["email","slack","webhook","teams","discord","sms"]},"config":{"type":"object","additionalProperties":{}},"status":{"type":"string","enum":["active","error","disabled"]},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","name","kind","config","status","lastError","createdAt","updatedAt"],"additionalProperties":false}}}}}},"patch":{"tags":["alerts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"config":{"type":"object","additionalProperties":{}},"status":{"type":"string","enum":["active","disabled"]}}}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"kind":{"type":"string","enum":["email","slack","webhook","teams","discord","sms"]},"config":{"type":"object","additionalProperties":{}},"status":{"type":"string","enum":["active","error","disabled"]},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","name","kind","config","status","lastError","createdAt","updatedAt"],"additionalProperties":false}}}}}},"delete":{"tags":["alerts"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/alert-channels/{id}/test":{"post":{"tags":["alerts"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"notificationId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"error":{"nullable":true,"type":"string"}},"required":["ok","notificationId","error"],"additionalProperties":false}}}}}}},"/v1/alert-rules":{"get":{"tags":["alerts"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"match":{"type":"object","properties":{"groupIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"severities":{"type":"array","items":{"type":"string","enum":["critical","warning","unknown"]}},"minSeverity":{"type":"string","enum":["critical","warning","unknown"]}},"additionalProperties":false},"channelIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"escalationPolicyId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","priority","name","match","channelIds","escalationPolicyId","enabled","createdAt","updatedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}}},"post":{"tags":["alerts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"priority":{"type":"integer","minimum":0,"maximum":10000},"match":{"default":{},"type":"object","properties":{"groupIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"severities":{"type":"array","items":{"type":"string","enum":["critical","warning","unknown"]}},"minSeverity":{"type":"string","enum":["critical","warning","unknown"]}}},"channelIds":{"minItems":1,"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"escalationPolicyId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"enabled":{"default":true,"type":"boolean"}},"required":["name","channelIds"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"match":{"type":"object","properties":{"groupIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"severities":{"type":"array","items":{"type":"string","enum":["critical","warning","unknown"]}},"minSeverity":{"type":"string","enum":["critical","warning","unknown"]}},"additionalProperties":false},"channelIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"escalationPolicyId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","priority","name","match","channelIds","escalationPolicyId","enabled","createdAt","updatedAt"],"additionalProperties":false}}}}}}},"/v1/alert-rules/{id}":{"get":{"tags":["alerts"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"match":{"type":"object","properties":{"groupIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"severities":{"type":"array","items":{"type":"string","enum":["critical","warning","unknown"]}},"minSeverity":{"type":"string","enum":["critical","warning","unknown"]}},"additionalProperties":false},"channelIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"escalationPolicyId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","priority","name","match","channelIds","escalationPolicyId","enabled","createdAt","updatedAt"],"additionalProperties":false}}}}}},"patch":{"tags":["alerts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"priority":{"type":"integer","minimum":0,"maximum":10000},"match":{"default":{},"type":"object","properties":{"groupIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"severities":{"type":"array","items":{"type":"string","enum":["critical","warning","unknown"]}},"minSeverity":{"type":"string","enum":["critical","warning","unknown"]}}},"channelIds":{"minItems":1,"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"escalationPolicyId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"enabled":{"default":true,"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"match":{"type":"object","properties":{"groupIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"severities":{"type":"array","items":{"type":"string","enum":["critical","warning","unknown"]}},"minSeverity":{"type":"string","enum":["critical","warning","unknown"]}},"additionalProperties":false},"channelIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"escalationPolicyId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","priority","name","match","channelIds","escalationPolicyId","enabled","createdAt","updatedAt"],"additionalProperties":false}}}}}},"delete":{"tags":["alerts"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/escalation-policies":{"get":{"tags":["alerts"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"steps":{"type":"array","items":{"type":"object","properties":{"afterMinutes":{"type":"integer","minimum":0,"maximum":10080},"targets":{"minItems":1,"type":"array","items":{"type":"string","enum":["technicians","admins","owner","assignee","all"]}},"channels":{"type":"string","enum":["matched","email"]},"repeat":{"nullable":true,"type":"string","enum":["daily"]},"at":{"nullable":true,"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"evenIfAcknowledged":{"type":"boolean"},"label":{"type":"string","maxLength":120}},"required":["afterMinutes","targets","channels"],"additionalProperties":false}},"isDefault":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","name","steps","isDefault","createdAt","updatedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}}},"post":{"tags":["alerts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"steps":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"afterMinutes":{"type":"integer","minimum":0,"maximum":10080},"targets":{"minItems":1,"type":"array","items":{"type":"string","enum":["technicians","admins","owner","assignee","all"]}},"channels":{"type":"string","enum":["matched","email"]},"repeat":{"nullable":true,"type":"string","enum":["daily"]},"at":{"nullable":true,"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"evenIfAcknowledged":{"type":"boolean"},"label":{"type":"string","maxLength":120}},"required":["afterMinutes","targets","channels"]}},"isDefault":{"type":"boolean"}},"required":["name","steps"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"steps":{"type":"array","items":{"type":"object","properties":{"afterMinutes":{"type":"integer","minimum":0,"maximum":10080},"targets":{"minItems":1,"type":"array","items":{"type":"string","enum":["technicians","admins","owner","assignee","all"]}},"channels":{"type":"string","enum":["matched","email"]},"repeat":{"nullable":true,"type":"string","enum":["daily"]},"at":{"nullable":true,"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"evenIfAcknowledged":{"type":"boolean"},"label":{"type":"string","maxLength":120}},"required":["afterMinutes","targets","channels"],"additionalProperties":false}},"isDefault":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","name","steps","isDefault","createdAt","updatedAt"],"additionalProperties":false}}}}}}},"/v1/escalation-policies/{id}":{"get":{"tags":["alerts"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"steps":{"type":"array","items":{"type":"object","properties":{"afterMinutes":{"type":"integer","minimum":0,"maximum":10080},"targets":{"minItems":1,"type":"array","items":{"type":"string","enum":["technicians","admins","owner","assignee","all"]}},"channels":{"type":"string","enum":["matched","email"]},"repeat":{"nullable":true,"type":"string","enum":["daily"]},"at":{"nullable":true,"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"evenIfAcknowledged":{"type":"boolean"},"label":{"type":"string","maxLength":120}},"required":["afterMinutes","targets","channels"],"additionalProperties":false}},"isDefault":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","name","steps","isDefault","createdAt","updatedAt"],"additionalProperties":false}}}}}},"patch":{"tags":["alerts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"steps":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"afterMinutes":{"type":"integer","minimum":0,"maximum":10080},"targets":{"minItems":1,"type":"array","items":{"type":"string","enum":["technicians","admins","owner","assignee","all"]}},"channels":{"type":"string","enum":["matched","email"]},"repeat":{"nullable":true,"type":"string","enum":["daily"]},"at":{"nullable":true,"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"evenIfAcknowledged":{"type":"boolean"},"label":{"type":"string","maxLength":120}},"required":["afterMinutes","targets","channels"]}},"isDefault":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"steps":{"type":"array","items":{"type":"object","properties":{"afterMinutes":{"type":"integer","minimum":0,"maximum":10080},"targets":{"minItems":1,"type":"array","items":{"type":"string","enum":["technicians","admins","owner","assignee","all"]}},"channels":{"type":"string","enum":["matched","email"]},"repeat":{"nullable":true,"type":"string","enum":["daily"]},"at":{"nullable":true,"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"evenIfAcknowledged":{"type":"boolean"},"label":{"type":"string","maxLength":120}},"required":["afterMinutes","targets","channels"],"additionalProperties":false}},"isDefault":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","name","steps","isDefault","createdAt","updatedAt"],"additionalProperties":false}}}}}},"delete":{"tags":["alerts"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/notifications":{"get":{"tags":["alerts"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"query","name":"cursor","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"query","name":"incidentId","required":false},{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"query","name":"channelId","required":false},{"schema":{"anyOf":[{"type":"string","enum":["queued","sent","delivered","failed","skipped"]},{"type":"array","items":{"type":"string","enum":["queued","sent","delivered","failed","skipped"]}}]},"in":"query","name":"status","required":false},{"schema":{"anyOf":[{"type":"string","enum":["incident_opened","escalation","reminder","warning","unknown","recovered","digest_daily","digest_weekly","report_ready","channel_test","welcome","site_connected","first_pass","quota_warning","trial_ending","payment_failed","invoice","client_invite","sso_invite","destination_expiring","portal_magic_link","audit_ready"]},{"type":"array","items":{"type":"string","enum":["incident_opened","escalation","reminder","warning","unknown","recovered","digest_daily","digest_weekly","report_ready","channel_test","welcome","site_connected","first_pass","quota_warning","trial_ending","payment_failed","invoice","client_invite","sso_invite","destination_expiring","portal_magic_link","audit_ready"]}}]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"to","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentNumber":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"channelId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"channelKind":{"nullable":true,"type":"string","enum":["email","slack","webhook","teams","discord","sms"]},"kind":{"type":"string","enum":["incident_opened","escalation","reminder","warning","unknown","recovered","digest_daily","digest_weekly","report_ready","channel_test","welcome","site_connected","first_pass","quota_warning","trial_ending","payment_failed","invoice","client_invite","sso_invite","destination_expiring","portal_magic_link","audit_ready"]},"status":{"type":"string","enum":["queued","sent","delivered","failed","skipped"]},"recipient":{"nullable":true,"type":"string"},"step":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sentAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"error":{"nullable":true,"type":"string"},"externalId":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","incidentId","incidentNumber","channelId","channelKind","kind","status","recipient","step","sentAt","error","externalId","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["items","nextCursor"],"additionalProperties":false}}}}}}},"/v1/reports":{"get":{"tags":["reports"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"query","name":"cursor","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"anyOf":[{"type":"string","enum":["client_monthly","incident","agency_summary","agency_monthly","site_audit"]},{"type":"array","items":{"type":"string","enum":["client_monthly","incident","agency_summary","agency_monthly","site_audit"]}}]},"in":"query","name":"kind","required":false},{"schema":{"anyOf":[{"type":"string","enum":["queued","generating","ready","failed"]},{"type":"array","items":{"type":"string","enum":["queued","generating","ready","failed"]}}]},"in":"query","name":"status","required":false},{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"query","name":"siteId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["client_monthly","incident","agency_summary","agency_monthly","site_audit"]},"title":{"type":"string"},"scope":{"type":"object","properties":{"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"groupId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"paper":{"type":"string","enum":["a4","letter"]}},"additionalProperties":false},"periodStart":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"periodEnd":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"status":{"type":"string","enum":["queued","generating","ready","failed"]},"storageKey":{"nullable":true,"type":"string"},"pages":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sizeBytes":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"generatedBy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"error":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","kind","title","scope","periodStart","periodEnd","status","storageKey","pages","sizeBytes","generatedBy","error","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["items","nextCursor"],"additionalProperties":false}}}}}},"post":{"tags":["reports"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["client_monthly","incident","agency_summary","agency_monthly","site_audit"]},"scope":{"type":"object","properties":{"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"groupId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"paper":{"type":"string","enum":["a4","letter"]}}},"periodStart":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"periodEnd":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["kind","scope","periodStart","periodEnd"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["client_monthly","incident","agency_summary","agency_monthly","site_audit"]},"title":{"type":"string"},"scope":{"type":"object","properties":{"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"groupId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"paper":{"type":"string","enum":["a4","letter"]}},"additionalProperties":false},"periodStart":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"periodEnd":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"status":{"type":"string","enum":["queued","generating","ready","failed"]},"storageKey":{"nullable":true,"type":"string"},"pages":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sizeBytes":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"generatedBy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"error":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","kind","title","scope","periodStart","periodEnd","status","storageKey","pages","sizeBytes","generatedBy","error","createdAt","updatedAt"],"additionalProperties":false}}}}}}},"/v1/reports/{id}":{"get":{"tags":["reports"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["client_monthly","incident","agency_summary","agency_monthly","site_audit"]},"title":{"type":"string"},"scope":{"type":"object","properties":{"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"groupId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"paper":{"type":"string","enum":["a4","letter"]}},"additionalProperties":false},"periodStart":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"periodEnd":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"status":{"type":"string","enum":["queued","generating","ready","failed"]},"storageKey":{"nullable":true,"type":"string"},"pages":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sizeBytes":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"generatedBy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"error":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","kind","title","scope","periodStart","periodEnd","status","storageKey","pages","sizeBytes","generatedBy","error","createdAt","updatedAt"],"additionalProperties":false}}}}}}},"/v1/reports/{id}/download":{"get":{"tags":["reports"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["url","expiresAt"],"additionalProperties":false}}}}}}},"/v1/report-schedules":{"get":{"tags":["reports"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["client_monthly","incident","agency_summary","agency_monthly","site_audit"]},"scope":{"type":"object","properties":{"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"groupId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"paper":{"type":"string","enum":["a4","letter"]}},"additionalProperties":false},"cadence":{"type":"string","enum":["weekly","monthly"]},"recipients":{"type":"array","items":{"anyOf":[{"type":"string","enum":["clients"]},{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}]}},"nextAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastReportId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"paused":{"type":"boolean"}},"required":["id","orgId","kind","scope","cadence","recipients","nextAt","enabled","createdAt","updatedAt","lastRunAt","lastReportId","paused"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}}},"post":{"tags":["reports"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["client_monthly","incident","agency_summary","agency_monthly","site_audit"]},"scope":{"type":"object","properties":{"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"groupId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"paper":{"type":"string","enum":["a4","letter"]}}},"cadence":{"type":"string","enum":["weekly","monthly"]},"recipients":{"minItems":1,"maxItems":50,"type":"array","items":{"anyOf":[{"type":"string","enum":["clients","client_users","@clients"]},{"type":"string"}]}},"enabled":{"default":true,"type":"boolean"}},"required":["kind","scope","cadence","recipients"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["client_monthly","incident","agency_summary","agency_monthly","site_audit"]},"scope":{"type":"object","properties":{"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"groupId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"paper":{"type":"string","enum":["a4","letter"]}},"additionalProperties":false},"cadence":{"type":"string","enum":["weekly","monthly"]},"recipients":{"type":"array","items":{"anyOf":[{"type":"string","enum":["clients"]},{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}]}},"nextAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastReportId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"paused":{"type":"boolean"}},"required":["id","orgId","kind","scope","cadence","recipients","nextAt","enabled","createdAt","updatedAt","lastRunAt","lastReportId","paused"],"additionalProperties":false}}}}}}},"/v1/report-schedules/{id}":{"get":{"tags":["reports"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["client_monthly","incident","agency_summary","agency_monthly","site_audit"]},"scope":{"type":"object","properties":{"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"groupId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"paper":{"type":"string","enum":["a4","letter"]}},"additionalProperties":false},"cadence":{"type":"string","enum":["weekly","monthly"]},"recipients":{"type":"array","items":{"anyOf":[{"type":"string","enum":["clients"]},{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}]}},"nextAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastReportId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"paused":{"type":"boolean"}},"required":["id","orgId","kind","scope","cadence","recipients","nextAt","enabled","createdAt","updatedAt","lastRunAt","lastReportId","paused"],"additionalProperties":false}}}}}},"patch":{"tags":["reports"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["client_monthly","incident","agency_summary","agency_monthly","site_audit"]},"scope":{"type":"object","properties":{"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"groupId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"paper":{"type":"string","enum":["a4","letter"]}}},"cadence":{"type":"string","enum":["weekly","monthly"]},"recipients":{"minItems":1,"maxItems":50,"type":"array","items":{"anyOf":[{"type":"string","enum":["clients","client_users","@clients"]},{"type":"string"}]}},"enabled":{"default":true,"type":"boolean"},"paused":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["client_monthly","incident","agency_summary","agency_monthly","site_audit"]},"scope":{"type":"object","properties":{"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"groupId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"paper":{"type":"string","enum":["a4","letter"]}},"additionalProperties":false},"cadence":{"type":"string","enum":["weekly","monthly"]},"recipients":{"type":"array","items":{"anyOf":[{"type":"string","enum":["clients"]},{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}]}},"nextAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastReportId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"paused":{"type":"boolean"}},"required":["id","orgId","kind","scope","cadence","recipients","nextAt","enabled","createdAt","updatedAt","lastRunAt","lastReportId","paused"],"additionalProperties":false}}}}}},"delete":{"tags":["reports"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/report-schedules/{id}/pause":{"post":{"tags":["reports"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["client_monthly","incident","agency_summary","agency_monthly","site_audit"]},"scope":{"type":"object","properties":{"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"groupId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"paper":{"type":"string","enum":["a4","letter"]}},"additionalProperties":false},"cadence":{"type":"string","enum":["weekly","monthly"]},"recipients":{"type":"array","items":{"anyOf":[{"type":"string","enum":["clients"]},{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}]}},"nextAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastReportId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"paused":{"type":"boolean"}},"required":["id","orgId","kind","scope","cadence","recipients","nextAt","enabled","createdAt","updatedAt","lastRunAt","lastReportId","paused"],"additionalProperties":false}}}}}}},"/v1/report-schedules/{id}/resume":{"post":{"tags":["reports"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["client_monthly","incident","agency_summary","agency_monthly","site_audit"]},"scope":{"type":"object","properties":{"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"groupId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"paper":{"type":"string","enum":["a4","letter"]}},"additionalProperties":false},"cadence":{"type":"string","enum":["weekly","monthly"]},"recipients":{"type":"array","items":{"anyOf":[{"type":"string","enum":["clients"]},{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}]}},"nextAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastReportId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"paused":{"type":"boolean"}},"required":["id","orgId","kind","scope","cadence","recipients","nextAt","enabled","createdAt","updatedAt","lastRunAt","lastReportId","paused"],"additionalProperties":false}}}}}}},"/v1/members":{"get":{"tags":["team"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"userId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","enum":["owner","admin","technician","viewer","client"]},"totpEnabled":{"type":"boolean"},"scope":{"nullable":true,"type":"object","properties":{"groupIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}}},"additionalProperties":false},"lastActiveAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","userId","name","email","role","totpEnabled","scope","lastActiveAt","createdAt"],"additionalProperties":false}},"invites":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","enum":["owner","admin","technician","viewer","client"]},"invitedBy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"acceptedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","email","role","invitedBy","expiresAt","acceptedAt","createdAt"],"additionalProperties":false}},"seats":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["used","limit"],"additionalProperties":false}},"required":["items","invites","seats"],"additionalProperties":false}}}}}}},"/v1/invites":{"post":{"tags":["team"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"role":{"type":"string","enum":["admin","technician","viewer","client"]},"scope":{"nullable":true,"type":"object","properties":{"groupIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}}}}},"required":["email","role"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","enum":["owner","admin","technician","viewer","client"]},"invitedBy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"acceptedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"usage":{"type":"object","properties":{"warnings":{"type":"array","items":{"type":"object","properties":{"meter":{"type":"string","enum":["sites","monitors","seats","l5Destinations","trial"]},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"message":{"type":"string"}},"required":["meter","used","limit","message"],"additionalProperties":false}}},"required":["warnings"],"additionalProperties":false}},"required":["id","email","role","invitedBy","expiresAt","acceptedAt","createdAt","usage"],"additionalProperties":false}}}}}}},"/v1/invites/{id}":{"delete":{"tags":["team"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/members/{id}":{"patch":{"tags":["team"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["admin","technician","viewer","client"]},"scope":{"nullable":true,"type":"object","properties":{"groupIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}}}}}}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"userId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","enum":["owner","admin","technician","viewer","client"]},"totpEnabled":{"type":"boolean"},"scope":{"nullable":true,"type":"object","properties":{"groupIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}}},"additionalProperties":false},"lastActiveAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","userId","name","email","role","totpEnabled","scope","lastActiveAt","createdAt"],"additionalProperties":false}}}}}},"delete":{"tags":["team"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/org":{"get":{"tags":["org"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string","minLength":1,"maxLength":64},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"trialEndsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"settings":{"type":"object","properties":{"logoUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"brandColor":{"nullable":true,"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"quietHours":{"nullable":true,"type":"object","properties":{"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["start","end"],"additionalProperties":false},"dailyDigest":{"type":"object","properties":{"enabled":{"type":"boolean"},"time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["enabled","time"],"additionalProperties":false},"weeklyDigest":{"type":"object","properties":{"enabled":{"type":"boolean"},"weekday":{"type":"integer","minimum":0,"maximum":6},"time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["enabled","weekday","time"],"additionalProperties":false},"digestWhenHealthy":{"type":"boolean"},"require2fa":{"type":"boolean"},"reportFooter":{"nullable":true,"type":"string","maxLength":500},"defaultPaper":{"type":"string","enum":["a4","letter"]},"statusPageDomain":{"nullable":true,"type":"string","maxLength":253},"portalVisibility":{"type":"object","additionalProperties":{"type":"boolean"}}},"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","slug","timezone","plan","trialEndsAt","settings","createdAt","updatedAt"],"additionalProperties":false}}}}}},"patch":{"tags":["org"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"slug":{"type":"string","minLength":2,"maxLength":48,"pattern":"^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"timezone":{"type":"string","minLength":1,"maxLength":64},"settings":{"type":"object","properties":{"logoUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"brandColor":{"nullable":true,"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"quietHours":{"nullable":true,"type":"object","properties":{"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["start","end"]},"dailyDigest":{"type":"object","properties":{"enabled":{"type":"boolean"},"time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["enabled","time"]},"weeklyDigest":{"type":"object","properties":{"enabled":{"type":"boolean"},"weekday":{"type":"integer","minimum":0,"maximum":6},"time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["enabled","weekday","time"]},"digestWhenHealthy":{"type":"boolean"},"require2fa":{"type":"boolean"},"reportFooter":{"nullable":true,"type":"string","maxLength":500},"defaultPaper":{"type":"string","enum":["a4","letter"]},"statusPageDomain":{"nullable":true,"type":"string","maxLength":253},"portalVisibility":{"type":"object","additionalProperties":{"type":"boolean"}}}}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string","minLength":1,"maxLength":64},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"trialEndsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"settings":{"type":"object","properties":{"logoUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"brandColor":{"nullable":true,"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"quietHours":{"nullable":true,"type":"object","properties":{"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["start","end"],"additionalProperties":false},"dailyDigest":{"type":"object","properties":{"enabled":{"type":"boolean"},"time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["enabled","time"],"additionalProperties":false},"weeklyDigest":{"type":"object","properties":{"enabled":{"type":"boolean"},"weekday":{"type":"integer","minimum":0,"maximum":6},"time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["enabled","weekday","time"],"additionalProperties":false},"digestWhenHealthy":{"type":"boolean"},"require2fa":{"type":"boolean"},"reportFooter":{"nullable":true,"type":"string","maxLength":500},"defaultPaper":{"type":"string","enum":["a4","letter"]},"statusPageDomain":{"nullable":true,"type":"string","maxLength":253},"portalVisibility":{"type":"object","additionalProperties":{"type":"boolean"}}},"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","slug","timezone","plan","trialEndsAt","settings","createdAt","updatedAt"],"additionalProperties":false}}}}}}},"/v1/api-keys":{"get":{"tags":["api-keys"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"prefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["org:read","org:update","org:delete","billing:read","billing:manage","branding:update","members:read","members:manage","sites:read","sites:write","sites:delete","forms:read","forms:discover","monitors:read","monitors:write","runs:read","runs:trigger","incidents:read","incidents:write","alerts:read","alerts:write","notifications:read","reports:read","reports:write","api_keys:manage","webhooks:manage","audit:read","usage:read","portal:manage","wch:manage","sso:manage","destinations:manage","admin:platform"]}},"createdBy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"lastUsedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"revokedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","prefix","scopes","createdBy","lastUsedAt","revokedAt","createdAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}}},"post":{"tags":["api-keys"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"scopes":{"default":[],"type":"array","items":{"type":"string","enum":["org:read","org:update","org:delete","billing:read","billing:manage","branding:update","members:read","members:manage","sites:read","sites:write","sites:delete","forms:read","forms:discover","monitors:read","monitors:write","runs:read","runs:trigger","incidents:read","incidents:write","alerts:read","alerts:write","notifications:read","reports:read","reports:write","api_keys:manage","webhooks:manage","audit:read","usage:read","portal:manage","wch:manage","sso:manage","destinations:manage","admin:platform"]}}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"prefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["org:read","org:update","org:delete","billing:read","billing:manage","branding:update","members:read","members:manage","sites:read","sites:write","sites:delete","forms:read","forms:discover","monitors:read","monitors:write","runs:read","runs:trigger","incidents:read","incidents:write","alerts:read","alerts:write","notifications:read","reports:read","reports:write","api_keys:manage","webhooks:manage","audit:read","usage:read","portal:manage","wch:manage","sso:manage","destinations:manage","admin:platform"]}},"createdBy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"lastUsedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"revokedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"key":{"type":"string"}},"required":["id","name","prefix","scopes","createdBy","lastUsedAt","revokedAt","createdAt","key"],"additionalProperties":false}}}}}}},"/v1/api-keys/{id}":{"patch":{"tags":["api-keys"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"scopes":{"type":"array","items":{"type":"string","enum":["org:read","org:update","org:delete","billing:read","billing:manage","branding:update","members:read","members:manage","sites:read","sites:write","sites:delete","forms:read","forms:discover","monitors:read","monitors:write","runs:read","runs:trigger","incidents:read","incidents:write","alerts:read","alerts:write","notifications:read","reports:read","reports:write","api_keys:manage","webhooks:manage","audit:read","usage:read","portal:manage","wch:manage","sso:manage","destinations:manage","admin:platform"]}}}}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"prefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["org:read","org:update","org:delete","billing:read","billing:manage","branding:update","members:read","members:manage","sites:read","sites:write","sites:delete","forms:read","forms:discover","monitors:read","monitors:write","runs:read","runs:trigger","incidents:read","incidents:write","alerts:read","alerts:write","notifications:read","reports:read","reports:write","api_keys:manage","webhooks:manage","audit:read","usage:read","portal:manage","wch:manage","sso:manage","destinations:manage","admin:platform"]}},"createdBy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"lastUsedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"revokedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","prefix","scopes","createdBy","lastUsedAt","revokedAt","createdAt"],"additionalProperties":false}}}}}},"delete":{"tags":["api-keys"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/webhooks":{"get":{"tags":["webhooks"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string","enum":["incident.opened","incident.updated","incident.resolved","run.completed","site.connected","site.disconnected"]}},"status":{"type":"string","enum":["active","disabled"]},"secretHint":{"type":"string"},"lastDeliveryAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","url","events","status","secretHint","lastDeliveryAt","createdAt","updatedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}}},"post":{"tags":["webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"events":{"minItems":1,"type":"array","items":{"type":"string","enum":["incident.opened","incident.updated","incident.resolved","run.completed","site.connected","site.disconnected"]}}},"required":["url","events"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string","enum":["incident.opened","incident.updated","incident.resolved","run.completed","site.connected","site.disconnected"]}},"status":{"type":"string","enum":["active","disabled"]},"secretHint":{"type":"string"},"lastDeliveryAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"secret":{"type":"string"}},"required":["id","orgId","url","events","status","secretHint","lastDeliveryAt","createdAt","updatedAt","secret"],"additionalProperties":false}}}}}}},"/v1/webhooks/{id}":{"get":{"tags":["webhooks"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string","enum":["incident.opened","incident.updated","incident.resolved","run.completed","site.connected","site.disconnected"]}},"status":{"type":"string","enum":["active","disabled"]},"secretHint":{"type":"string"},"lastDeliveryAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","url","events","status","secretHint","lastDeliveryAt","createdAt","updatedAt"],"additionalProperties":false}}}}}},"patch":{"tags":["webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"events":{"minItems":1,"type":"array","items":{"type":"string","enum":["incident.opened","incident.updated","incident.resolved","run.completed","site.connected","site.disconnected"]}},"status":{"type":"string","enum":["active","disabled"]},"rotateSecret":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string","enum":["incident.opened","incident.updated","incident.resolved","run.completed","site.connected","site.disconnected"]}},"status":{"type":"string","enum":["active","disabled"]},"secretHint":{"type":"string"},"lastDeliveryAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"secret":{"type":"string"}},"required":["id","orgId","url","events","status","secretHint","lastDeliveryAt","createdAt","updatedAt"],"additionalProperties":false}}}}}},"delete":{"tags":["webhooks"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/webhooks/{id}/deliveries":{"get":{"tags":["webhooks"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"query","name":"cursor","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","enum":["pending","retrying","delivered","failed"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"endpointId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"event":{"type":"string","enum":["incident.opened","incident.updated","incident.resolved","run.completed","site.connected","site.disconnected"]},"payload":{"type":"object","additionalProperties":{}},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","retrying","delivered","failed"]},"lastError":{"nullable":true,"type":"string"},"responseStatus":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextAttemptAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"deliveredAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","endpointId","event","payload","attempts","status","lastError","responseStatus","nextAttemptAt","deliveredAt","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["items","nextCursor"],"additionalProperties":false}}}}}}},"/v1/dashboard/summary":{"get":{"tags":["dashboard"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"generatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"sites":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"healthy":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failing":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"warning":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unknown":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paused":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"testing":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["total","healthy","failing","warning","unknown","paused","testing"],"additionalProperties":false},"forms":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"monitored":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"addedThisWeek":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["total","monitored","addedThisWeek"],"additionalProperties":false},"tests7d":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"passedAtTarget":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"passRate":{"nullable":true,"type":"number"}},"required":["total","passedAtTarget","passRate"],"additionalProperties":false},"incidents":{"type":"object","properties":{"open":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"oldestOpenAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"mttr30dMs":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["open","oldestOpenAt","mttr30dMs"],"additionalProperties":false},"banner":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"severity":{"type":"string","enum":["critical","warning","unknown"]},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"form":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"title":{"type":"string"},"adapter":{"type":"string"}},"required":["id","title","adapter"],"additionalProperties":false},"failedLevel":{"nullable":true,"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"reasonCode":{"nullable":true,"type":"string","enum":["CONNECTOR_UNREACHABLE","PLUGIN_INACTIVE","FORM_NOT_FOUND","VALIDATION_REJECTED","CAPTCHA_BLOCKED","ENTRY_NOT_FOUND","WP_MAIL_FALSE","SMTP_REJECTED","PROVIDER_BOUNCE","CATCH_NOT_RECEIVED","DEST_AUTH_EXPIRED","DEST_NOT_FOUND","RATE_LIMITED","SITE_DOWN","MAINTENANCE","SIDE_EFFECTS_UNCONFIRMED","DEST_AUTH_EXPIRING","SLOW_DELIVERY","PLATFORM_ERROR"]},"openedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"assignee":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"lastPassAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"failedRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","severity","site","form","failedLevel","reasonCode","openedAt","assignee","lastPassAt","failedRuns"],"additionalProperties":false},"openIncidents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"severity":{"type":"string","enum":["critical","warning","unknown"]},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"form":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"title":{"type":"string"},"adapter":{"type":"string"}},"required":["id","title","adapter"],"additionalProperties":false},"failedLevel":{"nullable":true,"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"reasonCode":{"nullable":true,"type":"string","enum":["CONNECTOR_UNREACHABLE","PLUGIN_INACTIVE","FORM_NOT_FOUND","VALIDATION_REJECTED","CAPTCHA_BLOCKED","ENTRY_NOT_FOUND","WP_MAIL_FALSE","SMTP_REJECTED","PROVIDER_BOUNCE","CATCH_NOT_RECEIVED","DEST_AUTH_EXPIRED","DEST_NOT_FOUND","RATE_LIMITED","SITE_DOWN","MAINTENANCE","SIDE_EFFECTS_UNCONFIRMED","DEST_AUTH_EXPIRING","SLOW_DELIVERY","PLATFORM_ERROR"]},"openedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"assignee":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"lastPassAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"failedRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","severity","site","form","failedLevel","reasonCode","openedAt","assignee","lastPassAt","failedRuns"],"additionalProperties":false}},"sitesNeedingAttention":{"type":"array","items":{"type":"object","properties":{"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"formsCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["healthy","failing","warning","unknown","paused","testing"]},"targetLevel":{"nullable":true,"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"uptimeDays":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"status":{"type":"string","enum":["ok","fail","unknown","paused","none"]}},"required":["date","status"],"additionalProperties":false}},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"note":{"nullable":true,"type":"string"}},"required":["site","formsCount","status","targetLevel","uptimeDays","lastRunAt","note"],"additionalProperties":false}},"nextRuns":{"type":"array","items":{"type":"object","properties":{"monitorId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"site":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"form":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"title":{"type":"string"},"adapter":{"type":"string"}},"required":["id","title","adapter"],"additionalProperties":false},"targetLevel":{"nullable":true,"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"state":{"nullable":true,"type":"string","enum":["QUEUED","RUNNING","SUBMITTED","VERIFYING","PASSED","PASSED_LATE","FAILED","INCONCLUSIVE","TIMED_OUT","CANCELLED"]},"label":{"nullable":true,"type":"string"}},"required":["monitorId","site","form","targetLevel","at","state","label"],"additionalProperties":false}},"usage":{"type":"object","properties":{"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"trialEndsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"sites":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["used","limit"],"additionalProperties":false},"monitors":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["used","limit"],"additionalProperties":false},"seats":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["used","limit"],"additionalProperties":false},"l5Destinations":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["used","limit"],"additionalProperties":false},"runsThisMonth":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"periodStart":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"periodEnd":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["plan","trialEndsAt","sites","monitors","seats","l5Destinations","runsThisMonth","periodStart","periodEnd"],"additionalProperties":false}},"required":["generatedAt","sites","forms","tests7d","incidents","banner","openIncidents","sitesNeedingAttention","nextRuns","usage"],"additionalProperties":false}}}}}}},"/v1/dashboard/outcomes":{"get":{"tags":["dashboard"],"parameters":[{"schema":{"default":30,"type":"integer","minimum":1,"maximum":90},"in":"query","name":"days","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"passed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inconclusive":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["date","total","passed","inconclusive","failed"],"additionalProperties":false}}},"required":["days"],"additionalProperties":false}}}}}}},"/v1/usage":{"get":{"tags":["usage"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"trialEndsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"sites":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["used","limit"],"additionalProperties":false},"monitors":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["used","limit"],"additionalProperties":false},"seats":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["used","limit"],"additionalProperties":false},"l5Destinations":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["used","limit"],"additionalProperties":false},"runsThisMonth":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"periodStart":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"periodEnd":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"warnings":{"type":"array","items":{"type":"object","properties":{"meter":{"type":"string","enum":["sites","monitors","seats","l5Destinations","trial"]},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"message":{"type":"string"}},"required":["meter","used","limit","message"],"additionalProperties":false}},"quota":{"type":"object","properties":{"period":{"type":"string"},"sites":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"monitors":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"seats":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"l5":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"sms":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"apiRequests":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"meter":{"type":"string","enum":["sites","monitors","seats","l5","sms","apiRequests"]},"threshold":{"anyOf":[{"type":"number","enum":[80]},{"type":"number","enum":[100]}]},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"},"message":{"type":"string"}},"required":["meter","threshold","used","limit","pct","over","message"],"additionalProperties":false}},"overLimit":{"type":"boolean"},"grace":{"type":"object","properties":{"status":{"type":"string","enum":["ok","grace","expired"]},"graceStartedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"day":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["status","graceStartedAt","endsAt","daysLeft","day"],"additionalProperties":false},"pausedSiteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}}},"required":["period","sites","monitors","seats","l5","sms","apiRequests","warnings","overLimit","grace","pausedSiteIds"],"additionalProperties":false}},"required":["plan","trialEndsAt","sites","monitors","seats","l5Destinations","runsThisMonth","periodStart","periodEnd","warnings","quota"],"additionalProperties":false}}}}}}},"/v1/public/status/{orgSlug}/{siteSlug}":{"get":{"tags":["public"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"orgSlug","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"siteSlug","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"org":{"type":"object","properties":{"name":{"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"brandColor":{"nullable":true,"type":"string"}},"required":["name","logoUrl","brandColor"],"additionalProperties":false},"site":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"}},"required":["name","url"],"additionalProperties":false},"status":{"type":"string","enum":["healthy","failing","warning","unknown","paused","testing"]},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"uptime30d":{"nullable":true,"type":"number"},"forms":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"status":{"type":"string","enum":["healthy","failing","warning","unknown","paused","testing"]},"level":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"levelName":{"type":"string"},"lastCheckedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"uptime30d":{"nullable":true,"type":"number"},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"status":{"type":"string","enum":["ok","fail","unknown","paused","none"]}},"required":["date","status"],"additionalProperties":false}}},"required":["title","status","level","levelName","lastCheckedAt","uptime30d","days"],"additionalProperties":false}},"notices":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"since":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"severity":{"type":"string","enum":["critical","warning","unknown"]}},"required":["title","since","severity"],"additionalProperties":false}},"branding":{"type":"object","properties":{"agencyName":{"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"colour":{"type":"string"},"contactLine":{"type":"string"},"whiteLabel":{"type":"boolean"}},"required":["agencyName","logoUrl","colour","contactLine","whiteLabel"],"additionalProperties":false},"poweredBy":{"nullable":true,"type":"string"}},"required":["org","site","status","updatedAt","uptime30d","forms","notices","branding","poweredBy"],"additionalProperties":false}}}}}}},"/v1/billing":{"get":{"tags":["billing"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orgPlan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"planSource":{"type":"string","enum":["org","trial","subscription","override","wch"]},"interval":{"nullable":true,"type":"string","enum":["monthly","annual"]},"wchBundled":{"type":"boolean"},"trialEndsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"subscription":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"provider":{"type":"string","enum":["paddle","manual"]},"providerSubscriptionId":{"nullable":true,"type":"string"},"providerCustomerId":{"nullable":true,"type":"string"},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"interval":{"type":"string","enum":["monthly","annual"]},"status":{"type":"string","enum":["trialing","active","past_due","paused","cancelled"]},"currentPeriodStart":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"currentPeriodEnd":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"cancelAtPeriodEnd":{"type":"boolean"},"seats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","provider","providerSubscriptionId","providerCustomerId","plan","interval","status","currentPeriodStart","currentPeriodEnd","cancelAtPeriodEnd","seats","createdAt","updatedAt"],"additionalProperties":false},"addons":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["sites_10","l5_5","sms_200","white_label","sso","priority_support"]},"label":{"type":"string"},"unitPriceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stackable":{"type":"boolean"},"includedNote":{"nullable":true,"type":"string"},"available":{"type":"boolean"},"active":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["sites_10","l5_5","sms_200","white_label","sso","priority_support"]},"quantity":{"type":"integer","minimum":0,"maximum":9007199254740991},"providerItemId":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["active","pending","cancelled"]},"unitPriceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","kind","quantity","providerItemId","status","unitPriceCents","createdAt","updatedAt"],"additionalProperties":false}},"required":["kind","label","unitPriceCents","stackable","includedNote","available","active"],"additionalProperties":false}},"usage":{"type":"object","properties":{"period":{"type":"string"},"sites":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"monitors":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"seats":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"l5":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"sms":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"apiRequests":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"meter":{"type":"string","enum":["sites","monitors","seats","l5","sms","apiRequests"]},"threshold":{"anyOf":[{"type":"number","enum":[80]},{"type":"number","enum":[100]}]},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"},"message":{"type":"string"}},"required":["meter","threshold","used","limit","pct","over","message"],"additionalProperties":false}},"overLimit":{"type":"boolean"},"grace":{"type":"object","properties":{"status":{"type":"string","enum":["ok","grace","expired"]},"graceStartedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"day":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["status","graceStartedAt","endsAt","daysLeft","day"],"additionalProperties":false},"pausedSiteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}}},"required":["period","sites","monitors","seats","l5","sms","apiRequests","warnings","overLimit","grace","pausedSiteIds"],"additionalProperties":false},"nextInvoice":{"nullable":true,"type":"object","properties":{"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"date":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lines":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quantity":{"default":1,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["label","amountCents","quantity"],"additionalProperties":false}}},"required":["amountCents","currency","date","lines"],"additionalProperties":false},"paymentMethod":{"nullable":true,"type":"object","properties":{"type":{"type":"string","enum":["card","paypal","apple_pay","google_pay","wire","other"]},"brand":{"nullable":true,"type":"string"},"last4":{"nullable":true,"type":"string"},"expMonth":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expYear":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","brand","last4","expMonth","expYear"],"additionalProperties":false},"paddle":{"nullable":true,"type":"object","properties":{"clientToken":{"type":"string"},"environment":{"type":"string","enum":["sandbox","production"]}},"required":["clientToken","environment"],"additionalProperties":false}},"required":["orgPlan","plan","planSource","interval","wchBundled","trialEndsAt","subscription","addons","usage","nextInvoice","paymentMethod","paddle"],"additionalProperties":false}}}}}}},"/v1/billing/subscription":{"get":{"tags":["billing"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orgPlan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"planSource":{"type":"string","enum":["org","trial","subscription","override","wch"]},"interval":{"nullable":true,"type":"string","enum":["monthly","annual"]},"wchBundled":{"type":"boolean"},"trialEndsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"subscription":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"provider":{"type":"string","enum":["paddle","manual"]},"providerSubscriptionId":{"nullable":true,"type":"string"},"providerCustomerId":{"nullable":true,"type":"string"},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"interval":{"type":"string","enum":["monthly","annual"]},"status":{"type":"string","enum":["trialing","active","past_due","paused","cancelled"]},"currentPeriodStart":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"currentPeriodEnd":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"cancelAtPeriodEnd":{"type":"boolean"},"seats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","provider","providerSubscriptionId","providerCustomerId","plan","interval","status","currentPeriodStart","currentPeriodEnd","cancelAtPeriodEnd","seats","createdAt","updatedAt"],"additionalProperties":false},"addons":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["sites_10","l5_5","sms_200","white_label","sso","priority_support"]},"label":{"type":"string"},"unitPriceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stackable":{"type":"boolean"},"includedNote":{"nullable":true,"type":"string"},"available":{"type":"boolean"},"active":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["sites_10","l5_5","sms_200","white_label","sso","priority_support"]},"quantity":{"type":"integer","minimum":0,"maximum":9007199254740991},"providerItemId":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["active","pending","cancelled"]},"unitPriceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","kind","quantity","providerItemId","status","unitPriceCents","createdAt","updatedAt"],"additionalProperties":false}},"required":["kind","label","unitPriceCents","stackable","includedNote","available","active"],"additionalProperties":false}},"usage":{"type":"object","properties":{"period":{"type":"string"},"sites":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"monitors":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"seats":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"l5":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"sms":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"apiRequests":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"meter":{"type":"string","enum":["sites","monitors","seats","l5","sms","apiRequests"]},"threshold":{"anyOf":[{"type":"number","enum":[80]},{"type":"number","enum":[100]}]},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"},"message":{"type":"string"}},"required":["meter","threshold","used","limit","pct","over","message"],"additionalProperties":false}},"overLimit":{"type":"boolean"},"grace":{"type":"object","properties":{"status":{"type":"string","enum":["ok","grace","expired"]},"graceStartedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"day":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["status","graceStartedAt","endsAt","daysLeft","day"],"additionalProperties":false},"pausedSiteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}}},"required":["period","sites","monitors","seats","l5","sms","apiRequests","warnings","overLimit","grace","pausedSiteIds"],"additionalProperties":false},"nextInvoice":{"nullable":true,"type":"object","properties":{"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"date":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lines":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quantity":{"default":1,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["label","amountCents","quantity"],"additionalProperties":false}}},"required":["amountCents","currency","date","lines"],"additionalProperties":false},"paymentMethod":{"nullable":true,"type":"object","properties":{"type":{"type":"string","enum":["card","paypal","apple_pay","google_pay","wire","other"]},"brand":{"nullable":true,"type":"string"},"last4":{"nullable":true,"type":"string"},"expMonth":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expYear":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","brand","last4","expMonth","expYear"],"additionalProperties":false},"paddle":{"nullable":true,"type":"object","properties":{"clientToken":{"type":"string"},"environment":{"type":"string","enum":["sandbox","production"]}},"required":["clientToken","environment"],"additionalProperties":false}},"required":["orgPlan","plan","planSource","interval","wchBundled","trialEndsAt","subscription","addons","usage","nextInvoice","paymentMethod","paddle"],"additionalProperties":false}}}}}}},"/v1/billing/usage":{"get":{"tags":["billing"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"period":{"type":"string"},"sites":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"monitors":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"seats":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"l5":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"sms":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"apiRequests":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"meter":{"type":"string","enum":["sites","monitors","seats","l5","sms","apiRequests"]},"threshold":{"anyOf":[{"type":"number","enum":[80]},{"type":"number","enum":[100]}]},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"},"message":{"type":"string"}},"required":["meter","threshold","used","limit","pct","over","message"],"additionalProperties":false}},"overLimit":{"type":"boolean"},"grace":{"type":"object","properties":{"status":{"type":"string","enum":["ok","grace","expired"]},"graceStartedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"day":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["status","graceStartedAt","endsAt","daysLeft","day"],"additionalProperties":false},"pausedSiteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}}},"required":["period","sites","monitors","seats","l5","sms","apiRequests","warnings","overLimit","grace","pausedSiteIds"],"additionalProperties":false}}}}}}},"/v1/billing/checkout":{"post":{"tags":["billing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"string","enum":["starter","agency","agency_pro"]},"interval":{"type":"string","enum":["monthly","annual"]},"addons":{"default":[],"maxItems":6,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["sites_10","l5_5","sms_200","white_label","sso","priority_support"]},"quantity":{"default":1,"type":"integer","minimum":1,"maximum":50}},"required":["kind"]}}},"required":["plan","interval"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"transactionId":{"type":"string"},"clientToken":{"type":"string"},"environment":{"type":"string","enum":["sandbox","production"]},"customerEmail":{"nullable":true,"type":"string"},"priceIds":{"type":"array","items":{"type":"string"}},"successUrl":{"type":"string","maxLength":2048,"format":"uri"},"totalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["transactionId","clientToken","environment","customerEmail","priceIds","successUrl","totalCents"],"additionalProperties":false}}}}}}},"/v1/billing/plan":{"post":{"tags":["billing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"string","enum":["starter","agency","agency_pro"]},"interval":{"type":"string","enum":["monthly","annual"]}},"required":["plan","interval"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"subscription":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"provider":{"type":"string","enum":["paddle","manual"]},"providerSubscriptionId":{"nullable":true,"type":"string"},"providerCustomerId":{"nullable":true,"type":"string"},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"interval":{"type":"string","enum":["monthly","annual"]},"status":{"type":"string","enum":["trialing","active","past_due","paused","cancelled"]},"currentPeriodStart":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"currentPeriodEnd":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"cancelAtPeriodEnd":{"type":"boolean"},"seats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","provider","providerSubscriptionId","providerCustomerId","plan","interval","status","currentPeriodStart","currentPeriodEnd","cancelAtPeriodEnd","seats","createdAt","updatedAt"],"additionalProperties":false},"effectiveAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"direction":{"type":"string","enum":["upgrade","downgrade","same","interval_change"]},"checkout":{"nullable":true,"type":"object","properties":{"transactionId":{"type":"string"},"clientToken":{"type":"string"},"environment":{"type":"string","enum":["sandbox","production"]},"customerEmail":{"nullable":true,"type":"string"},"priceIds":{"type":"array","items":{"type":"string"}},"successUrl":{"type":"string","maxLength":2048,"format":"uri"},"totalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["transactionId","clientToken","environment","customerEmail","priceIds","successUrl","totalCents"],"additionalProperties":false}},"required":["subscription","effectiveAt","direction","checkout"],"additionalProperties":false}}}}}}},"/v1/billing/change-plan":{"post":{"tags":["billing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"string","enum":["starter","agency","agency_pro"]},"interval":{"type":"string","enum":["monthly","annual"]}},"required":["plan","interval"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"subscription":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"provider":{"type":"string","enum":["paddle","manual"]},"providerSubscriptionId":{"nullable":true,"type":"string"},"providerCustomerId":{"nullable":true,"type":"string"},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"interval":{"type":"string","enum":["monthly","annual"]},"status":{"type":"string","enum":["trialing","active","past_due","paused","cancelled"]},"currentPeriodStart":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"currentPeriodEnd":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"cancelAtPeriodEnd":{"type":"boolean"},"seats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","provider","providerSubscriptionId","providerCustomerId","plan","interval","status","currentPeriodStart","currentPeriodEnd","cancelAtPeriodEnd","seats","createdAt","updatedAt"],"additionalProperties":false},"effectiveAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"direction":{"type":"string","enum":["upgrade","downgrade","same","interval_change"]},"checkout":{"nullable":true,"type":"object","properties":{"transactionId":{"type":"string"},"clientToken":{"type":"string"},"environment":{"type":"string","enum":["sandbox","production"]},"customerEmail":{"nullable":true,"type":"string"},"priceIds":{"type":"array","items":{"type":"string"}},"successUrl":{"type":"string","maxLength":2048,"format":"uri"},"totalCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["transactionId","clientToken","environment","customerEmail","priceIds","successUrl","totalCents"],"additionalProperties":false}},"required":["subscription","effectiveAt","direction","checkout"],"additionalProperties":false}}}}}}},"/v1/billing/addons":{"post":{"tags":["billing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["sites_10","l5_5","sms_200","white_label","sso","priority_support"]},"quantity":{"default":1,"type":"integer","minimum":1,"maximum":50}},"required":["kind"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orgPlan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"planSource":{"type":"string","enum":["org","trial","subscription","override","wch"]},"interval":{"nullable":true,"type":"string","enum":["monthly","annual"]},"wchBundled":{"type":"boolean"},"trialEndsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"subscription":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"provider":{"type":"string","enum":["paddle","manual"]},"providerSubscriptionId":{"nullable":true,"type":"string"},"providerCustomerId":{"nullable":true,"type":"string"},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"interval":{"type":"string","enum":["monthly","annual"]},"status":{"type":"string","enum":["trialing","active","past_due","paused","cancelled"]},"currentPeriodStart":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"currentPeriodEnd":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"cancelAtPeriodEnd":{"type":"boolean"},"seats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","provider","providerSubscriptionId","providerCustomerId","plan","interval","status","currentPeriodStart","currentPeriodEnd","cancelAtPeriodEnd","seats","createdAt","updatedAt"],"additionalProperties":false},"addons":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["sites_10","l5_5","sms_200","white_label","sso","priority_support"]},"label":{"type":"string"},"unitPriceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stackable":{"type":"boolean"},"includedNote":{"nullable":true,"type":"string"},"available":{"type":"boolean"},"active":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["sites_10","l5_5","sms_200","white_label","sso","priority_support"]},"quantity":{"type":"integer","minimum":0,"maximum":9007199254740991},"providerItemId":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["active","pending","cancelled"]},"unitPriceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","kind","quantity","providerItemId","status","unitPriceCents","createdAt","updatedAt"],"additionalProperties":false}},"required":["kind","label","unitPriceCents","stackable","includedNote","available","active"],"additionalProperties":false}},"usage":{"type":"object","properties":{"period":{"type":"string"},"sites":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"monitors":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"seats":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"l5":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"sms":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"apiRequests":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"meter":{"type":"string","enum":["sites","monitors","seats","l5","sms","apiRequests"]},"threshold":{"anyOf":[{"type":"number","enum":[80]},{"type":"number","enum":[100]}]},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"},"message":{"type":"string"}},"required":["meter","threshold","used","limit","pct","over","message"],"additionalProperties":false}},"overLimit":{"type":"boolean"},"grace":{"type":"object","properties":{"status":{"type":"string","enum":["ok","grace","expired"]},"graceStartedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"day":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["status","graceStartedAt","endsAt","daysLeft","day"],"additionalProperties":false},"pausedSiteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}}},"required":["period","sites","monitors","seats","l5","sms","apiRequests","warnings","overLimit","grace","pausedSiteIds"],"additionalProperties":false},"nextInvoice":{"nullable":true,"type":"object","properties":{"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"date":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lines":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quantity":{"default":1,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["label","amountCents","quantity"],"additionalProperties":false}}},"required":["amountCents","currency","date","lines"],"additionalProperties":false},"paymentMethod":{"nullable":true,"type":"object","properties":{"type":{"type":"string","enum":["card","paypal","apple_pay","google_pay","wire","other"]},"brand":{"nullable":true,"type":"string"},"last4":{"nullable":true,"type":"string"},"expMonth":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expYear":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","brand","last4","expMonth","expYear"],"additionalProperties":false},"paddle":{"nullable":true,"type":"object","properties":{"clientToken":{"type":"string"},"environment":{"type":"string","enum":["sandbox","production"]}},"required":["clientToken","environment"],"additionalProperties":false}},"required":["orgPlan","plan","planSource","interval","wchBundled","trialEndsAt","subscription","addons","usage","nextInvoice","paymentMethod","paddle"],"additionalProperties":false}}}}}}},"/v1/billing/addons/{kind}":{"delete":{"tags":["billing"],"parameters":[{"schema":{"type":"string","enum":["sites_10","l5_5","sms_200","white_label","sso","priority_support"]},"in":"path","name":"kind","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orgPlan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"planSource":{"type":"string","enum":["org","trial","subscription","override","wch"]},"interval":{"nullable":true,"type":"string","enum":["monthly","annual"]},"wchBundled":{"type":"boolean"},"trialEndsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"subscription":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"provider":{"type":"string","enum":["paddle","manual"]},"providerSubscriptionId":{"nullable":true,"type":"string"},"providerCustomerId":{"nullable":true,"type":"string"},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"interval":{"type":"string","enum":["monthly","annual"]},"status":{"type":"string","enum":["trialing","active","past_due","paused","cancelled"]},"currentPeriodStart":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"currentPeriodEnd":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"cancelAtPeriodEnd":{"type":"boolean"},"seats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","provider","providerSubscriptionId","providerCustomerId","plan","interval","status","currentPeriodStart","currentPeriodEnd","cancelAtPeriodEnd","seats","createdAt","updatedAt"],"additionalProperties":false},"addons":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["sites_10","l5_5","sms_200","white_label","sso","priority_support"]},"label":{"type":"string"},"unitPriceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stackable":{"type":"boolean"},"includedNote":{"nullable":true,"type":"string"},"available":{"type":"boolean"},"active":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["sites_10","l5_5","sms_200","white_label","sso","priority_support"]},"quantity":{"type":"integer","minimum":0,"maximum":9007199254740991},"providerItemId":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["active","pending","cancelled"]},"unitPriceCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","kind","quantity","providerItemId","status","unitPriceCents","createdAt","updatedAt"],"additionalProperties":false}},"required":["kind","label","unitPriceCents","stackable","includedNote","available","active"],"additionalProperties":false}},"usage":{"type":"object","properties":{"period":{"type":"string"},"sites":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"monitors":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"seats":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"l5":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"sms":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"apiRequests":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"meter":{"type":"string","enum":["sites","monitors","seats","l5","sms","apiRequests"]},"threshold":{"anyOf":[{"type":"number","enum":[80]},{"type":"number","enum":[100]}]},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"},"message":{"type":"string"}},"required":["meter","threshold","used","limit","pct","over","message"],"additionalProperties":false}},"overLimit":{"type":"boolean"},"grace":{"type":"object","properties":{"status":{"type":"string","enum":["ok","grace","expired"]},"graceStartedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"day":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["status","graceStartedAt","endsAt","daysLeft","day"],"additionalProperties":false},"pausedSiteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}}},"required":["period","sites","monitors","seats","l5","sms","apiRequests","warnings","overLimit","grace","pausedSiteIds"],"additionalProperties":false},"nextInvoice":{"nullable":true,"type":"object","properties":{"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"date":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lines":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quantity":{"default":1,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["label","amountCents","quantity"],"additionalProperties":false}}},"required":["amountCents","currency","date","lines"],"additionalProperties":false},"paymentMethod":{"nullable":true,"type":"object","properties":{"type":{"type":"string","enum":["card","paypal","apple_pay","google_pay","wire","other"]},"brand":{"nullable":true,"type":"string"},"last4":{"nullable":true,"type":"string"},"expMonth":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expYear":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","brand","last4","expMonth","expYear"],"additionalProperties":false},"paddle":{"nullable":true,"type":"object","properties":{"clientToken":{"type":"string"},"environment":{"type":"string","enum":["sandbox","production"]}},"required":["clientToken","environment"],"additionalProperties":false}},"required":["orgPlan","plan","planSource","interval","wchBundled","trialEndsAt","subscription","addons","usage","nextInvoice","paymentMethod","paddle"],"additionalProperties":false}}}}}}},"/v1/billing/invoices":{"get":{"tags":["billing"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"query","name":"cursor","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"providerInvoiceId":{"nullable":true,"type":"string"},"number":{"nullable":true,"type":"string"},"amountCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3},"status":{"type":"string","enum":["draft","open","paid","past_due","void","refunded"]},"issuedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"pdfUrl":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","providerInvoiceId","number","amountCents","currency","status","issuedAt","pdfUrl","description","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["items","nextCursor"],"additionalProperties":false}}}}}}},"/v1/billing/cancel":{"post":{"tags":["billing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"nullable":true,"type":"object","properties":{"reason":{"type":"string","maxLength":1000},"feedback":{"type":"string","enum":["too_expensive","missing_features","switched","not_needed","other"]}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"provider":{"type":"string","enum":["paddle","manual"]},"providerSubscriptionId":{"nullable":true,"type":"string"},"providerCustomerId":{"nullable":true,"type":"string"},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"interval":{"type":"string","enum":["monthly","annual"]},"status":{"type":"string","enum":["trialing","active","past_due","paused","cancelled"]},"currentPeriodStart":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"currentPeriodEnd":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"cancelAtPeriodEnd":{"type":"boolean"},"seats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","provider","providerSubscriptionId","providerCustomerId","plan","interval","status","currentPeriodStart","currentPeriodEnd","cancelAtPeriodEnd","seats","createdAt","updatedAt"],"additionalProperties":false}}}}}}},"/v1/billing/resume":{"post":{"tags":["billing"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"provider":{"type":"string","enum":["paddle","manual"]},"providerSubscriptionId":{"nullable":true,"type":"string"},"providerCustomerId":{"nullable":true,"type":"string"},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"interval":{"type":"string","enum":["monthly","annual"]},"status":{"type":"string","enum":["trialing","active","past_due","paused","cancelled"]},"currentPeriodStart":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"currentPeriodEnd":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"cancelAtPeriodEnd":{"type":"boolean"},"seats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","provider","providerSubscriptionId","providerCustomerId","plan","interval","status","currentPeriodStart","currentPeriodEnd","cancelAtPeriodEnd","seats","createdAt","updatedAt"],"additionalProperties":false}}}}}}},"/v1/billing/payment-method-url":{"get":{"tags":["billing"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["url"],"additionalProperties":false}}}}}}},"/v1/billing/webhooks/paddle":{"post":{"tags":["billing"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"status":{"type":"string","enum":["processed","duplicate","ignored"]}},"required":["ok","status"],"additionalProperties":false}}}}}}},"/v1/webhooks/paddle":{"post":{"tags":["billing"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"status":{"type":"string","enum":["processed","duplicate","ignored"]}},"required":["ok","status"],"additionalProperties":false}}}}}}},"/v1/integrations/wch":{"post":{"tags":["integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"apiKey":{"type":"string","minLength":16,"maxLength":256}},"required":["apiKey"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["pending","linked","error","unlinked"]},"wchOrgId":{"nullable":true,"type":"string"},"wchOrgName":{"nullable":true,"type":"string"},"wchPlan":{"nullable":true,"type":"string","enum":["free","starter","agency","pro"]},"bundled":{"type":"boolean"},"matchedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unmatchedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastSyncedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"},"apiKeyHint":{"nullable":true,"type":"string"}},"required":["status","wchOrgId","wchOrgName","wchPlan","bundled","matchedCount","unmatchedCount","lastSyncedAt","lastError","apiKeyHint"],"additionalProperties":false}}}}}},"get":{"tags":["integrations"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["pending","linked","error","unlinked"]},"wchOrgId":{"nullable":true,"type":"string"},"wchOrgName":{"nullable":true,"type":"string"},"wchPlan":{"nullable":true,"type":"string","enum":["free","starter","agency","pro"]},"bundled":{"type":"boolean"},"matchedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unmatchedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastSyncedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"},"apiKeyHint":{"nullable":true,"type":"string"}},"required":["status","wchOrgId","wchOrgName","wchPlan","bundled","matchedCount","unmatchedCount","lastSyncedAt","lastError","apiKeyHint"],"additionalProperties":false}}}}}},"delete":{"tags":["integrations"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/integrations/wch/match":{"post":{"tags":["integrations"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"matched":{"type":"array","items":{"type":"object","properties":{"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"wchSiteId":{"type":"string"},"host":{"type":"string"},"source":{"default":"auto","type":"string","enum":["auto","manual"]},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"wchDomain":{"type":"string"}},"required":["siteId","wchSiteId","host","source","site","wchDomain"],"additionalProperties":false}},"unmatchedLocal":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false}},"unmatchedRemote":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":"string"},"name":{"type":"string"}},"required":["id","domain"],"additionalProperties":false}}},"required":["matched","unmatchedLocal","unmatchedRemote"],"additionalProperties":false}}}}}}},"/v1/integrations/wch/match-sites":{"post":{"tags":["integrations"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"matched":{"type":"array","items":{"type":"object","properties":{"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"wchSiteId":{"type":"string"},"host":{"type":"string"},"source":{"default":"auto","type":"string","enum":["auto","manual"]},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"wchDomain":{"type":"string"}},"required":["siteId","wchSiteId","host","source","site","wchDomain"],"additionalProperties":false}},"unmatchedLocal":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false}},"unmatchedRemote":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":"string"},"name":{"type":"string"}},"required":["id","domain"],"additionalProperties":false}}},"required":["matched","unmatchedLocal","unmatchedRemote"],"additionalProperties":false}}}}}}},"/v1/integrations/wch/matches":{"put":{"tags":["integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pairs":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"wchSiteId":{"nullable":true,"type":"string"}},"required":["siteId","wchSiteId"]}}},"required":["pairs"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"matched":{"type":"array","items":{"type":"object","properties":{"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"wchSiteId":{"type":"string"},"host":{"type":"string"},"source":{"default":"auto","type":"string","enum":["auto","manual"]},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"wchDomain":{"type":"string"}},"required":["siteId","wchSiteId","host","source","site","wchDomain"],"additionalProperties":false}},"unmatchedLocal":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false}},"unmatchedRemote":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":"string"},"name":{"type":"string"}},"required":["id","domain"],"additionalProperties":false}}},"required":["matched","unmatchedLocal","unmatchedRemote"],"additionalProperties":false}}}}}}},"/v1/integrations/wch/sync":{"post":{"tags":["integrations"],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"enqueued":{"type":"array","items":{"type":"string"}}},"required":["ok","enqueued"],"additionalProperties":false}}}}}}},"/v1/integrations/wch/push-health":{"post":{"tags":["integrations"],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"enqueued":{"type":"array","items":{"type":"string"}}},"required":["ok","enqueued"],"additionalProperties":false}}}}}}},"/v1/integrations/wch/tickets":{"post":{"tags":["integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"incidentId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"action":{"type":"string","enum":["open","close"]}},"required":["incidentId","action"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"enqueued":{"type":"array","items":{"type":"string"}}},"required":["ok","enqueued"],"additionalProperties":false}}}}}}},"/v1/client-users":{"get":{"tags":["portal"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"query","name":"cursor","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"query","name":"siteId","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"userId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"email":{"type":"string"},"name":{"type":"string"},"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"sites":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false}},"invitedBy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"lastViewedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"status":{"type":"string","enum":["invited","active"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","userId","email","name","siteIds","sites","invitedBy","lastViewedAt","status","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["items","nextCursor"],"additionalProperties":false}}}}}},"post":{"tags":["portal"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"name":{"type":"string","maxLength":120},"siteIds":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"sendEmail":{"default":true,"type":"boolean"}},"required":["email","siteIds"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"userId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"email":{"type":"string"},"name":{"type":"string"},"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"sites":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false}},"invitedBy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"lastViewedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"status":{"type":"string","enum":["invited","active"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","userId","email","name","siteIds","sites","invitedBy","lastViewedAt","status","createdAt","updatedAt"],"additionalProperties":false}}}}}}},"/v1/client-users/sites":{"get":{"tags":["portal"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"clientUsers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"email":{"type":"string"}},"required":["id","email"],"additionalProperties":false}},"portalPath":{"nullable":true,"type":"string"},"publicStatus":{"type":"boolean"},"monthlyReport":{"type":"boolean"},"lastViewedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["site","clientUsers","portalPath","publicStatus","monthlyReport","lastViewedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}}}},"/v1/client-users/{id}":{"patch":{"tags":["portal"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"siteIds":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string"}}}}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"userId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"email":{"type":"string"},"name":{"type":"string"},"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"sites":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false}},"invitedBy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"lastViewedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"status":{"type":"string","enum":["invited","active"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","userId","email","name","siteIds","sites","invitedBy","lastViewedAt","status","createdAt","updatedAt"],"additionalProperties":false}}}}}},"delete":{"tags":["portal"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/portal/magic-link":{"post":{"tags":["portal"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"org":{"type":"string","minLength":2,"maxLength":48},"next":{"type":"string","maxLength":512}},"required":["email"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/portal/verify":{"get":{"tags":["portal"],"parameters":[{"schema":{"type":"string","minLength":16,"maxLength":256},"in":"query","name":"token","required":true},{"schema":{"type":"string","enum":["0","1"]},"in":"query","name":"redirect","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"redirect":{"type":"string"}},"required":["ok","redirect"],"additionalProperties":false}}}}}}},"/v1/portal/magic-link/verify":{"post":{"tags":["portal"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":16,"maxLength":256}},"required":["token"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"redirect":{"type":"string"}},"required":["ok","redirect"],"additionalProperties":false}}}}}}},"/v1/portal/logout":{"post":{"tags":["portal"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/portal/branding":{"get":{"tags":["portal"],"parameters":[{"schema":{"type":"string","minLength":2,"maxLength":48},"in":"query","name":"org","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"agencyName":{"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"colour":{"type":"string"},"contactLine":{"type":"string"},"whiteLabel":{"type":"boolean"},"orgSlug":{"type":"string"}},"required":["agencyName","logoUrl","colour","contactLine","whiteLabel","orgSlug"],"additionalProperties":false}}}}}}},"/v1/portal/me":{"get":{"tags":["portal"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"email":{"type":"string"},"name":{"type":"string"}},"required":["id","email","name"],"additionalProperties":false},"org":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string"}},"required":["id","name","slug","timezone"],"additionalProperties":false},"branding":{"type":"object","properties":{"agencyName":{"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"colour":{"type":"string"},"contactLine":{"type":"string"},"whiteLabel":{"type":"boolean"}},"required":["agencyName","logoUrl","colour","contactLine","whiteLabel"],"additionalProperties":false},"sites":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"},"health":{"type":"string","enum":["healthy","failing","warning","unknown","paused","testing"]}},"required":["id","name","url","health"],"additionalProperties":false}},"impersonated":{"default":false,"type":"boolean"}},"required":["user","org","branding","sites","impersonated"],"additionalProperties":false}}}}}}},"/v1/portal/sites":{"get":{"tags":["portal"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"},"health":{"type":"string","enum":["healthy","failing","warning","unknown","paused","testing"]}},"required":["id","name","url","health"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}}}},"/v1/portal/sites/{id}":{"get":{"tags":["portal"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"},"health":{"type":"string","enum":["healthy","failing","warning","unknown","paused","testing"]},"headline":{"type":"string"},"forms":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"title":{"type":"string"},"location":{"type":"string"},"health":{"type":"string","enum":["healthy","failing","warning","unknown","paused","testing"]},"level":{"anyOf":[{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]},{"type":"number","enum":[5]}]},"levelPlain":{"type":"string"},"lastTestedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"result":{"type":"string","enum":["pass","fail","inconclusive","none"]}},"required":["date","result"],"additionalProperties":false}},"uptimePct":{"nullable":true,"type":"number"}},"required":["id","title","location","health","level","levelPlain","lastTestedAt","days","uptimePct"],"additionalProperties":false}},"uptimePct90d":{"nullable":true,"type":"number"},"openIncidents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"publicStatusUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"}},"required":["id","name","url","health","headline","forms","uptimePct90d","openIncidents","publicStatusUrl"],"additionalProperties":false}}}}}}},"/v1/portal/incidents":{"get":{"tags":["portal"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"query","name":"cursor","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"query","name":"siteId","required":false},{"schema":{"default":"all","type":"string","enum":["open","resolved","all"]},"in":"query","name":"status","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"formTitle":{"type":"string"},"severity":{"type":"string","enum":["critical","warning","unknown"]},"status":{"type":"string","enum":["open","acknowledged","snoozed","resolved"]},"openedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"resolvedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"durationMs":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"plainCause":{"type":"string"},"plainSummary":{"type":"string"},"updates":{"default":[],"type":"array","items":{"type":"object","properties":{"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"text":{"type":"string"}},"required":["at","text"],"additionalProperties":false}}},"required":["id","number","site","formTitle","severity","status","openedAt","resolvedAt","durationMs","plainCause","plainSummary","updates"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["items","nextCursor"],"additionalProperties":false}}}}}}},"/v1/portal/incidents/{id}":{"get":{"tags":["portal"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"site":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false},"formTitle":{"type":"string"},"severity":{"type":"string","enum":["critical","warning","unknown"]},"status":{"type":"string","enum":["open","acknowledged","snoozed","resolved"]},"openedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"resolvedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"durationMs":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"plainCause":{"type":"string"},"plainSummary":{"type":"string"},"updates":{"default":[],"type":"array","items":{"type":"object","properties":{"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"text":{"type":"string"}},"required":["at","text"],"additionalProperties":false}}},"required":["id","number","site","formTitle","severity","status","openedAt","resolvedAt","durationMs","plainCause","plainSummary","updates"],"additionalProperties":false}}}}}}},"/v1/portal/reports":{"get":{"tags":["portal"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"query","name":"cursor","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["client_monthly","incident","agency_summary","agency_monthly","site_audit"]},"title":{"type":"string"},"siteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"periodStart":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"periodEnd":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"pages":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sizeBytes":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kind","title","siteIds","periodStart","periodEnd","pages","sizeBytes","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["items","nextCursor"],"additionalProperties":false}}}}}}},"/v1/portal/reports/{id}/download":{"get":{"tags":["portal"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["url","expiresAt"],"additionalProperties":false}}}}}}},"/v1/portal/subscribe":{"post":{"tags":["portal"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"siteId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"email":{"type":"string"}},"required":["siteId","email"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/branding":{"get":{"tags":["branding"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"agencyName":{"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"logoBlobKey":{"nullable":true,"type":"string"},"colour":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"contactLine":{"type":"string"},"reportSenderEmail":{"nullable":true,"type":"string"},"reportSenderVerified":{"type":"boolean"},"whiteLabel":{"type":"boolean"},"whiteLabelAllowed":{"type":"boolean"},"customDomainAllowed":{"type":"boolean"},"portalDomain":{"nullable":true,"type":"string"},"portalDomainStatus":{"type":"string","enum":["unverified","pending","verified","failed"]},"portalDns":{"nullable":true,"type":"object","properties":{"cname":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"],"additionalProperties":false},"txt":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"],"additionalProperties":false}},"required":["cname","txt"],"additionalProperties":false},"portalUrl":{"type":"string"},"updatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["orgId","agencyName","logoUrl","logoBlobKey","colour","contactLine","reportSenderEmail","reportSenderVerified","whiteLabel","whiteLabelAllowed","customDomainAllowed","portalDomain","portalDomainStatus","portalDns","portalUrl","updatedAt"],"additionalProperties":false}}}}}},"put":{"tags":["branding"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"agencyName":{"type":"string","minLength":1,"maxLength":120},"colour":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"contactLine":{"type":"string","maxLength":240},"reportSenderEmail":{"nullable":true,"type":"string"},"whiteLabel":{"type":"boolean"},"logoBlobKey":{"nullable":true,"type":"string","maxLength":512}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"agencyName":{"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"logoBlobKey":{"nullable":true,"type":"string"},"colour":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"contactLine":{"type":"string"},"reportSenderEmail":{"nullable":true,"type":"string"},"reportSenderVerified":{"type":"boolean"},"whiteLabel":{"type":"boolean"},"whiteLabelAllowed":{"type":"boolean"},"customDomainAllowed":{"type":"boolean"},"portalDomain":{"nullable":true,"type":"string"},"portalDomainStatus":{"type":"string","enum":["unverified","pending","verified","failed"]},"portalDns":{"nullable":true,"type":"object","properties":{"cname":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"],"additionalProperties":false},"txt":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"],"additionalProperties":false}},"required":["cname","txt"],"additionalProperties":false},"portalUrl":{"type":"string"},"updatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["orgId","agencyName","logoUrl","logoBlobKey","colour","contactLine","reportSenderEmail","reportSenderVerified","whiteLabel","whiteLabelAllowed","customDomainAllowed","portalDomain","portalDomainStatus","portalDns","portalUrl","updatedAt"],"additionalProperties":false}}}}}}},"/v1/branding/logo":{"post":{"tags":["branding"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contentType":{"type":"string","enum":["image/png","image/svg+xml","image/jpeg","image/webp"]},"sizeBytes":{"type":"integer","minimum":1,"maximum":2097152}},"required":["contentType","sizeBytes"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"uploadUrl":{"type":"string"},"method":{"type":"string","enum":["PUT"]},"headers":{"type":"object","additionalProperties":{"type":"string"}},"blobKey":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["uploadUrl","method","headers","blobKey","expiresAt"],"additionalProperties":false}}}}}}},"/v1/branding/portal-domain":{"put":{"tags":["branding"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"nullable":true,"type":"string","pattern":"^(?=.{4,253}$)([a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}},"required":["domain"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"agencyName":{"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"logoBlobKey":{"nullable":true,"type":"string"},"colour":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"contactLine":{"type":"string"},"reportSenderEmail":{"nullable":true,"type":"string"},"reportSenderVerified":{"type":"boolean"},"whiteLabel":{"type":"boolean"},"whiteLabelAllowed":{"type":"boolean"},"customDomainAllowed":{"type":"boolean"},"portalDomain":{"nullable":true,"type":"string"},"portalDomainStatus":{"type":"string","enum":["unverified","pending","verified","failed"]},"portalDns":{"nullable":true,"type":"object","properties":{"cname":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"],"additionalProperties":false},"txt":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"],"additionalProperties":false}},"required":["cname","txt"],"additionalProperties":false},"portalUrl":{"type":"string"},"updatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["orgId","agencyName","logoUrl","logoBlobKey","colour","contactLine","reportSenderEmail","reportSenderVerified","whiteLabel","whiteLabelAllowed","customDomainAllowed","portalDomain","portalDomainStatus","portalDns","portalUrl","updatedAt"],"additionalProperties":false}}}}}},"post":{"tags":["branding"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"nullable":true,"type":"string","pattern":"^(?=.{4,253}$)([a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"}},"required":["domain"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"agencyName":{"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"logoBlobKey":{"nullable":true,"type":"string"},"colour":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"contactLine":{"type":"string"},"reportSenderEmail":{"nullable":true,"type":"string"},"reportSenderVerified":{"type":"boolean"},"whiteLabel":{"type":"boolean"},"whiteLabelAllowed":{"type":"boolean"},"customDomainAllowed":{"type":"boolean"},"portalDomain":{"nullable":true,"type":"string"},"portalDomainStatus":{"type":"string","enum":["unverified","pending","verified","failed"]},"portalDns":{"nullable":true,"type":"object","properties":{"cname":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"],"additionalProperties":false},"txt":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name","value"],"additionalProperties":false}},"required":["cname","txt"],"additionalProperties":false},"portalUrl":{"type":"string"},"updatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["orgId","agencyName","logoUrl","logoBlobKey","colour","contactLine","reportSenderEmail","reportSenderVerified","whiteLabel","whiteLabelAllowed","customDomainAllowed","portalDomain","portalDomainStatus","portalDns","portalUrl","updatedAt"],"additionalProperties":false}}}}}}},"/v1/branding/portal-domain/verify":{"post":{"tags":["branding"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string"},"status":{"type":"string","enum":["unverified","pending","verified","failed"]},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"cname":{"type":"object","properties":{"expected":{"type":"string"},"found":{"type":"array","items":{"type":"string"}},"ok":{"type":"boolean"}},"required":["expected","found","ok"],"additionalProperties":false},"txt":{"type":"object","properties":{"name":{"type":"string"},"expected":{"type":"string"},"found":{"type":"array","items":{"type":"string"}},"ok":{"type":"boolean"}},"required":["name","expected","found","ok"],"additionalProperties":false},"error":{"nullable":true,"type":"string"}},"required":["domain","status","checkedAt","cname","txt","error"],"additionalProperties":false}}}}}}},"/v1/auth/totp":{"get":{"tags":["security"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"enabledAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"recoveryCodesRemaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requiredByOrg":{"type":"boolean"}},"required":["enabled","enabledAt","recoveryCodesRemaining","requiredByOrg"],"additionalProperties":false}}}}}}},"/v1/auth/totp/enrol":{"post":{"tags":["security"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"otpauthUrl":{"type":"string","format":"starts_with","pattern":"^otpauth:\\/\\/.*"},"secret":{"type":"string","minLength":16},"qrSvg":{"type":"string","format":"starts_with","pattern":"^<svg.*"}},"required":["otpauthUrl","secret","qrSvg"],"additionalProperties":false}}}}}}},"/v1/auth/totp/verify":{"post":{"tags":["security"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["code"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean","enum":[true]},"recoveryCodes":{"minItems":10,"maxItems":10,"type":"array","items":{"type":"string"}}},"required":["enabled","recoveryCodes"],"additionalProperties":false}}}}}}},"/v1/auth/totp/disable":{"post":{"tags":["security"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string","minLength":1,"maxLength":200},"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["password"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/auth/totp/recovery-codes":{"post":{"tags":["security"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string","minLength":1,"maxLength":200}},"required":["password"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"codes":{"minItems":10,"maxItems":10,"type":"array","items":{"type":"string"}},"generatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["codes","generatedAt"],"additionalProperties":false}}}}}}},"/v1/auth/google/start":{"get":{"tags":["auth"],"parameters":[{"schema":{"default":"login","type":"string","enum":["login","signup","link"]},"in":"query","name":"mode","required":false},{"schema":{"type":"string","maxLength":512},"in":"query","name":"next","required":false},{"schema":{"type":"string","maxLength":120},"in":"query","name":"orgName","required":false},{"schema":{"type":"string","maxLength":256},"in":"query","name":"inviteToken","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["url"],"additionalProperties":false}}}}}}},"/v1/auth/google/callback":{"get":{"tags":["auth"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"code","required":false},{"schema":{"type":"string","minLength":1},"in":"query","name":"state","required":true},{"schema":{"type":"string"},"in":"query","name":"error","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/org/sso":{"get":{"tags":["security"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"configured":{"type":"boolean"},"entityId":{"nullable":true,"type":"string"},"ssoUrl":{"nullable":true,"type":"string"},"certificateFingerprint":{"nullable":true,"type":"string"},"hasMetadataXml":{"type":"boolean"},"enforce":{"type":"boolean"},"sp":{"type":"object","properties":{"entityId":{"type":"string"},"acsUrl":{"type":"string"},"metadataUrl":{"type":"string"},"nameIdFormat":{"default":"urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress","type":"string"}},"required":["entityId","acsUrl","metadataUrl","nameIdFormat"],"additionalProperties":false},"updatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"defaultRole":{"type":"string","enum":["admin","technician","viewer"]}},"required":["configured","entityId","ssoUrl","certificateFingerprint","hasMetadataXml","enforce","sp","updatedAt","defaultRole"],"additionalProperties":false}}}}}},"put":{"tags":["security"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"idpMetadataXml":{"nullable":true,"type":"string","maxLength":200000},"entityId":{"nullable":true,"type":"string","maxLength":512},"ssoUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"certificate":{"nullable":true,"type":"string","maxLength":20000},"enforce":{"default":false,"type":"boolean"},"defaultRole":{"default":"viewer","type":"string","enum":["admin","technician","viewer"]}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"configured":{"type":"boolean"},"entityId":{"nullable":true,"type":"string"},"ssoUrl":{"nullable":true,"type":"string"},"certificateFingerprint":{"nullable":true,"type":"string"},"hasMetadataXml":{"type":"boolean"},"enforce":{"type":"boolean"},"sp":{"type":"object","properties":{"entityId":{"type":"string"},"acsUrl":{"type":"string"},"metadataUrl":{"type":"string"},"nameIdFormat":{"default":"urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress","type":"string"}},"required":["entityId","acsUrl","metadataUrl","nameIdFormat"],"additionalProperties":false},"updatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"defaultRole":{"type":"string","enum":["admin","technician","viewer"]}},"required":["configured","entityId","ssoUrl","certificateFingerprint","hasMetadataXml","enforce","sp","updatedAt","defaultRole"],"additionalProperties":false}}}}}}},"/v1/sso/config":{"put":{"tags":["security"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"idpMetadataXml":{"nullable":true,"type":"string","maxLength":200000},"entityId":{"nullable":true,"type":"string","maxLength":512},"ssoUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"certificate":{"nullable":true,"type":"string","maxLength":20000},"enforce":{"default":false,"type":"boolean"},"defaultRole":{"default":"viewer","type":"string","enum":["admin","technician","viewer"]}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"configured":{"type":"boolean"},"entityId":{"nullable":true,"type":"string"},"ssoUrl":{"nullable":true,"type":"string"},"certificateFingerprint":{"nullable":true,"type":"string"},"hasMetadataXml":{"type":"boolean"},"enforce":{"type":"boolean"},"sp":{"type":"object","properties":{"entityId":{"type":"string"},"acsUrl":{"type":"string"},"metadataUrl":{"type":"string"},"nameIdFormat":{"default":"urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress","type":"string"}},"required":["entityId","acsUrl","metadataUrl","nameIdFormat"],"additionalProperties":false},"updatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"defaultRole":{"type":"string","enum":["admin","technician","viewer"]}},"required":["configured","entityId","ssoUrl","certificateFingerprint","hasMetadataXml","enforce","sp","updatedAt","defaultRole"],"additionalProperties":false}}}}}}},"/v1/sso/{orgSlug}/metadata":{"get":{"tags":["security"],"parameters":[{"schema":{"type":"string","minLength":2,"maxLength":48},"in":"path","name":"orgSlug","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/sso/metadata":{"get":{"tags":["security"],"responses":{"200":{"description":"Default Response"}}}},"/v1/auth/sso/start":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"orgSlug":{"type":"string","minLength":2,"maxLength":48},"next":{"type":"string","maxLength":512}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["url"],"additionalProperties":false}}}}}}},"/v1/sso/{orgSlug}/acs":{"post":{"tags":["security"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"SAMLResponse":{"type":"string","minLength":1},"RelayState":{"type":"string"}},"required":["SAMLResponse"]}}}},"parameters":[{"schema":{"type":"string","minLength":2,"maxLength":48},"in":"path","name":"orgSlug","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/admin/tenants":{"get":{"tags":["admin"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"query","name":"cursor","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"in":"query","name":"plan","required":false},{"schema":{"default":"any","type":"string","enum":["healthy","failing","any"]},"in":"query","name":"health","required":false},{"schema":{"type":"boolean"},"in":"query","name":"attention","required":false},{"schema":{"default":"name","type":"string","enum":["name","created","fail_rate","usage","mrr"]},"in":"query","name":"sort","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"slug":{"type":"string"},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"effectivePlan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"planLabel":{"type":"string"},"wchBundled":{"type":"boolean"},"subscriptionStatus":{"nullable":true,"type":"string","enum":["trialing","active","past_due","paused","cancelled"]},"trialEndsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"sites":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"monitors":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failRate7d":{"type":"number"},"usagePct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attention":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["quota_grace","quota_paused","payment_failed","trial_no_card","adapter","high_fail_rate","wch_error"]},"label":{"type":"string"}},"required":["kind","label"],"additionalProperties":false}},"flags":{"type":"array","items":{"type":"string"}},"mrrCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dataRegion":{"type":"string","enum":["us","eu"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","slug","plan","effectivePlan","planLabel","wchBundled","subscriptionStatus","trialEndsAt","sites","monitors","failRate7d","usagePct","attention","flags","mrrCents","dataRegion","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["items","nextCursor"],"additionalProperties":false}}}}}}},"/v1/admin/tenants/{id}":{"get":{"tags":["admin"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"slug":{"type":"string"},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"effectivePlan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"planLabel":{"type":"string"},"wchBundled":{"type":"boolean"},"subscriptionStatus":{"nullable":true,"type":"string","enum":["trialing","active","past_due","paused","cancelled"]},"trialEndsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"sites":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"monitors":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failRate7d":{"type":"number"},"usagePct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attention":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["quota_grace","quota_paused","payment_failed","trial_no_card","adapter","high_fail_rate","wch_error"]},"label":{"type":"string"}},"required":["kind","label"],"additionalProperties":false}},"flags":{"type":"array","items":{"type":"string"}},"mrrCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dataRegion":{"type":"string","enum":["us","eu"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"owner":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"members":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"usage":{"type":"object","properties":{"period":{"type":"string"},"sites":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"monitors":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"seats":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"l5":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"sms":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"apiRequests":{"type":"object","properties":{"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"}},"required":["used","limit","pct","over"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"meter":{"type":"string","enum":["sites","monitors","seats","l5","sms","apiRequests"]},"threshold":{"anyOf":[{"type":"number","enum":[80]},{"type":"number","enum":[100]}]},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"over":{"type":"boolean"},"message":{"type":"string"}},"required":["meter","threshold","used","limit","pct","over","message"],"additionalProperties":false}},"overLimit":{"type":"boolean"},"grace":{"type":"object","properties":{"status":{"type":"string","enum":["ok","grace","expired"]},"graceStartedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"daysLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"day":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["status","graceStartedAt","endsAt","daysLeft","day"],"additionalProperties":false},"pausedSiteIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}}},"required":["period","sites","monitors","seats","l5","sms","apiRequests","warnings","overLimit","grace","pausedSiteIds"],"additionalProperties":false},"subscription":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"provider":{"type":"string","enum":["paddle","manual"]},"providerSubscriptionId":{"nullable":true,"type":"string"},"providerCustomerId":{"nullable":true,"type":"string"},"plan":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]},"interval":{"type":"string","enum":["monthly","annual"]},"status":{"type":"string","enum":["trialing","active","past_due","paused","cancelled"]},"currentPeriodStart":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"currentPeriodEnd":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"cancelAtPeriodEnd":{"type":"boolean"},"seats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","provider","providerSubscriptionId","providerCustomerId","plan","interval","status","currentPeriodStart","currentPeriodEnd","cancelAtPeriodEnd","seats","createdAt","updatedAt"],"additionalProperties":false},"addons":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["sites_10","l5_5","sms_200","white_label","sso","priority_support"]},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"}},"required":["kind","quantity","status"],"additionalProperties":false}},"planOverride":{"nullable":true,"type":"object","additionalProperties":{}},"wch":{"nullable":true,"type":"object","properties":{"status":{"type":"string"},"wchOrgName":{"nullable":true,"type":"string"},"matched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["status","wchOrgName","matched"],"additionalProperties":false},"openIncidents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"severity":{"type":"string","enum":["critical","warning","unknown"]},"siteName":{"type":"string"},"openedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","number","severity","siteName","openedAt"],"additionalProperties":false}},"recentAudit":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"action":{"type":"string"},"target":{"type":"string"},"actor":{"nullable":true,"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","action","target","actor","createdAt"],"additionalProperties":false}},"impersonations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"adminUser":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgName":{"type":"string"},"reason":{"type":"string","enum":["support_ticket","billing","debugging","onboarding","incident_investigation","other"]},"ticketRef":{"nullable":true,"type":"string"},"readOnly":{"type":"boolean"},"startedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"durationMs":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","adminUser","orgId","orgName","reason","ticketRef","readOnly","startedAt","endedAt","durationMs"],"additionalProperties":false}}},"required":["id","name","slug","plan","effectivePlan","planLabel","wchBundled","subscriptionStatus","trialEndsAt","sites","monitors","failRate7d","usagePct","attention","flags","mrrCents","dataRegion","createdAt","owner","members","usage","subscription","addons","planOverride","wch","openIncidents","recentAudit","impersonations"],"additionalProperties":false}}}}}}},"/v1/admin/stats":{"get":{"tags":["admin"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orgs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sites":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"monitors":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"runs24h":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"onTimePct":{"type":"number"},"queueDepth":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"stuckRuns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mrrCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mrrChangePct":{"nullable":true,"type":"number"},"trialsActive":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["orgs","sites","monitors","runs24h","onTimePct","queueDepth","stuckRuns","mrrCents","mrrChangePct","trialsActive"],"additionalProperties":false}}}}}}},"/v1/admin/impersonate":{"post":{"tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"reason":{"type":"string","enum":["support_ticket","billing","debugging","onboarding","incident_investigation","other"]},"ticketRef":{"type":"string","minLength":1,"maxLength":64},"readOnly":{"default":true,"type":"boolean"},"asUserId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"required":["orgId","reason","ticketRef"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"session":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"adminUser":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgName":{"type":"string"},"reason":{"type":"string","enum":["support_ticket","billing","debugging","onboarding","incident_investigation","other"]},"ticketRef":{"nullable":true,"type":"string"},"readOnly":{"type":"boolean"},"startedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"durationMs":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","adminUser","orgId","orgName","reason","ticketRef","readOnly","startedAt","endedAt","durationMs"],"additionalProperties":false},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"redirect":{"type":"string"}},"required":["session","expiresAt","redirect"],"additionalProperties":false}}}}}}},"/v1/admin/impersonate/stop":{"post":{"tags":["admin"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"session":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"adminUser":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgName":{"type":"string"},"reason":{"type":"string","enum":["support_ticket","billing","debugging","onboarding","incident_investigation","other"]},"ticketRef":{"nullable":true,"type":"string"},"readOnly":{"type":"boolean"},"startedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"durationMs":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","adminUser","orgId","orgName","reason","ticketRef","readOnly","startedAt","endedAt","durationMs"],"additionalProperties":false}},"required":["ok","session"],"additionalProperties":false}}}}}}},"/v1/admin/impersonations":{"get":{"tags":["admin"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"query","name":"cursor","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"query","name":"orgId","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"since","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"adminUser":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgName":{"type":"string"},"reason":{"type":"string","enum":["support_ticket","billing","debugging","onboarding","incident_investigation","other"]},"ticketRef":{"nullable":true,"type":"string"},"readOnly":{"type":"boolean"},"startedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"durationMs":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","adminUser","orgId","orgName","reason","ticketRef","readOnly","startedAt","endedAt","durationMs"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["items","nextCursor"],"additionalProperties":false}}}}}}},"/v1/admin/queues":{"get":{"tags":["admin"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"queues":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"waiting":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"delayed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed1h":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paused":{"default":false,"type":"boolean"}},"required":["name","waiting","active","delayed","failed","completed1h","paused"],"additionalProperties":false}},"workers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"queues":{"type":"array","items":{"type":"string"}},"startedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastJobAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","queues","startedAt","lastJobAt"],"additionalProperties":false}},"components":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"status":{"type":"string","enum":["ok","degraded","down"]},"detail":{"type":"string"}},"required":["name","status","detail"],"additionalProperties":false}}},"required":["ok","checkedAt","queues","workers","components"],"additionalProperties":false}}}}}}},"/v1/admin/adapters":{"get":{"tags":["admin"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"adapter":{"type":"string","enum":["wpforms","gravityforms","cf7","fluentforms","formidable","ninjaforms","elementor"]},"version":{"nullable":true,"type":"string"},"sites":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"runs24h":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failures24h":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failRate":{"nullable":true,"type":"number"},"failingLevel":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"topReason":{"nullable":true,"type":"string","enum":["CONNECTOR_UNREACHABLE","PLUGIN_INACTIVE","FORM_NOT_FOUND","VALIDATION_REJECTED","CAPTCHA_BLOCKED","ENTRY_NOT_FOUND","WP_MAIL_FALSE","SMTP_REJECTED","PROVIDER_BOUNCE","CATCH_NOT_RECEIVED","DEST_AUTH_EXPIRED","DEST_NOT_FOUND","RATE_LIMITED","SITE_DOWN","MAINTENANCE","SIDE_EFFECTS_UNCONFIRMED","DEST_AUTH_EXPIRING","SLOW_DELIVERY","PLATFORM_ERROR"]},"note":{"nullable":true,"type":"string"}},"required":["adapter","version","sites","runs24h","failures24h","failRate","failingLevel","topReason","note"],"additionalProperties":false}},"alert":{"nullable":true,"type":"string"}},"required":["items","alert"],"additionalProperties":false}}}}}}},"/v1/admin/flags":{"get":{"tags":["admin"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"key":{"type":"string"},"enabled":{"type":"boolean"},"rollout":{"nullable":true,"type":"object","properties":{"orgIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"percent":{"type":"number","minimum":0,"maximum":100},"plans":{"type":"array","items":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]}}},"additionalProperties":false},"description":{"nullable":true,"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","key","enabled","rollout","description","updatedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}}}},"/v1/admin/flags/{key}":{"put":{"tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"rollout":{"nullable":true,"type":"object","properties":{"orgIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"percent":{"type":"number","minimum":0,"maximum":100},"plans":{"type":"array","items":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]}}}},"description":{"nullable":true,"type":"string","maxLength":500}},"required":["enabled"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^[a-z0-9_.-]{1,64}$"},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"key":{"type":"string"},"enabled":{"type":"boolean"},"rollout":{"nullable":true,"type":"object","properties":{"orgIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"percent":{"type":"number","minimum":0,"maximum":100},"plans":{"type":"array","items":{"type":"string","enum":["trial","starter","agency","scale","agency_pro","enterprise"]}}},"additionalProperties":false},"description":{"nullable":true,"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","key","enabled","rollout","description","updatedAt"],"additionalProperties":false}}}}}},"delete":{"tags":["admin"],"parameters":[{"schema":{"type":"string","pattern":"^[a-z0-9_.-]{1,64}$"},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/admin/banners":{"get":{"tags":["admin"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"message":{"type":"string"},"level":{"type":"string","enum":["info","warning","critical"]},"startsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","message","level","startsAt","endsAt","createdAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}}},"post":{"tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","minLength":1,"maxLength":500},"level":{"default":"info","type":"string","enum":["info","warning","critical"]},"startsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["message"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"message":{"type":"string"},"level":{"type":"string","enum":["info","warning","critical"]},"startsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","message","level","startsAt","endsAt","createdAt"],"additionalProperties":false}}}}}}},"/v1/admin/banners/{id}":{"patch":{"tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","minLength":1,"maxLength":500},"level":{"default":"info","type":"string","enum":["info","warning","critical"]},"startsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"message":{"type":"string"},"level":{"type":"string","enum":["info","warning","critical"]},"startsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","message","level","startsAt","endsAt","createdAt"],"additionalProperties":false}}}}}},"delete":{"tags":["admin"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/banners/active":{"get":{"tags":["admin"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"message":{"type":"string"},"level":{"type":"string","enum":["info","warning","critical"]},"startsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","message","level","startsAt","endsAt","createdAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}}}},"/v1/admin/runs/stuck":{"get":{"tags":["admin"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgName":{"type":"string"},"siteName":{"type":"string"},"formTitle":{"type":"string"},"state":{"type":"string","enum":["QUEUED","RUNNING","SUBMITTED","VERIFYING","PASSED","PASSED_LATE","FAILED","INCONCLUSIVE","TIMED_OUT","CANCELLED"]},"startedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"minutesStuck":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"workerId":{"nullable":true,"type":"string"}},"required":["id","orgId","orgName","siteName","formTitle","state","startedAt","minutesStuck","workerId"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}}}},"/v1/admin/runs/requeue":{"post":{"tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"runIds":{"default":[],"maxItems":500,"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requeued":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"runIds":{"type":"array","items":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}}},"required":["requeued","runIds"],"additionalProperties":false}}}}}}},"/v1/destinations":{"get":{"tags":["destinations"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["gmail","m365","imap","hubspot","webhook","zoho","pipedrive","gohighlevel"]},"label":{"type":"string"},"status":{"type":"string","enum":["connected","expiring","expired","error","disconnected"]},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastCheckedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"},"account":{"nullable":true,"type":"string"}},"required":["id","orgId","siteId","kind","label","status","expiresAt","createdAt","updatedAt","lastCheckedAt","lastError","account"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}}},"post":{"tags":["destinations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"siteId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["gmail","m365","imap","hubspot","webhook","zoho","pipedrive","gohighlevel"]},"label":{"type":"string","minLength":1,"maxLength":120},"config":{"type":"object","additionalProperties":{}}},"required":["kind","label","config"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["gmail","m365","imap","hubspot","webhook","zoho","pipedrive","gohighlevel"]},"label":{"type":"string"},"status":{"type":"string","enum":["connected","expiring","expired","error","disconnected"]},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastCheckedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"},"account":{"nullable":true,"type":"string"}},"required":["id","orgId","siteId","kind","label","status","expiresAt","createdAt","updatedAt","lastCheckedAt","lastError","account"],"additionalProperties":false}}}}}}},"/v1/destinations/{id}":{"get":{"tags":["destinations"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["gmail","m365","imap","hubspot","webhook","zoho","pipedrive","gohighlevel"]},"label":{"type":"string"},"status":{"type":"string","enum":["connected","expiring","expired","error","disconnected"]},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastCheckedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"},"account":{"nullable":true,"type":"string"}},"required":["id","orgId","siteId","kind","label","status","expiresAt","createdAt","updatedAt","lastCheckedAt","lastError","account"],"additionalProperties":false}}}}}},"patch":{"tags":["destinations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":120},"siteId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"status":{"type":"string","enum":["connected","disconnected"]}}}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["gmail","m365","imap","hubspot","webhook","zoho","pipedrive","gohighlevel"]},"label":{"type":"string"},"status":{"type":"string","enum":["connected","expiring","expired","error","disconnected"]},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastCheckedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"},"account":{"nullable":true,"type":"string"}},"required":["id","orgId","siteId","kind","label","status","expiresAt","createdAt","updatedAt","lastCheckedAt","lastError","account"],"additionalProperties":false}}}}}},"delete":{"tags":["destinations"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/destinations/oauth/start":{"post":{"tags":["destinations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["gmail","m365","hubspot","zoho","pipedrive","gohighlevel"]},"siteId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"label":{"type":"string","maxLength":120},"destinationId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"required":["kind"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"state":{"type":"string"}},"required":["url","state"],"additionalProperties":false}}}}}}},"/v1/destinations/oauth/callback":{"get":{"tags":["destinations"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"code","required":false},{"schema":{"type":"string","minLength":1},"in":"query","name":"state","required":true},{"schema":{"type":"string"},"in":"query","name":"error","required":false},{"schema":{"type":"string"},"in":"query","name":"accounts-server","required":false},{"schema":{"type":"string"},"in":"query","name":"location","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/destinations/connect":{"post":{"tags":["destinations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"method":{"type":"string","enum":["imap"]},"siteId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"label":{"type":"string","minLength":1,"maxLength":120},"host":{"type":"string","minLength":1,"maxLength":253},"port":{"default":993,"type":"integer","minimum":1,"maximum":65535},"secure":{"default":true,"type":"boolean"},"username":{"type":"string","minLength":1,"maxLength":254},"password":{"type":"string","minLength":1,"maxLength":500},"mailbox":{"default":"INBOX","type":"string","maxLength":200}},"required":["method","label","host","username","password"]},{"type":"object","properties":{"method":{"type":"string","enum":["api_key"]},"kind":{"type":"string","enum":["hubspot","zoho","pipedrive","gohighlevel"]},"siteId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"label":{"type":"string","minLength":1,"maxLength":120},"apiKey":{"type":"string","minLength":8,"maxLength":500},"region":{"type":"string","enum":["us","eu","in","au","jp","ca"]},"locationId":{"type":"string","maxLength":100},"companyDomain":{"type":"string","maxLength":100}},"required":["method","kind","label","apiKey"]},{"type":"object","properties":{"method":{"type":"string","enum":["webhook"]},"siteId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"label":{"type":"string","minLength":1,"maxLength":120},"url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["method","label","url"]}]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"destination":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"siteId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"kind":{"type":"string","enum":["gmail","m365","imap","hubspot","webhook","zoho","pipedrive","gohighlevel"]},"label":{"type":"string"},"status":{"type":"string","enum":["connected","expiring","expired","error","disconnected"]},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastCheckedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"},"account":{"nullable":true,"type":"string"}},"required":["id","orgId","siteId","kind","label","status","expiresAt","createdAt","updatedAt","lastCheckedAt","lastError","account"],"additionalProperties":false},"secret":{"type":"string"}},"required":["destination"],"additionalProperties":false}}}}}}},"/v1/destinations/{id}/test":{"post":{"tags":["destinations"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"status":{"type":"string","enum":["connected","expiring","expired","error","disconnected"]},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"error":{"nullable":true,"type":"string"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"account":{"nullable":true,"type":"string"},"detail":{"default":{},"type":"object","additionalProperties":{}},"enqueued":{"type":"boolean"},"probeRunId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"required":["ok","status","checkedAt","error","expiresAt","account","detail","enqueued","probeRunId"],"additionalProperties":false}}}}}}},"/v1/destinations/{id}/check":{"post":{"tags":["destinations"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"status":{"type":"string","enum":["connected","expiring","expired","error","disconnected"]},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"error":{"nullable":true,"type":"string"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"account":{"nullable":true,"type":"string"},"detail":{"default":{},"type":"object","additionalProperties":{}},"enqueued":{"type":"boolean"},"probeRunId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"required":["ok","status","checkedAt","error","expiresAt","account","detail","enqueued","probeRunId"],"additionalProperties":false}}}}}}},"/v1/public/destinations/{id}/confirm":{"post":{"tags":["destinations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"marker":{"type":"string","minLength":1,"maxLength":64}},"required":["marker"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/public/audit":{"post":{"tags":["public"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"siteUrl":{"type":"string","minLength":3,"maxLength":2048},"email":{"type":"string"},"consent":{"type":"boolean","enum":[true]},"source":{"type":"string","maxLength":64}},"required":["siteUrl","email","consent"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"status":{"type":"string","enum":["queued","running","done","failed"]},"statusUrl":{"type":"string"}},"required":["id","status","statusUrl"],"additionalProperties":false}}}}}}},"/v1/public/audit/{id}":{"get":{"tags":["public"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"status":{"type":"string","enum":["queued","running","done","failed"]},"siteUrl":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"findings":{"nullable":true,"type":"object","properties":{"host":{"type":"string"},"checked_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"wordpress":{"type":"boolean"},"spf":{"type":"object","properties":{"status":{"type":"string","enum":["pass","warn","fail","unknown"]},"record":{"type":"string"},"note":{"type":"string"}},"required":["status","note"],"additionalProperties":false},"dkim":{"type":"object","properties":{"status":{"type":"string","enum":["pass","warn","fail","unknown"]},"record":{"type":"string"},"note":{"type":"string"}},"required":["status","note"],"additionalProperties":false},"dmarc":{"type":"object","properties":{"status":{"type":"string","enum":["pass","warn","fail","unknown"]},"record":{"type":"string"},"note":{"type":"string"}},"required":["status","note"],"additionalProperties":false},"mx":{"default":[],"type":"array","items":{"type":"string"}},"form_plugins":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"evidence":{"type":"string"}},"required":["slug","name"],"additionalProperties":false}},"smtp_plugin":{"nullable":true,"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"evidence":{"type":"string"}},"required":["slug","name"],"additionalProperties":false},"php_mail_likely":{"type":"boolean"},"hosting_hint":{"nullable":true,"type":"string"},"likely_outcome":{"type":"string"},"recommendations":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"priority":{"type":"integer","minimum":1,"maximum":3},"title":{"type":"string"},"detail":{"type":"string"}},"required":["priority","title","detail"],"additionalProperties":false}}},"required":["host","checked_at","wordpress","spf","dkim","dmarc","mx","form_plugins","php_mail_likely","likely_outcome","recommendations"],"additionalProperties":false},"reportSent":{"type":"boolean"},"error":{"nullable":true,"type":"string"}},"required":["id","status","siteUrl","createdAt","findings","reportSent","error"],"additionalProperties":false}}}}}}},"/v1/public/audit/{id}/report":{"get":{"tags":["public"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response"}}}},"/v1/integrations/slack/install":{"get":{"tags":["integrations"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["url"],"additionalProperties":false}}}}}}},"/v1/integrations/slack/start":{"get":{"tags":["integrations"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["url"],"additionalProperties":false}}}}}}},"/v1/integrations/slack/callback":{"get":{"tags":["integrations"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"code","required":false},{"schema":{"type":"string","minLength":1},"in":"query","name":"state","required":true},{"schema":{"type":"string"},"in":"query","name":"error","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/v1/integrations/slack":{"get":{"tags":["integrations"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"orgId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"teamId":{"type":"string"},"teamName":{"nullable":true,"type":"string"},"botUserId":{"nullable":true,"type":"string"},"channelDefaults":{"type":"object","properties":{"defaultChannelId":{"nullable":true,"type":"string"},"defaultChannelName":{"nullable":true,"type":"string"},"bySeverity":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"installedBy":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","orgId","teamId","teamName","botUserId","channelDefaults","installedBy","createdAt","updatedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}}},"delete":{"tags":["integrations"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/v1/integrations/slack/interactions":{"post":{"tags":["integrations"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"action":{"nullable":true,"type":"string"},"incidentId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"required":["ok","action","incidentId"],"additionalProperties":false}}}}}}},"/v1/integrations/slack/interactive":{"post":{"tags":["integrations"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"action":{"nullable":true,"type":"string"},"incidentId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"required":["ok","action","incidentId"],"additionalProperties":false}}}}}}},"/v1/public/chat":{"post":{"tags":["public"],"description":"Support chat. Responds with text/event-stream (see ChatStreamEvent).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sessionId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"messages":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["user","assistant"]},"content":{"type":"string","minLength":1,"maxLength":8000}},"required":["role","content"]}},"page":{"type":"string","maxLength":512}},"required":["messages"]}}}},"responses":{"200":{"description":"Default Response"}}}},"/v1/public/leads":{"post":{"tags":["public"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":120},"email":{"type":"string"},"company":{"type":"string","maxLength":160},"message":{"type":"string","minLength":1,"maxLength":4000},"source":{"type":"string","enum":["chat","contact"]},"page":{"type":"string","maxLength":512},"sessionId":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"transcript":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["user","assistant"]},"content":{"type":"string","minLength":1,"maxLength":8000}},"required":["role","content"]}}},"required":["email","message","source"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"}},"required":["ok","id"],"additionalProperties":false}}}}}}},"/v1/admin/leads":{"get":{"tags":["admin"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"query","name":"cursor","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","enum":["new","contacted","closed"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","enum":["chat","contact"]},"in":"query","name":"source","required":false},{"schema":{"type":"string","maxLength":120},"in":"query","name":"q","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"email":{"type":"string"},"name":{"nullable":true,"type":"string"},"company":{"nullable":true,"type":"string"},"message":{"type":"string"},"source":{"type":"string","enum":["chat","contact"]},"page":{"nullable":true,"type":"string"},"sessionId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"transcript":{"nullable":true,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["user","assistant"]},"content":{"type":"string","minLength":1,"maxLength":8000}},"required":["role","content"],"additionalProperties":false}},"status":{"type":"string","enum":["new","contacted","closed"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","email","name","company","message","source","page","sessionId","transcript","status","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"counts":{"type":"object","properties":{"new":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contacted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"closed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["new","contacted","closed"],"additionalProperties":false}},"required":["items","nextCursor","counts"],"additionalProperties":false}}}}}}},"/v1/admin/leads/{id}":{"get":{"tags":["admin"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"email":{"type":"string"},"name":{"nullable":true,"type":"string"},"company":{"nullable":true,"type":"string"},"message":{"type":"string"},"source":{"type":"string","enum":["chat","contact"]},"page":{"nullable":true,"type":"string"},"sessionId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"transcript":{"nullable":true,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["user","assistant"]},"content":{"type":"string","minLength":1,"maxLength":8000}},"required":["role","content"],"additionalProperties":false}},"status":{"type":"string","enum":["new","contacted","closed"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","email","name","company","message","source","page","sessionId","transcript","status","createdAt","updatedAt"],"additionalProperties":false}}}}}},"patch":{"tags":["admin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["new","contacted","closed"]}},"required":["status"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"email":{"type":"string"},"name":{"nullable":true,"type":"string"},"company":{"nullable":true,"type":"string"},"message":{"type":"string"},"source":{"type":"string","enum":["chat","contact"]},"page":{"nullable":true,"type":"string"},"sessionId":{"nullable":true,"type":"string","pattern":"^[0-9A-HJKMNP-TV-Z]{26}$"},"transcript":{"nullable":true,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["user","assistant"]},"content":{"type":"string","minLength":1,"maxLength":8000}},"required":["role","content"],"additionalProperties":false}},"status":{"type":"string","enum":["new","contacted","closed"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","email","name","company","message","source","page","sessionId","transcript","status","createdAt","updatedAt"],"additionalProperties":false}}}}}}}},"servers":[{"url":"https://api.formvigilant.com"}],"security":[{"session":[]},{"apiKey":[]}]}