# Cognite Document preview API

**Canonical:** https://apis.io/apis/cognite/cognite-document-preview-api/  
**Provider:** Cognite — https://apis.io/providers/cognite/  
**Base URL:** https://api.cognitedata.com  
**Documentation:** https://api-docs.cognite.com/

Cognite Document preview API is one of 90 APIs that [Cognite](https://apis.io/providers/cognite/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Document preview. The published artifact set on APIs.io includes an OpenAPI specification.

The document preview service is a utility API that can render most document types as an image or PDF. This can be very helpful if you want to display a preview of a file in a frontend, or for other tasks that require one of these formats. For both rendered formats there is a concept of a page. The actual meaning of a page depends on the source document. E.g. an image will always have exactly one page, while a spreadsheet will typically have one page representing each individual sheet. The document preview service can only generate preview for document sizes that do not exceed 150 MiB. Trying to preview a larger document will give an error. ### File type support Previews can be created for the following types of files: - PDF files - Spreadsheets, documents and presentations from the Microsoft and Libre Office office suites - Images

## Machine-readable artifacts (1)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/cognite/refs/heads/main/openapi/cognite-document-preview-api-openapi.yml

## Other Cognite APIs (12)

- [Cognite Data Fusion API](https://apis.io/apis/cognite/cognite-data-fusion-api/)
- [Cognite 3D Asset Mapping API](https://apis.io/apis/cognite/cognite-3d-asset-mapping-api/)
- [Cognite 3D Files API](https://apis.io/apis/cognite/cognite-3d-files-api/)
- [Cognite 3D Jobs API](https://apis.io/apis/cognite/cognite-3d-jobs-api/)
- [Cognite 3D Model Revisions API](https://apis.io/apis/cognite/cognite-3d-model-revisions-api/)
- [Cognite 3D Models API](https://apis.io/apis/cognite/cognite-3d-models-api/)
- [Cognite Annotations API](https://apis.io/apis/cognite/cognite-annotations-api/)
- [Cognite Assets API](https://apis.io/apis/cognite/cognite-assets-api/)
- [Cognite Connections API](https://apis.io/apis/cognite/cognite-connections-api/)
- [Cognite Containers API](https://apis.io/apis/cognite/cognite-containers-api/)
- [Cognite Data models API](https://apis.io/apis/cognite/cognite-data-models-api/)
- [Cognite Data point subscriptions API](https://apis.io/apis/cognite/cognite-data-point-subscriptions-api/)

## Tags

Document preview

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/cognite/cognite-document-preview-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/cognite/.
