{"openapi":"3.1.0","info":{"title":"OpenTrust Management API","version":"1.0.0","description":"Publish and synchronize the provider's organization profile, compliance, resources, subprocessors, machine-readable JSON, internal knowledge, logos, and vulnerabilities. Every operation, including GET, requires an organization-issued Management Bearer key with the documented scope. Consumer keys and session cookies cannot authorize this interface. Read and write scopes are independent. JSON bodies are limited to 2 MB. Lists use data and nextCursor (limit 50, maximum 100). Data responses use private, no-store caching. Existing /api/v1 publishing and knowledge routes remain compatibility aliases and enforce Management key audience for Bearer access."},"servers":[{"url":"/","description":"This OpenTrust instance"}],"tags":[{"name":"Certification","description":"Versioned publication, original documents, report snapshots, agency inventory and access evidence."},{"name":"Machine-readable","description":"Configurable public and protected raw JSON documents with stable URLs."},{"name":"Knowledge","description":"Private organizational articles, documents, original files, and updates."},{"name":"Assets","description":"Secure custom logo uploads backed by configured object storage."},{"name":"Subprocessors","description":"Organization-wide third-party processing disclosures and public directory."},{"name":"Organization","description":"Organization identity and profile updates."},{"name":"Incidents","description":"Public availability incidents and the timestamped updates that follow."},{"name":"Compliance","description":"Offering metadata and framework posture."},{"name":"Resources","description":"Public, authenticated, and restricted evidence and documents."},{"name":"Vulnerabilities","description":"Authenticated finding reads and scanner synchronization."}],"paths":{"/api/admin/v1/orgs/{orgSlug}/availability":{"get":{"operationId":"getAvailability","tags":["Availability"],"summary":"Read current and historical availability","description":"Public aggregate from the same configured monitors and SLO providers used by the uptime page. Current operational status is separate from rolling historical availability; unavailable/unconfigured data is explicit. Individual monitor identifiers, endpoints and backend payloads are never returned. Follow incidentsUrl for paginated incident history. The configured measurement coverage must be reconciled with the offering's core services.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"generatedAt":{"type":"string"},"current":{"type":"object","properties":{"status":{"type":"string","enum":["up","degraded","down","unknown"]},"updatedAt":{"type":["string","null"]},"source":{"type":"string","enum":["manual","monitor"]}},"required":["status","updatedAt","source"],"additionalProperties":false},"historical":{"anyOf":[{"type":"object","properties":{"availabilityPercent":{"type":["number","null"]},"targetPercent":{"type":["number","null"]},"objectiveCount":{"type":"number"},"meetingTargetCount":{"type":"number"},"windowDays":{"type":["number","null"]},"status":{"type":"string","enum":["healthy","degrading","violated","no_data","unavailable"]}},"required":["availabilityPercent","targetPercent","objectiveCount","meetingTargetCount","windowDays","status"],"additionalProperties":false},{"type":"null"}]},"incidentsUrl":{"type":"string"},"measurement":{"type":"string"}},"required":["generatedAt","current","historical","incidentsUrl","measurement"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"}},"/api/admin/v1/orgs/{orgSlug}/machine-readables":{"get":{"operationId":"listMachineReadables","tags":["Machine-readable"],"summary":"List accessible machine-readable documents","description":"List all configured machine-readable documents with metadata and stable raw JSON URLs. Fetch payloads separately.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MachineReadableSummary"}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"}},"/api/admin/v1/orgs/{orgSlug}/machine-readables/{documentSlug}":{"get":{"operationId":"getMachineReadable","tags":["Machine-readable"],"summary":"Read a machine-readable document","description":"Returns document metadata and the exact payloadText in a data envelope. For raw JSON without an envelope, GET the payload URL or the document's url instead. The same visibility rules protect both representations.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"documentSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"documentSlug from the organization or offering URL."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MachineReadable"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"},"put":{"operationId":"upsertMachineReadable","tags":["Machine-readable"],"summary":"Create or replace a machine-readable document","description":"Upsert by organization and stable slug (up to 100 lowercase letters, numbers, and hyphens; no .json suffix). Supply exactly one of payload (any JSON value) or payloadText (JSON source as a string). Use payloadText to preserve formatting and numeric precision. Omitted visibility defaults to restricted; other omitted metadata resets to defaults. Public documents appear on the public trust page. schemaUrl is an informational reference and does not cause a remote fetch or schema validation.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"documentSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"documentSlug from the organization or offering URL."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MachineReadable"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds JSON or file upload limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:write","x-api-key-audience":"management","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MachineReadableInput"},"example":{"title":"Package overview","visibility":"public","payload":{"offering":"Example cloud","informationResources":[]}}}}}},"delete":{"operationId":"deleteMachineReadable","tags":["Machine-readable"],"summary":"Delete a machine-readable document","description":"Remove the document and its public discovery link. All its raw JSON URLs immediately return 404. API keys remain scoped to their issuing organization.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"documentSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"documentSlug from the organization or offering URL."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:write","x-api-key-audience":"management"}},"/api/admin/v1/orgs/{orgSlug}/machine-readables/{documentSlug}/payload":{"get":{"operationId":"getMachineReadablePayload","tags":["Machine-readable"],"summary":"GET the raw JSON payload","description":"Return the exact stored JSON payload without an envelope. Supports any JSON value. Public-facing aliases retain their configured visibility; this Management URL always requires a Management key.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"documentSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"documentSlug from the organization or offering URL."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"},"put":{"operationId":"replaceMachineReadablePayload","tags":["Machine-readable"],"summary":"PUT a raw JSON file without changing access or URLs","description":"Send the JSON document itself as the request body with Content-Type: application/json. Source text, numeric precision, whitespace, and key ordering are preserved. Replaces the payload of an existing configured document, retaining its metadata, access level, ID, creation date, and stable URLs. Missing documents return 404; invalid JSON leaves the previous payload unchanged. Limit: 2 MB. Success returns an enveloped management record.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"documentSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"documentSlug from the organization or offering URL."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/MachineReadable"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds JSON or file upload limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:write","x-api-key-audience":"management","requestBody":{"required":true,"content":{"application/json":{"schema":{},"example":{"offering":"Example cloud","informationResources":[]}}}}}},"/api/admin/v1/orgs/{orgSlug}/knowledge":{"get":{"operationId":"listKnowledge","tags":["Knowledge"],"summary":"List private knowledge documents","description":"Search private knowledge documents by q (title/content), exact category, or source=file|text. Filters combine with AND.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200}},{"name":"category","in":"query","required":false,"schema":{"type":"string","maxLength":100}},{"name":"source","in":"query","required":false,"schema":{"type":"string","enum":["file","text"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/KnowledgeDocument"}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"knowledge:read","x-api-key-audience":"management"},"post":{"operationId":"createKnowledge","tags":["Knowledge"],"summary":"Create an article or upload a document","description":"Send JSON for text articles, or multipart/form-data with title, optional category, and file. PDF, DOCX, TXT, and Markdown files up to 50 MB are parsed for questionnaire context and stored privately. JSON is limited to 2 MB. Knowledge remains private regardless of public resource settings.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/KnowledgeDocument"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds JSON or file upload limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"knowledge:write","x-api-key-audience":"management","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeInput"},"example":{"title":"Access policy","category":"Policies","body":"Production access requires MFA."}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/KnowledgeUpload"}}}}}},"/api/admin/v1/orgs/{orgSlug}/knowledge/{documentId}":{"get":{"operationId":"getKnowledge","tags":["Knowledge"],"summary":"Read a knowledge document","description":"Read full content, category, original filename, and a protected download URL. Internal storage references are never returned.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"documentId","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"documentId from the organization or offering URL."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/KnowledgeDocument"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"knowledge:read","x-api-key-audience":"management"},"put":{"operationId":"replaceKnowledge","tags":["Knowledge"],"summary":"Update an article or replace its original file","description":"Replace title, category, and text using JSON, or title/category/file using multipart. The document must exist in this organization. A file replacement also replaces extracted text and retires the previous object. JSON edits keep the original attachment unless removeFile=true. Omitted category resets to General.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"documentId","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"documentId from the organization or offering URL."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/KnowledgeDocument"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds JSON or file upload limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"knowledge:write","x-api-key-audience":"management","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeInput"},"example":{"title":"Updated access policy","category":"Policies","body":"Production access requires MFA and quarterly reviews."}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/KnowledgeUpload"}}}}},"delete":{"operationId":"deleteKnowledge","tags":["Knowledge"],"summary":"Delete a knowledge document","description":"Permanently remove the document and retire its original file. It will no longer be used in future questionnaire drafts. Existing questionnaire answers remain unchanged.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"documentId","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"documentId from the organization or offering URL."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"knowledge:write","x-api-key-audience":"management"}},"/api/admin/v1/orgs/{orgSlug}/knowledge/{documentId}/download":{"get":{"operationId":"downloadKnowledge","tags":["Knowledge"],"summary":"Download the original knowledge file","description":"Download the original private attachment. Text-only articles return 404.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"documentId","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"documentId from the organization or offering URL."}],"responses":{"200":{"description":"Success","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"knowledge:read","x-api-key-audience":"management"}},"/api/admin/v1/orgs/{orgSlug}/assets":{"post":{"operationId":"uploadLogo","tags":["Assets"],"summary":"Upload a custom provider or framework logo","description":"Multipart form with a file field. PNG, JPEG, or WebP up to 2 MB and 16 million pixels. Images are decoded, metadata removed, and normalized to WebP. Reference the returned ID as logoAssetId in a subprocessor or posture PUT. Logos are publicly readable only while referenced by a published entry; organization members and content:read keys can preview private logos.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Asset"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds JSON or file upload limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:write","x-api-key-audience":"management","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/LogoUpload"}}}}}},"/api/admin/v1/orgs/{orgSlug}/subprocessors":{"get":{"operationId":"listSubprocessors","tags":["Subprocessors"],"summary":"List subprocessors","description":"List all organization subprocessors, including unpublished entries, with cursor pagination.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Subprocessor"}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"}},"/api/admin/v1/orgs/{orgSlug}/subprocessors/{subprocessorSlug}":{"get":{"operationId":"getSubprocessor","tags":["Subprocessors"],"summary":"Read a subprocessor","description":"Read provider identity, processing purpose, data categories, locations, and trust links, including unpublished entries.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"subprocessorSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"subprocessorSlug from the organization or offering URL."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Subprocessor"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"},"put":{"operationId":"upsertSubprocessor","tags":["Subprocessors"],"summary":"Create or replace a subprocessor","description":"Upsert by organization and stable subprocessor slug. Entries are published on the public trust page by default; set isPublic=false to keep an unpublished draft. Omitted optional fields reset to defaults. Slugs use up to 60 lowercase letters, numbers, and hyphens.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"subprocessorSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"subprocessorSlug from the organization or offering URL."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Subprocessor"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds JSON or file upload limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:write","x-api-key-audience":"management","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubprocessorInput"},"example":{"name":"Example provider","purpose":"Infrastructure hosting","website":"https://example.com","privacyPolicyUrl":"https://example.com/privacy","dataCategories":["Customer account data"],"processingLocations":["United States"],"isPublic":true}}}}},"delete":{"operationId":"deleteSubprocessor","tags":["Subprocessors"],"summary":"Remove a subprocessor","description":"Permanently remove the provider from the organization’s directory and public page. To keep the record but unpublish it, PUT the full record with isPublic=false instead.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"subprocessorSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"subprocessorSlug from the organization or offering URL."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:write","x-api-key-audience":"management"}},"/api/admin/v1/orgs/{orgSlug}":{"get":{"operationId":"getOrganization","tags":["Organization"],"summary":"Read organization profile","description":"Public organization identity and the selected vulnerability-read policy.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Organization"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"},"patch":{"operationId":"updateOrganization","tags":["Organization"],"summary":"Update organization profile","description":"Update only supplied profile fields. Other metadata and vulnerability access policy are preserved. Change the access policy in Settings as an owner or admin.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Organization"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds JSON or file upload limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:write","x-api-key-audience":"management","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationPatch"},"example":{"description":"Our current security practices","website":"https://example.com"}}}}}},"/api/admin/v1/orgs/{orgSlug}/incidents":{"get":{"operationId":"listIncidents","tags":["Incidents"],"summary":"List availability incidents","description":"List published availability incidents, newest activity first. Each incident includes its updates from the opening report through the latest status. Anonymous readers see the same lineage as the trust page.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Incident"}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"},"post":{"operationId":"createIncident","tags":["Incidents"],"summary":"Publish an availability incident","description":"Publish an incident. The body is the opening report and status is its first label; status defaults to open. History is append-only. Repeat the same externalId to receive the existing incident with 200 instead of creating another.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Incident"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds JSON or file upload limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:write","x-api-key-audience":"management","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentOpenInput"},"example":{"title":"Elevated error rate","body":"We are investigating elevated error rates for the public application.","status":"investigating"}}}}}},"/api/admin/v1/orgs/{orgSlug}/incidents/{incidentId}":{"get":{"operationId":"getIncident","tags":["Incidents"],"summary":"Read an availability incident","description":"Read one incident and every update in the order it was published, including status changes.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"incidentId","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"incidentId from the organization or offering URL."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Incident"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"}},"/api/admin/v1/orgs/{orgSlug}/incidents/{incidentId}/updates":{"post":{"operationId":"createIncidentUpdate","tags":["Incidents"],"summary":"Publish an incident update","description":"Append an update to an incident. A new status is published as its own update even when body is empty. Sending the current status with an empty body is rejected. Repeat the same externalId to receive the incident with 200 and leave the lineage unchanged.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"incidentId","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"incidentId from the organization or offering URL."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Incident"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds JSON or file upload limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:write","x-api-key-audience":"management","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentUpdateInput"},"example":{"body":"A fix is rolling out to the application.","status":"fixing"}}}}}},"/api/admin/v1/orgs/{orgSlug}/offerings":{"get":{"operationId":"listOfferings","tags":["Compliance"],"summary":"List offerings","description":"List the organization’s public products and services.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Offering"}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"}},"/api/admin/v1/orgs/{orgSlug}/offerings/{offeringSlug}":{"get":{"operationId":"getOffering","tags":["Compliance"],"summary":"Read an offering","description":"Read product identity and compliance-package metadata.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"offeringSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Offering slug, the path segment after the organization slug."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Offering"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"},"put":{"operationId":"upsertOffering","tags":["Compliance"],"summary":"Create or replace an offering","description":"Upsert by organization and offering slug. Omitted optional fields are reset to their documented defaults. Slugs use up to 60 lowercase letters, numbers, and hyphens.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"offeringSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Offering slug, the path segment after the organization slug."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Offering"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds JSON or file upload limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:write","x-api-key-audience":"management","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferingInput"},"example":{"name":"Cloud platform","description":"Our hosted platform","serviceModel":"SaaS"}}}}}},"/api/admin/v1/orgs/{orgSlug}/offerings/{offeringSlug}/posture":{"get":{"operationId":"listPosture","tags":["Compliance"],"summary":"Read compliance posture","description":"Read all compliance frameworks for the offering, including private frameworks.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"offeringSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Offering slug, the path segment after the organization slug."},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Posture"}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"},"put":{"operationId":"upsertPosture","tags":["Compliance"],"summary":"Publish a framework status","description":"Upsert one framework by its exact name within the offering. Omitted isPublic defaults to true, preserving the existing posture API behavior.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"offeringSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Offering slug, the path segment after the organization slug."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"data":{"$ref":"#/components/schemas/Posture"}},"required":["ok","data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds JSON or file upload limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:write","x-api-key-audience":"management","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostureInput"},"example":{"framework":"SOC 2","status":"certified","scopeSummary":"Production platform","isPublic":true}}}}}},"/api/admin/v1/orgs/{orgSlug}/offerings/{offeringSlug}/resources":{"get":{"operationId":"listResources","tags":["Resources"],"summary":"List accessible resources","description":"List all public, authenticated, and restricted resources for the offering.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"offeringSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Offering slug, the path segment after the organization slug."},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Resource"}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"}},"/api/admin/v1/orgs/{orgSlug}/offerings/{offeringSlug}/resources/{resourceSlug}":{"get":{"operationId":"getResource","tags":["Resources"],"summary":"Read a resource","description":"Read the resource’s content and metadata, subject to its visibility.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"offeringSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Offering slug, the path segment after the organization slug."},{"name":"resourceSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"resourceSlug from the organization or offering URL."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Resource"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"},"put":{"operationId":"upsertResource","tags":["Resources"],"summary":"Publish a resource","description":"Upsert by offering and resource slug. Omitted optional fields reset to defaults. New resources default to restricted visibility; explicitly choose public to publish them anonymously.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"offeringSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Offering slug, the path segment after the organization slug."},{"name":"resourceSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"resourceSlug from the organization or offering URL."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Resource"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds JSON or file upload limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:write","x-api-key-audience":"management","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceInput"},"example":{"title":"Security overview","kind":"page","visibility":"public","body":"We encrypt customer data at rest and in transit."}}}}}},"/api/admin/v1/orgs/{orgSlug}/offerings/{offeringSlug}/vulnerabilities":{"get":{"operationId":"listVulnerabilities","tags":["Vulnerabilities"],"summary":"Read vulnerability findings","description":"Read vulnerability findings. Combine severity, status, source, and inclusive updatedSince filters with AND. Keep filters unchanged across cursor pages.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"offeringSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Offering slug, the path segment after the organization slug."},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}},{"name":"severity","in":"query","required":false,"schema":{"type":"string","enum":["critical","high","medium","low","info","unknown"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["open","in_progress","resolved","accepted_risk","false_positive"]}},{"name":"source","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}},{"name":"updatedSince","in":"query","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)))$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Vulnerability"}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"vulnerabilities:read","x-api-key-audience":"management"},"put":{"operationId":"upsertVulnerabilities","tags":["Vulnerabilities"],"summary":"Push vulnerability findings","description":"Atomically upsert 1–500 findings by (offering, source, externalId). Repeated pushes retain the same OpenTrust finding ID. Each supplied finding replaces its fields; omitted optional fields reset to defaults. Findings absent from a batch are retained. Send status=resolved explicitly to close a finding. Duplicate source/externalId pairs reject the entire batch. Split larger scanner runs into batches of at most 500 findings and 2 MB.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"offeringSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Offering slug, the path segment after the organization slug."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Vulnerability"}}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds JSON or file upload limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"vulnerabilities:write","x-api-key-audience":"management","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VulnerabilityBatch"},"example":{"vulnerabilities":[{"source":"scanner","externalId":"finding-001","title":"Example vulnerability finding","severity":"high","status":"open","componentName":"example-package","componentVersion":"1.0.0"}]}}}}}},"/api/admin/v1/orgs/{orgSlug}/offerings/{offeringSlug}/vulnerabilities/{findingId}":{"get":{"operationId":"getVulnerability","tags":["Vulnerabilities"],"summary":"Read one vulnerability finding","description":"Read one finding by its OpenTrust ID returned by upload or list.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"offeringSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Offering slug, the path segment after the organization slug."},{"name":"findingId","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"OpenTrust finding ID, not a CVE or scanner ID."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Vulnerability"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"vulnerabilities:read","x-api-key-audience":"management"}},"/api/admin/v1/orgs/{orgSlug}/offerings/{offeringSlug}/certification/materials":{"get":{"operationId":"listCertificationMaterials","tags":["Certification"],"summary":"Discover all accessible certification material versions","description":"Paginated published versions with metadata, extracted human-readable text, checksums and original-byte download URLs. Includes retained historical versions. Public materials need no credentials; protected materials require an approved session or content:read key. Never exposes internal knowledge.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"offeringSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Offering slug, the path segment after the organization slug."},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CertificationMaterial"}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"},"post":{"operationId":"publishCertificationMaterial","tags":["Certification"],"summary":"Publish a retained certification material version","description":"Management only. Supply exactly one of body, sourceKnowledgeId, sourceMachineReadableSlug or sourceResourceId in JSON. Copies originals, resource content or exact machine-readable JSON into separately retained storage; external file URLs must be uploaded as originals. Versions cannot be overwritten or deleted. For multipart uploads use slug, version, title, summary, visibility and file (PDF/DOCX/TXT/Markdown, up to 50 MB); practices is a JSON array string. Policy metadata and extracted text share one record. Publishing is explicit; source changes do not silently alter existing versions.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"offeringSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Offering slug, the path segment after the organization slug."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CertificationMaterial"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds JSON or file upload limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:write","x-api-key-audience":"management","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CertificationMaterialInput"},"example":{"slug":"security-policy","version":"1","title":"Security policy","summary":"Current security policy","body":"Policy content"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/CertificationMaterialUpload"}}}}}},"/api/admin/v1/orgs/{orgSlug}/offerings/{offeringSlug}/certification/materials/{materialId}":{"get":{"operationId":"getCertificationMaterial","tags":["Certification"],"summary":"Read a certification material version","description":"Read the published version and policy reference metadata. Authorization is identical for the human-readable page and original download. SHA-256 identifies original bytes.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"offeringSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Offering slug, the path segment after the organization slug."},{"name":"materialId","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"materialId from the organization or offering URL."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CertificationMaterial"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"}},"/api/admin/v1/orgs/{orgSlug}/offerings/{offeringSlug}/certification/materials/{materialId}/download":{"get":{"operationId":"downloadCertificationMaterial","tags":["Certification"],"summary":"Download original certification material bytes","description":"Noninteractive retrieval using the same content:read Bearer key. Verifies stored length and SHA-256 before returning bytes. No redirect to object storage. ETag contains the SHA-256. Revocation is checked on every request.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"offeringSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Offering slug, the path segment after the organization slug."},{"name":"materialId","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"materialId from the organization or offering URL."}],"responses":{"200":{"description":"Success","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"}},"/api/admin/v1/orgs/{orgSlug}/offerings/{offeringSlug}/certification/releases":{"post":{"operationId":"importWeaveRelease","tags":["Certification"],"summary":"Import an immutable native Weave release","description":"Management only. Upload the native .tar.gz as multipart file (64 MB compressed, 128 MB expanded, 5000 files). Verifies the complete manifest and every file hash, rejects unsafe paths/links/duplicates, and atomically retains public/protected originals. Internal snapshot/evidence-source files are verified but never published. Matching organization release routes preserve exact JSON/HTML/PDF/image links and public/protected audiences. Identical manifest retries are safe; conflicting digests fail. Import verifies bytes and does not grant human assurance, certify the offering, or automatically replace the canonical overview.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"offeringSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Offering slug, the path segment after the organization slug."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"kind":{"type":"string","const":"weave_release"},"digest":{"type":"string"},"manifestSha256":{"type":"string"},"archiveSha256":{"type":"string"},"coverage":{"type":"string"},"fileCount":{"type":"number"},"paths":{"type":"array","items":{"type":"string"}},"reused":{"type":"boolean"},"url":{"type":"string"},"integrity":{"type":"string"},"assurance":{"type":"string"}},"required":["kind","digest","manifestSha256","archiveSha256","coverage","fileCount","paths","reused","url","integrity","assurance"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds JSON or file upload limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:write","x-api-key-audience":"management","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/WeaveReleaseUpload"}}}}}},"/api/admin/v1/orgs/{orgSlug}/offerings/{offeringSlug}/certification/snapshots":{"get":{"operationId":"listCertificationSnapshots","tags":["Certification"],"summary":"List ongoing-report snapshots","description":"Approved readers can retrieve immutable report-to-material-version mappings. Follow materialIds through material metadata and original downloads. Historical snapshots remain retained; operators must reconcile package completeness.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"offeringSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Offering slug, the path segment after the organization slug."},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CertificationSnapshot"}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"},"post":{"operationId":"publishCertificationSnapshot","tags":["Certification"],"summary":"Preserve an ongoing-report snapshot","description":"All materialIds must belong to this offering. The report identifier is unique per offering; existing snapshots cannot be replaced or deleted.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"offeringSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Offering slug, the path segment after the organization slug."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/CertificationSnapshot"}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds JSON or file upload limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:write","x-api-key-audience":"management","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CertificationSnapshotInput"},"example":{"reportId":"OCR-2026-10","materialIds":["published-material-id"]}}}}}},"/api/admin/v1/orgs/{orgSlug}/agency-inventory":{"get":{"operationId":"exportAgencyInventory","tags":["Certification"],"summary":"Export current agency access inventory","description":"Management only. Paginate by enrollment ID. Includes verified affiliation, human/system identities, effective account status, credential scopes/status and reasons. API keys and internal hashes are never exported.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"}},"/api/admin/v1/orgs/{orgSlug}/agency-history":{"get":{"operationId":"exportAgencyHistory","tags":["Certification"],"summary":"Export durable agency access history","description":"Management only. Append-only change snapshots survive account, credential and organization deletion. Ordered/paginated by stable event ID, not chronological order; use createdAt for chronology. Migration baselines do not reconstruct earlier history.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"}},"/api/admin/v1/orgs/{orgSlug}/audit-events":{"get":{"operationId":"exportAuditEvents","tags":["Certification"],"summary":"Export individual audit requests","description":"Consumer exports are restricted to the authenticated agency, or the authenticated principal if no agency affiliation is recorded. Caller-supplied agency/principal filters and cursors cannot broaden access. Management exports cover the publishing organization. Returns observed certification access requests, newest first by createdAt and ID. Supports q and outcome filters before pagination. Follow opaque nextCursor until null. prepared means a response was prepared, not received or read. Missing rows do not establish uninterrupted coverage. No credentials, request headers, or payloads are exported.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}},{"name":"q","in":"query","required":false,"schema":{"description":"Case-insensitive search across principal, agency, target, and action; individual events also search request ID.","type":"string","maxLength":200}},{"name":"outcome","in":"query","required":false,"schema":{"type":"string","enum":["prepared","denied","missing","failed"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"agencyId":{"type":["string","null"]},"principalId":{"type":"string"},"credentialId":{"type":["string","null"]},"target":{"type":"string"},"version":{"type":["string","null"]},"action":{"type":"string"},"outcome":{"type":"string","enum":["prepared","denied","missing","failed"]},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"requestId":{"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))$"}},"required":["id","organizationId","agencyId","principalId","credentialId","target","version","action","outcome","status","requestId","createdAt"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"}},"/api/admin/v1/orgs/{orgSlug}/access-summaries":{"get":{"operationId":"exportAccessSummaries","tags":["Certification"],"summary":"Export access summaries","description":"Consumer interface derives agency/account filters from the authenticated identity; request-supplied agency filters cannot broaden access. Management interface exports the organization. Daily UTC summaries are updated atomically on access and retained for at least six calendar months after day end. prepared means a response was prepared, not received or read. Follow nextCursor until null. Missing rows do not prove no gaps.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}},{"name":"q","in":"query","required":false,"schema":{"description":"Case-insensitive search across principal, agency, target, and action; individual events also search request ID.","type":"string","maxLength":200}},{"name":"outcome","in":"query","required":false,"schema":{"type":"string","enum":["prepared","denied","missing","failed"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"nextCursor":{"type":["string","null"]}},"required":["data","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:read","x-api-key-audience":"management"}},"/api/admin/v1/orgs/{orgSlug}/agencies/{companyId}":{"patch":{"operationId":"verifyAgencyAffiliation","tags":["Certification"],"summary":"Record verified agency affiliation","description":"Management only. Record a stable agency identifier and verification evidence/reference for an enrolled organization; changes are preserved in access history. Domain verification alone is not agency verification.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"companyId","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"companyId from the organization or offering URL."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds JSON or file upload limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:write","x-api-key-audience":"management","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgencyAffiliationInput"},"example":{"agencyId":"agency-identifier","verification":"Verified agency relationship, evidence reference"}}}}}},"/api/admin/v1/orgs/{orgSlug}/agency-systems":{"post":{"operationId":"createAgencySystem","tags":["Certification"],"summary":"Register an agency system principal","description":"Management only. Owner must have approved live enrollment and verified agency affiliation. Agency owners can self-manage systems at /account/agency-systems.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds JSON or file upload limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:write","x-api-key-audience":"management","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgencySystemInput"},"example":{"ownerEnrollmentId":"approved-enrollment-id","name":"Agency GRC integration"}}}}}},"/api/admin/v1/orgs/{orgSlug}/agency-systems/{systemId}":{"patch":{"operationId":"updateAgencySystem","tags":["Certification"],"summary":"Enable or disable agency system access","description":"Management only. Disabling immediately rejects subsequent protected requests from all system keys. Keys also depend on live owner enrollment.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"systemId","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"systemId from the organization or offering URL."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request body exceeds JSON or file upload limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Unsupported content type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:write","x-api-key-audience":"management","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgencySystemPatch"},"example":{"disabled":true}}}}}},"/api/admin/v1/orgs/{orgSlug}/agency-systems/{systemId}/keys":{"post":{"operationId":"issueAgencySystemKey","tags":["Certification"],"summary":"Issue a system credential","description":"Management only. Returns a content:read Consumer key once, expiring in 90 days. Existing keys remain active for a controlled rollover; deploy and verify the replacement before revoking the old key in account API-key management.","parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"Organization slug shown on the trust center home page. GET /api/v1/organization returns it for the site-root organization."},{"name":"systemId","in":"path","required":true,"schema":{"type":"string","minLength":1},"description":"systemId from the organization or offering URL."}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"secret":{"type":"string"},"expiresAt":{"type":"string"}},"required":["id","secret","expiresAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"Invalid JSON, fields, or query parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, expired, revoked, invalid, or wrong-organization credentials","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Wrong key audience, insufficient scope, or organization access policy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Organization, offering, or record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"BearerAuth":[]}],"x-api-key-scope":"content:write","x-api-key-audience":"management"}}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"OpenTrust API key","description":"An active organization-issued management key. Required scope is documented in x-api-key-scope; x-api-key-audience identifies the interface. Write permission does not grant read access. Consumer keys are rejected even if their stored scopes include a management permission."}},"schemas":{"WeaveReleaseUpload":{"type":"object","properties":{"file":{"type":"string"}},"required":["file"],"additionalProperties":false},"CertificationMaterialInput":{"type":"object","properties":{"slug":{"type":"string","maxLength":100,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"version":{"type":"string","minLength":1,"maxLength":100},"title":{"type":"string","minLength":1,"maxLength":255},"visibility":{"default":"restricted","type":"string","enum":["public","authenticated","restricted"]},"summary":{"type":"string","minLength":1,"maxLength":5000},"practices":{"default":[],"maxItems":200,"type":"array","items":{"type":"string","maxLength":100}},"sourceKnowledgeId":{"type":"string","minLength":1},"sourceMachineReadableSlug":{"type":"string","minLength":1,"maxLength":100},"sourceResourceId":{"type":"string","minLength":1},"body":{"type":"string","maxLength":1000000}},"required":["slug","version","title","summary"],"additionalProperties":false},"CertificationMaterial":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"offeringId":{"type":"string"},"fedrampId":{"type":"string"},"slug":{"type":"string"},"version":{"type":"string"},"title":{"type":"string"},"visibility":{"type":"string","enum":["public","authenticated","restricted"]},"body":{"type":"string"},"filename":{"type":"string"},"contentType":{"type":"string"},"sha256":{"type":"string"},"byteLength":{"type":"number"},"metadata":{"type":"object","properties":{"summary":{"type":"string"},"wordCount":{"type":"number"},"updatedAt":{"type":"string"},"practices":{"type":"array","items":{"type":"string"}}},"required":["summary","wordCount","updatedAt","practices"],"additionalProperties":false},"createdAt":{"type":"string"},"downloadUrl":{"type":"string"},"url":{"type":"string"}},"required":["id","organizationId","offeringId","fedrampId","slug","version","title","visibility","body","filename","contentType","sha256","byteLength","metadata","createdAt","downloadUrl","url"],"additionalProperties":false},"CertificationMaterialUpload":{"type":"object","properties":{"slug":{"type":"string"},"version":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"},"visibility":{"type":"string","enum":["public","authenticated","restricted"]},"practices":{"type":"string"},"file":{"type":"string"}},"required":["slug","version","title","summary","file"],"additionalProperties":false},"CertificationSnapshotInput":{"type":"object","properties":{"reportId":{"type":"string","minLength":1,"maxLength":255},"materialIds":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"string","minLength":1}}},"required":["reportId","materialIds"],"additionalProperties":false},"CertificationSnapshot":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"offeringId":{"type":"string"},"fedrampId":{"type":"string"},"reportId":{"type":"string"},"materialIds":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"}},"required":["id","organizationId","offeringId","fedrampId","reportId","materialIds","createdAt"],"additionalProperties":false},"AgencyAffiliationInput":{"type":"object","properties":{"agencyId":{"type":"string","minLength":1,"maxLength":200},"verification":{"type":"string","minLength":1,"maxLength":2000}},"required":["agencyId","verification"],"additionalProperties":false},"AgencySystemInput":{"type":"object","properties":{"ownerEnrollmentId":{"type":"string","minLength":1},"name":{"type":"string","minLength":1,"maxLength":200}},"required":["ownerEnrollmentId","name"],"additionalProperties":false},"AgencySystemPatch":{"type":"object","properties":{"disabled":{"type":"boolean"}},"required":["disabled"],"additionalProperties":false},"MachineReadableInput":{"anyOf":[{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":255},"description":{"default":"","type":"string","maxLength":5000},"visibility":{"default":"restricted","type":"string","enum":["public","authenticated","restricted"]},"schemaUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"payload":{}},"required":["title","payload"],"additionalProperties":false},{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":255},"description":{"default":"","type":"string","maxLength":5000},"visibility":{"default":"restricted","type":"string","enum":["public","authenticated","restricted"]},"schemaUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"payloadText":{"type":"string","minLength":1,"maxLength":2097152}},"required":["title","payloadText"],"additionalProperties":false}]},"MachineReadable":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":255},"description":{"default":"","type":"string","maxLength":5000},"visibility":{"default":"restricted","type":"string","enum":["public","authenticated","restricted"]},"schemaUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"id":{"type":"string"},"organizationId":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string"},"payloadUrl":{"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)))$"},"payloadText":{"type":"string"}},"required":["title","description","visibility","schemaUrl","id","organizationId","slug","url","payloadUrl","createdAt","updatedAt","payloadText"],"additionalProperties":false},"MachineReadableSummary":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":255},"description":{"default":"","type":"string","maxLength":5000},"visibility":{"default":"restricted","type":"string","enum":["public","authenticated","restricted"]},"schemaUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"id":{"type":"string"},"organizationId":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string"},"payloadUrl":{"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":["title","description","visibility","schemaUrl","id","organizationId","slug","url","payloadUrl","createdAt","updatedAt"],"additionalProperties":false},"KnowledgeInput":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":255},"category":{"default":"General","type":"string","minLength":1,"maxLength":100},"body":{"default":"","type":"string","maxLength":1000000},"removeFile":{"default":false,"type":"boolean"}},"required":["title"],"additionalProperties":false},"KnowledgeDocument":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":255},"category":{"default":"General","type":"string","minLength":1,"maxLength":100},"body":{"default":"","type":"string","maxLength":1000000},"id":{"type":"string"},"organizationId":{"type":"string"},"originalFilename":{"type":["string","null"]},"contentType":{"type":["string","null"]},"downloadUrl":{"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)))$"},"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":["title","category","body","id","organizationId","originalFilename","contentType","downloadUrl","createdAt","updatedAt"],"additionalProperties":false},"KnowledgeUpload":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":255},"category":{"type":"string","maxLength":100},"file":{"type":"string"}},"required":["title","file"],"additionalProperties":false},"LogoUpload":{"type":"object","properties":{"file":{"type":"string"}},"required":["file"],"additionalProperties":false},"Asset":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"contentType":{"type":"string"}},"required":["id","url","contentType"],"additionalProperties":false},"Subprocessor":{"type":"object","properties":{"catalogId":{"default":null,"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"serviceModel":{"default":"Other","type":"string","enum":["SaaS","PaaS","IaaS","Other"]},"description":{"default":"","type":"string","maxLength":2000},"trustUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"logoAssetId":{"default":null,"anyOf":[{"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)$"},{"type":"null"}]},"name":{"type":"string","minLength":1,"maxLength":255},"purpose":{"type":"string","minLength":1,"maxLength":5000},"website":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"privacyPolicyUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"dataCategories":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":255}},"processingLocations":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":255}},"isPublic":{"default":true,"type":"boolean"},"logoUrl":{"type":["string","null"]},"id":{"type":"string"},"organizationId":{"type":"string"},"slug":{"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":["catalogId","serviceModel","description","trustUrl","logoAssetId","name","purpose","website","privacyPolicyUrl","dataCategories","processingLocations","isPublic","logoUrl","id","organizationId","slug","createdAt","updatedAt"],"additionalProperties":false},"SubprocessorInput":{"type":"object","properties":{"catalogId":{"default":null,"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"serviceModel":{"default":"Other","type":"string","enum":["SaaS","PaaS","IaaS","Other"]},"description":{"default":"","type":"string","maxLength":2000},"trustUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"logoAssetId":{"default":null,"anyOf":[{"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)$"},{"type":"null"}]},"name":{"type":"string","minLength":1,"maxLength":255},"purpose":{"type":"string","minLength":1,"maxLength":5000},"website":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"privacyPolicyUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"dataCategories":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":255}},"processingLocations":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":255}},"isPublic":{"default":true,"type":"boolean"}},"required":["name","purpose"],"additionalProperties":false},"Organization":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"logo":{"type":["string","null"]},"description":{"type":"string"},"website":{"type":"string"},"vulnerabilityAccess":{"type":"string","enum":["approved","authenticated"]}},"required":["id","slug","name","logo","description","website","vulnerabilityAccess"],"additionalProperties":false},"OrganizationPatch":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"description":{"type":"string","maxLength":20000},"website":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"logo":{"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]}},"additionalProperties":false,"minProperties":1},"Incident":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","enum":["open","investigating","fixing","monitoring","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)))$"},"updates":{"type":"array","items":{"$ref":"#/components/schemas/IncidentUpdate"}}},"required":["id","organizationId","title","status","createdAt","updatedAt","updates"],"additionalProperties":false},"IncidentUpdate":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["open","investigating","fixing","monitoring","closed"]},"body":{"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","status","body","createdAt"],"additionalProperties":false},"IncidentOpenInput":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":255},"body":{"type":"string","minLength":1,"maxLength":10000},"status":{"default":"open","type":"string","enum":["open","investigating","fixing","monitoring","closed"]},"externalId":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]}},"required":["title","body"],"additionalProperties":false},"IncidentUpdateInput":{"type":"object","properties":{"body":{"type":"string","maxLength":10000},"status":{"type":"string","enum":["open","investigating","fixing","monitoring","closed"]},"externalId":{"type":"string","minLength":1,"maxLength":200}},"additionalProperties":false},"Offering":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"description":{"default":"","type":"string","maxLength":20000},"serviceModel":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"deploymentModel":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"businessCategory":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"website":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"logoUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"fedrampId":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"uei":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"salesContact":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"securityContact":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"secureConfigUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"nextOcrDate":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"assessor":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"id":{"type":"string"},"organizationId":{"type":"string"},"slug":{"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":["name","description","serviceModel","deploymentModel","businessCategory","website","logoUrl","fedrampId","uei","salesContact","securityContact","secureConfigUrl","nextOcrDate","assessor","id","organizationId","slug","createdAt","updatedAt"],"additionalProperties":false},"OfferingInput":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"description":{"default":"","type":"string","maxLength":20000},"serviceModel":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"deploymentModel":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"businessCategory":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"website":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"logoUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"fedrampId":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"uei":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"salesContact":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"securityContact":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"secureConfigUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2048,"format":"uri"},{"type":"null"}]},"nextOcrDate":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"assessor":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":["name"],"additionalProperties":false},"Posture":{"type":"object","properties":{"logoAssetId":{"default":null,"anyOf":[{"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)$"},{"type":"null"}]},"framework":{"type":"string","minLength":1,"maxLength":255},"status":{"type":"string","enum":["none","in_progress","certified","expired"]},"scopeSummary":{"default":"","type":"string","maxLength":20000},"isPublic":{"default":true,"type":"boolean"},"id":{"type":"string"},"offeringId":{"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":["logoAssetId","framework","status","scopeSummary","isPublic","id","offeringId","updatedAt"],"additionalProperties":false},"PostureInput":{"type":"object","properties":{"logoAssetId":{"default":null,"anyOf":[{"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)$"},{"type":"null"}]},"framework":{"type":"string","minLength":1,"maxLength":255},"status":{"type":"string","enum":["none","in_progress","certified","expired"]},"scopeSummary":{"default":"","type":"string","maxLength":20000},"isPublic":{"default":true,"type":"boolean"}},"required":["framework","status"],"additionalProperties":false},"Resource":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":255},"kind":{"type":"string","enum":["page","file","link","manifest"]},"visibility":{"default":"restricted","type":"string","enum":["public","authenticated","restricted"]},"body":{"default":null,"anyOf":[{"type":"string","maxLength":1000000},{"type":"null"}]},"jsonBody":{"default":null,"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"schemaId":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"id":{"type":"string"},"offeringId":{"type":"string"},"slug":{"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":["title","kind","visibility","body","jsonBody","schemaId","id","offeringId","slug","updatedAt"],"additionalProperties":false},"ResourceInput":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":255},"kind":{"type":"string","enum":["page","file","link","manifest"]},"visibility":{"default":"restricted","type":"string","enum":["public","authenticated","restricted"]},"body":{"default":null,"anyOf":[{"type":"string","maxLength":1000000},{"type":"null"}]},"jsonBody":{"default":null,"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"schemaId":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":["title","kind"],"additionalProperties":false},"Vulnerability":{"type":"object","properties":{"source":{"type":"string","minLength":1,"maxLength":255,"description":"Stable scanner or integration name, such as trivy, elastic, or manual."},"externalId":{"type":"string","minLength":1,"maxLength":512,"description":"Stable finding ID within the source. Include component identity when a CVE affects multiple packages."},"vulnerabilityId":{"default":null,"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"description":"CVE, GHSA, or another advisory identifier."},"title":{"type":"string","minLength":1,"maxLength":255},"description":{"default":"","type":"string","maxLength":50000},"severity":{"type":"string","enum":["critical","high","medium","low","info","unknown"]},"status":{"default":"open","type":"string","enum":["open","in_progress","resolved","accepted_risk","false_positive"]},"componentName":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"componentVersion":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"packageUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"fixedVersion":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"cvssScore":{"default":null,"anyOf":[{"type":"number","minimum":0,"maximum":10},{"type":"null"}]},"references":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","maxLength":2048,"format":"uri"}},"discoveredAt":{"default":null,"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"}]},"resolvedAt":{"default":null,"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"}]},"id":{"type":"string"},"offeringId":{"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":["source","externalId","vulnerabilityId","title","description","severity","status","componentName","componentVersion","packageUrl","fixedVersion","cvssScore","references","discoveredAt","resolvedAt","id","offeringId","createdAt","updatedAt"],"additionalProperties":false},"VulnerabilityInput":{"type":"object","properties":{"source":{"type":"string","minLength":1,"maxLength":255,"description":"Stable scanner or integration name, such as trivy, elastic, or manual."},"externalId":{"type":"string","minLength":1,"maxLength":512,"description":"Stable finding ID within the source. Include component identity when a CVE affects multiple packages."},"vulnerabilityId":{"default":null,"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"description":"CVE, GHSA, or another advisory identifier."},"title":{"type":"string","minLength":1,"maxLength":255},"description":{"default":"","type":"string","maxLength":50000},"severity":{"type":"string","enum":["critical","high","medium","low","info","unknown"]},"status":{"default":"open","type":"string","enum":["open","in_progress","resolved","accepted_risk","false_positive"]},"componentName":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"componentVersion":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"packageUrl":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"fixedVersion":{"default":null,"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"cvssScore":{"default":null,"anyOf":[{"type":"number","minimum":0,"maximum":10},{"type":"null"}]},"references":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","maxLength":2048,"format":"uri"}},"discoveredAt":{"default":null,"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"}]},"resolvedAt":{"default":null,"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"}]}},"required":["source","externalId","title","severity"],"additionalProperties":false},"VulnerabilityBatch":{"type":"object","properties":{"vulnerabilities":{"minItems":1,"maxItems":500,"type":"array","items":{"$ref":"#/components/schemas/VulnerabilityInput"}}},"required":["vulnerabilities"],"additionalProperties":false},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}