Get all private documents

Get all the policies, compliance and security reports private documents. This endpoint is only available on Trust Center Pro.

Securitybearer
Request
query Parameters
q
string <= 100 characters

Filter private documents by searching for name

Example: q=Report 01
workspaceId
number >= 1

ID of the workspace

Example: workspaceId=1
Responses
200

Successful

401

Invalid Authorization

402

You must upgrade your plan to use this feature

403

You are not allowed to perform this action

412

You must accept the Drata terms and conditions to use the API

500

Internal server error

get/trust-center/private-documents
Request samples
Response samples
application/json
{
  • "privateDocuments": [
    • {
      • "id": 0,
      • "name": "string",
      • "type": "COMPLIANCE",
      • "file": "string",
      • "created_at": "2019-08-24T14:15:22Z",
      • "version": 0,
      • "isPublic": true
      }
    ]
}