Trust Portal

Upload an additional trust portal document

Stores a document in the organization assets bucket and registers it for the trust portal.

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"
}

Changes