OpenAPI downloads
You can download the OpenAPI specification as JSON to quickly get started with API exploration and testing:
Request URLs
CDF exposes a RESTful API. Requests use a URL of this form:{version}— Path API version (stable REST APIs usev1). See API versions.{project}— Project identifier for the resources you are accessing.{resource}— Resource type (for exampleassets,files,events). Add query parameters or path segments as documented for each endpoint.
API versions
All stable Cognite REST APIs use thev1 path prefix. Within v1, behavior is pinned with calendar versions: dates in the form YYYYMMDD passed in the Cdf-Version request header.
To request a specific calendar version, set:
Cdf-Version: 20230205 selects API behavior as released on that date or earlier.
If you omit Cdf-Version, requests default to calendar version 20230101, so existing clients keep working as new versions are released.
Breaking changes are shipped as new calendar versions; non-breaking changes apply across the API. For deprecation policy (including support for older versions after they are marked deprecated), removed legacy API versions, and detailed rules for backwards-compatible vs breaking changes, see API versions.
Beta versions
Beta versions preview upcoming stable features. Request them with theCdf-Version header using a date and the -beta suffix (for example, Cdf-Version: 20230205-beta). See API versions for SDK support and lifecycle.
Alpha versions
Using the Cognite API with Postman
Download the OpenAPI specification
Use the JSON download links in OpenAPI downloads above.
Import into Postman
Open Postman and select Import. In the Import dialog box, drag and drop the downloaded file or folder, or use the file picker.
Configure import settings
In View Import Settings:
- Set Folder organization to Tags
- Turn off Enable optional parameters
- Turn on Always inherit authentication Select Import to complete the process.
Set up authentication
Set the Authorization type to Oauth2.0. By default, settings are for Open Industrial Data. Visit Cognite Hub to obtain credentials for use in Postman.
Open Industrial Data is a public Cognite Data Fusion project with sample industrial data. You can use it to explore the API without your own CDF project or identity provider administrator access. For an overview, see What is Open Industrial Data? on Cognite Hub.
Pagination
Most resource types support pagination, indicated by the
nextCursor field in the response.
For more detail on paging, see Paging.
Parallel retrieval
Parallel retrieval improves performance for complex queries by splitting data requests into multiple partitions.
Choose partition count
Decide how many partitions (
n) to split the data set into (maximum 10 recommended).Make parallel requests
For each partition
m (from 1 to n), make a request to the endpoint (for example, /events) with the parameter partition=m/n.For more details, see the
partition attribute documentation for the specific CDF resource.Request throttling
If you exceed your project’s request capacity, CDF returns an HTTP429 (Too Many Requests) status code. For rate and concurrency limits per API, throttling causes, and best practices for retry strategies, see API rate limits.