Skip to main content
POST
Retrieve document content

Authorizations

Authorization
string
header
required

Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.

Scopes

https://{cluster}.cognitedata.com/.default
oidc-token
https://{cluster}.cognitedata.com/.default
oauth2-client-credentials
https://api.cognitedata.com/.default
oauth2-open-industrial-data
https://{cluster}.cognitedata.com/.default
oauth2-auth-code

Body

application/json

Fields to be set for the content request.

Deprecated. Identify the document by instanceId instead.

id
integer<int64>
required
deprecated

Deprecated. Use instanceId instead. The Documents API will only support files that have an instance ID (CogniteFile).

Required range: 1 <= x <= 9007199254740991

Response

OK

The textual content of the document, truncated to the first 1MB of text

Example:

"ACT I\nSCENE I. Elsinore. A platform before the castle.\n FRANCISCO at his post. Enter to him BERNARDO\nBERNARDO\n Who's there?\n"