v56

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-014121451.1 MB
Trust Portal

Upload an additional trust portal document

Upload an additional trust portal document in Comp AI. Configure the live Trust Center, custom domain, public overview, FAQs, compliance resources, documents, links, and vendor disclosures.

post/v1/trust-portal/documents/upload

Request body

organizationIdstring required

Organization ID that owns the document

fileNamestring required

Original file name

fileTypestring

MIME type (optional)

fileDatastring required

Base64-encoded file contents (no data URL prefix)

descriptionstring

Optional description shown in the trust portal

Example request

{
  "organizationId": "org_6914cd0e16e4c7dccbb54426",
  "fileName": "security-overview.pdf",
  "fileType": "application/pdf",
  "description": "Overview of our security program"
}

Response

Document uploaded successfully

idstring required
namestring required
descriptionobject
createdAtstring required
updatedAtstring required

Example response

{
  "id": "tdoc_abc123",
  "name": "security-overview.pdf",
  "createdAt": "2026-01-02T10:15:00.000Z",
  "updatedAt": "2026-01-02T10:15:00.000Z"
}