{"openapi":"3.1.0","info":{"title":"AgathaSec customer API","version":"1.0.0","description":"Read-only access to one workspace’s findings, scans, assets and domains. Each key belongs to one workspace and is created by a workspace admin in Settings. Responses never include raw evidence, secrets or AI-written text. Every reply is `Cache-Control: no-store`."},"servers":[{"url":"https://app.agathasec.com/api","description":"AgathaSec"}],"security":[{"apiKey":[]}],"paths":{"/v1/openapi.json":{"get":{"operationId":"getOpenApi","summary":"This document","security":[],"responses":{"200":{"description":"The OpenAPI document.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/findings":{"get":{"operationId":"listFindings","summary":"List findings","description":"Most recently first seen first. Filters combine. Signed-in comparison results are review items, never confirmed issues.","parameters":[{"name":"limit","in":"query","required":false,"description":"Items per page, 1 to 100. Default 50.","schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"description":"The `nextCursor` from the previous page.","schema":{"type":"string","minLength":1,"maxLength":512}},{"name":"status","in":"query","required":false,"description":"Only findings with this status. Default: every status.","schema":{"type":"string","enum":["open","fixed","accepted_risk","false_positive"]}},{"name":"severity","in":"query","required":false,"description":"Only findings with this saved severity.","schema":{"type":"string","enum":["critical","high","medium","low","info"]}},{"name":"host","in":"query","required":false,"description":"Only findings on this exact website: its hostname, or `hostname:port` for a website on an alternative web port, as returned in `host`.","schema":{"type":"string","pattern":"^[A-Za-z0-9.-]{1,253}(?::(?:3000|5000|8000|8008|8080|8081|8443|8888|9000|9090|9443))?$"}},{"name":"check","in":"query","required":false,"description":"Only findings from this check: a `checkId` as returned on findings.","schema":{"type":"string","pattern":"^[a-z0-9_]{1,64}$"}}],"responses":{"200":{"description":"One page. Ask again with `cursor` set to `nextCursor` until it is null.","headers":{"RateLimit-Limit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the count starts again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","nextCursor"],"additionalProperties":false,"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Finding"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"A parameter or the cursor isn’t valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that is unknown, revoked or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The member who created the key is no longer in the workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key (120 a minute).","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Workspace membership or the rate limit couldn’t be checked just now. Try again in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/findings/{findingId}":{"get":{"operationId":"getFinding","summary":"Get one finding","description":"The same fields as the list.","parameters":[{"name":"findingId","in":"path","required":true,"description":"The finding’s id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Found.","headers":{"RateLimit-Limit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the count starts again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"additionalProperties":false,"properties":{"data":{"$ref":"#/components/schemas/Finding"}}}}}},"401":{"description":"No key, or a key that is unknown, revoked or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The member who created the key is no longer in the workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such id in this key’s workspace (including ids that belong to another workspace).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key (120 a minute).","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Workspace membership or the rate limit couldn’t be checked just now. Try again in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/scans":{"get":{"operationId":"listScans","summary":"List scans","description":"Newest first.","parameters":[{"name":"limit","in":"query","required":false,"description":"Items per page, 1 to 100. Default 50.","schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"description":"The `nextCursor` from the previous page.","schema":{"type":"string","minLength":1,"maxLength":512}}],"responses":{"200":{"description":"One page. Ask again with `cursor` set to `nextCursor` until it is null.","headers":{"RateLimit-Limit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the count starts again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","nextCursor"],"additionalProperties":false,"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Scan"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"A parameter or the cursor isn’t valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that is unknown, revoked or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The member who created the key is no longer in the workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key (120 a minute).","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Workspace membership or the rate limit couldn’t be checked just now. Try again in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/scans/{scanId}":{"get":{"operationId":"getScan","summary":"Get one scan","description":"The scan with how many findings it saw and its coverage summary: the state of each area checked on each website.","parameters":[{"name":"scanId","in":"path","required":true,"description":"The scan’s id.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Found.","headers":{"RateLimit-Limit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the count starts again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["data"],"additionalProperties":false,"properties":{"data":{"$ref":"#/components/schemas/ScanDetail"}}}}}},"401":{"description":"No key, or a key that is unknown, revoked or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The member who created the key is no longer in the workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such id in this key’s workspace (including ids that belong to another workspace).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key (120 a minute).","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Workspace membership or the rate limit couldn’t be checked just now. Try again in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/assets":{"get":{"operationId":"listAssets","summary":"List assets","description":"Every host discovery has found, with its website details when it runs one. By hostname.","parameters":[{"name":"limit","in":"query","required":false,"description":"Items per page, 1 to 100. Default 50.","schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"description":"The `nextCursor` from the previous page.","schema":{"type":"string","minLength":1,"maxLength":512}}],"responses":{"200":{"description":"One page. Ask again with `cursor` set to `nextCursor` until it is null.","headers":{"RateLimit-Limit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the count starts again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","nextCursor"],"additionalProperties":false,"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"A parameter or the cursor isn’t valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that is unknown, revoked or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The member who created the key is no longer in the workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key (120 a minute).","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Workspace membership or the rate limit couldn’t be checked just now. Try again in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/domains":{"get":{"operationId":"listDomains","summary":"List domains","description":"Approved and requested domains with their approval status. By domain name.","parameters":[{"name":"limit","in":"query","required":false,"description":"Items per page, 1 to 100. Default 50.","schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"description":"The `nextCursor` from the previous page.","schema":{"type":"string","minLength":1,"maxLength":512}}],"responses":{"200":{"description":"One page. Ask again with `cursor` set to `nextCursor` until it is null.","headers":{"RateLimit-Limit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the count starts again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["data","nextCursor"],"additionalProperties":false,"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Domain"}},"nextCursor":{"type":["string","null"]}}}}}},"400":{"description":"A parameter or the cursor isn’t valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No key, or a key that is unknown, revoked or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The member who created the key is no longer in the workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests for this key (120 a minute).","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Workspace membership or the rate limit couldn’t be checked just now. Try again in a minute.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"An API key from Settings, starting `ags_live_`: `Authorization: Bearer ags_live_…`."}},"schemas":{"Finding":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string","description":"The check’s plain-language title, as in the CSV export."},"checkId":{"type":"string"},"severity":{"type":"string","enum":["critical","high","medium","low","info"],"description":"Saved severity, as used by the `severity` filter."},"severityLabel":{"type":"string","description":"Severity as the app shows it. Signed-in comparison results read \"Review\" or \"Informational\"."},"signedInResult":{"type":"boolean","description":"A signed-in comparison result: a review item, never a confirmed issue."},"status":{"type":"string","enum":["open","fixed","accepted_risk","false_positive"]},"statusLabel":{"type":"string"},"statusChangedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"host":{"type":"string"},"location":{"type":"string","description":"Where it was seen, in a short readable form, with common secrets hidden."},"domainId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastScanId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"riskScore":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cve":{"type":["string","null"]},"cveKnownExploited":{"description":"Saved when the scan ran. Null when there is no CVE.","type":["boolean","null"]},"firstSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"link":{"type":"string","format":"uri","description":"The finding in the AgathaSec app."}},"required":["id","title","checkId","severity","severityLabel","signedInResult","status","statusLabel","statusChangedAt","host","location","domainId","lastScanId","riskScore","cve","cveKnownExploited","firstSeenAt","lastSeenAt","link"],"additionalProperties":false},"Scan":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domainId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"state":{"type":"string","enum":["queued","running","completed","inconclusive","failed","cancelled"]},"trigger":{"type":"string","enum":["manual","schedule"]},"focusHost":{"description":"Set when the scan rechecked one website only.","type":["string","null"]},"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)))$"},"startedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"failureReason":{"type":["string","null"]},"incompleteSteps":{"type":"array","items":{"type":"string"},"description":"Codes for every part the scan didn’t finish or didn’t test. A `completed` scan lists only parts in `notTested`; any other code means a check didn’t finish and the scan is `inconclusive`. Scans saved before 2026-11-12 are `inconclusive` whenever this isn’t empty."},"notTested":{"type":"array","items":{"type":"string"},"description":"The codes in `incompleteSteps` that name a part left untested by design or by the site (a server error, a redirect, a per-scan share, a test not turned on). They never prove anything safe or fixed."},"hosts":{"anyOf":[{"type":"object","properties":{"found":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"resolved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"blocked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"websites":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["found","resolved","blocked","websites"],"additionalProperties":false},{"type":"null"}]},"changes":{"anyOf":[{"type":"object","properties":{"newFindings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"newBySeverity":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"reopened":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fixed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"gaps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Steps a check didn’t finish. Before 2026-11-12 this counted every step."},"notTested":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Parts left untested by design or by the site (0 for scans saved before 2026-11-12)."}},"required":["newFindings","newBySeverity","reopened","fixed","gaps","notTested"],"additionalProperties":false},{"type":"null"}]},"link":{"type":"string","format":"uri"}},"required":["id","domainId","domain","state","trigger","focusHost","createdAt","startedAt","finishedAt","failureReason","incompleteSteps","notTested","hosts","changes","link"],"additionalProperties":false},"ScanDetail":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domainId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"state":{"type":"string","enum":["queued","running","completed","inconclusive","failed","cancelled"]},"trigger":{"type":"string","enum":["manual","schedule"]},"focusHost":{"description":"Set when the scan rechecked one website only.","type":["string","null"]},"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)))$"},"startedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"finishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"failureReason":{"type":["string","null"]},"incompleteSteps":{"type":"array","items":{"type":"string"},"description":"Codes for every part the scan didn’t finish or didn’t test. A `completed` scan lists only parts in `notTested`; any other code means a check didn’t finish and the scan is `inconclusive`. Scans saved before 2026-11-12 are `inconclusive` whenever this isn’t empty."},"notTested":{"type":"array","items":{"type":"string"},"description":"The codes in `incompleteSteps` that name a part left untested by design or by the site (a server error, a redirect, a per-scan share, a test not turned on). They never prove anything safe or fixed."},"hosts":{"anyOf":[{"type":"object","properties":{"found":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"resolved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"blocked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"websites":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["found","resolved","blocked","websites"],"additionalProperties":false},{"type":"null"}]},"changes":{"anyOf":[{"type":"object","properties":{"newFindings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"newBySeverity":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"reopened":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fixed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"gaps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Steps a check didn’t finish. Before 2026-11-12 this counted every step."},"notTested":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Parts left untested by design or by the site (0 for scans saved before 2026-11-12)."}},"required":["newFindings","newBySeverity","reopened","fixed","gaps","notTested"],"additionalProperties":false},{"type":"null"}]},"link":{"type":"string","format":"uri"},"findingsSeen":{"type":"integer","minimum":0,"maximum":9007199254740991},"coverage":{"type":"object","properties":{"byState":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":"How many website areas ended in each state."},"areas":{"type":"array","items":{"type":"object","properties":{"host":{"type":"string"},"area":{"type":"string","description":"The part of the website checked, such as `discovery`, `files`, `tls`, `dns`, `inputs` or `templates`."},"state":{"type":"string","description":"checked, not_applicable, not_configured, review_required, incomplete, unreadable (finished except for addresses the site wouldn’t give up) or limited (stopped at its own limit for one scan, such as pages or inputs past the share one scan takes)."},"unreadableAddresses":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Addresses the site answered with a server error, a redirect the scan doesn’t follow or a cut-off reply."}},"required":["host","area","state","unreadableAddresses"],"additionalProperties":false}}},"required":["byState","areas"],"additionalProperties":false}},"required":["id","domainId","domain","state","trigger","focusHost","createdAt","startedAt","finishedAt","failureReason","incompleteSteps","notTested","hosts","changes","link","findingsSeen","coverage"],"additionalProperties":false},"Asset":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domainId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"host":{"type":"string"},"addresses":{"type":"array","items":{"type":"string"}},"blockedReason":{"description":"Why the host wasn’t contacted, such as a private address.","type":["string","null"]},"website":{"anyOf":[{"type":"object","properties":{"url":{"type":"string"},"status":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"title":{"type":["string","null"]},"server":{"type":["string","null"]},"redirect":{"type":["string","null"]},"redirectInScope":{"type":["boolean","null"]}},"required":["url","status","title","server","redirect","redirectInScope"],"additionalProperties":false},{"type":"null"}]},"firstSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastScanId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id","domainId","host","addresses","blockedReason","website","firstSeenAt","lastSeenAt","lastScanId"],"additionalProperties":false},"Domain":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"includeSubdomains":{"type":"boolean"},"approval":{"type":"string","enum":["approved","awaiting_proof","revoked","expired","proof_expired"],"description":"approved: scans may run. awaiting_proof: the DNS record hasn’t been checked yet. revoked: an admin ended it. expired: the 30-day approval lapsed. proof_expired: the DNS proof request lapsed before it was checked."},"approvedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"approvalExpiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"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","domain","includeSubdomains","approval","approvedAt","approvalExpiresAt","revokedAt","createdAt"],"additionalProperties":false},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}