List content library documents
Changed onReturns a paginated list of documents in the organization's content library.
Results are paginated. Use the page_size parameter to control how many results are returned per page. Use the next_page_token from the response to retrieve subsequent pages.
Required API key permissions: TrustExchange (select when creating API key in Account Settings)
Request
- Base URLhttps://cyber-risk.upguard.com/api/public
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
The number of results to return per page. Valid values range from 1 to 100. Defaults to 10 if not specified.
Token to retrieve a specific page of results. Omit to retrieve the first page. Use the next_page_token from the previous response to get the next page.
Filter documents by name (substring match, case-insensitive).
Filter documents by document type names (set this param multiple times to specify multiple types).
Filter to only documents added to any Trust Center.
Set to true to retrieve archived documents. By default, only non-archived documents are returned.
Response
List of content library documents.
Example response
{
"documents": [
{
"created_at": "2024-03-20T15:30:00Z",
"created_by_email": "jane@example.com",
"created_by_name": "Jane Smith",
"description": "Our latest SOC 2 Type II report covering the period...",
"document_type": "SOC 2 Report",
"internal_notes": "Document awaiting update...",
"name": "Q4 2024 SOC 2 Report",
"updated_at": "2024-03-20T15:30:00Z",
"updated_by_email": "john@example.com",
"updated_by_name": "John Doe",
"usage_count": 5,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"versions": [
{
"created_at": "2024-03-20T15:30:00Z",
"filename": "soc2_report_q4_2024.pdf",
"version": 3,
"virus_safe": true
}
]
}
]
}Changes
- info
endpoint added
- info