How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Cognite Streams API

Use the streams and records API to build high-volume extensions to industrial knowledge graphs that are built with [Data Modeling](https://docs.cognite.com/cdf/dm).The streams API lets you manage the streams that are used for storing records.With the API you can create, list, retrieve, and delete streams, and view stream settings and statistics.A stream defines the data lifecycle,and not schema, type or source. Multiple different sets of data which havenothing in common can be put into the same stream, provided that settings of this streamfit lifecycle and usage patterns (volume, rate, etc) of the data involved.Streams can be either mutable or immutable, which affects how records can be modified,storage capacity limits, and query performance characteristics.Mutable streams allow records to be updated and deleted by the user. They provideconsistent low-latency access and optimal query performance.However, the total number of records that can be stored is limited. Mutable streams arewell-suited for use cases requiring frequent data access and updates.Immutable streams do not allow records to be updated or deleted by the user, but supportingestion of very large amounts of data. Query performance may vary depending on the ageof the data being accessed, as the system optimizes storage over time.To delete all data in a stream, the stream itself should be deleted. To protect against irretrievable erroneous deletion,streams are 'soft deleted' allowing them to be recovered for up to 6 weeks after the time of deletion.The template used to create the stream determines the actual recovery time.A single project has a limited number of soft deleted streams at any given time. To avoid hitting this limit, pleaseavoid using any pattern of create and delete streams in a high frequency.Please note that we expect streams to be long lived. The exception are streams createdwith one of the `test` templates. Deleting a stream can take a long time.How long depends on the stream settings and the volume of data stored.While a stream is soft deleted, it is not possible to recreate a stream with the same identifier as the deleted stream.Once a stream is deleted, it does not count as one of the active streams, and more streams can becreated to serve as active streams. If a stream is accidentally deleted, it is possible to recoverthe data by contacting [Cognite Support](https://cognite.zendesk.com/hc/en-us/requests/new).You must contact Cognite no less than 1 week prior to the expiration of the stream retention periodto ensure we can recover the data.## Available stream templates**Note: Stream Templates are in Beta**The current Stream Templates are in beta. This means:- New templates may be added based on customer needs- Existing templates may be modified or removed if necessary- Such modifications will **not affect existing streams** created from these templatesChoose your template carefully for production use, as templates cannot be changed after stream creation.This section lists all currently available templates that can be used for creating streams.### Immutable streams#### ImmutableTestStreamThis template should be used exclusively for experimentation. It is configured for high throughputand total data volume, but has a short data retention period. Low retention in a soft-deleted statemeans that such streams can be quickly discarded when no longer needed or recreated to remove the experimental data.**Note:** This template should never be used for production purposes. As this templateallows significant load on the system, if we detect improper usagepatterns, we can change setting of streams created from this template as a last resort.- Maximum total number of records - 50 M (50,000,000)- Maximum total data volume - 50 GB- Data retention - 7 days- Maximum ingestion throughput (per 10 minutes) - 1.5 GB- Maximum reading throughput (per 10 minutes) - 1.5 GB- Maximum records ingested (per 10 minutes) - 800,000 items- Maximum unique properties with data across all records - 1000- Maximum range filter interval for the `lastUpdatedTime` property - 7 days- Stream soft-delete retention (before hard delete) - 1 day- Maximum active streams per project - 3#### BasicArchiveThis template is intended for perpetual storage of data. However, overall data volumeis limited, which needs to be taken into account when planning usage.- Maximum total number of records - 50 M (50,000,000)- Maximum total data volume - 50 GB- Data retention - Unlimited (data never gets deleted)- Maximum ingestion throughput (per 10 minutes) - 170 MB- Maximum reading throughput (per 10 minutes) - 1.7 GB- Maximum records ingested (per 10 minutes) - 170,000 items- Maximum unique properties with data (across all records) - 1000- Maximum range filter interval for the `lastUpdatedTime` property - 365 days- Stream soft-delete retention (before hard delete) - 6 weeks- Maximum active streams per project - 2### Mutable streams#### BasicLiveDataThis template is intended for production usage and offers significant data volumeand throughput.- Maximum total number of records - 5 M (5,000,000)- Maximum total data volume - 15 GB- Maximum ingestion throughput (per 10 minutes) - 170 MB- Maximum reading throughput (per 10 minutes) - 500 MB- Maximum records ingested (per 10 minutes) - 170,000 items- Maximum records updated or deleted (per 10 minutes) - 85,000 items- Maximum unique properties with data (across all records) - 1000- Stream soft-delete retention (before hard delete) - 6 weeks- Maximum active streams per project - 1## Rate and concurrency limitsBoth the rate of requests (denoted as request per second (‘**rps**’)) and the number of concurrent (parallel)requests are governed by limits, for all CDF API endpoints. If a request exceeds one of the limits,it will be throttled with a `429: Too Many Requests` response.See [Resource throttling](https://docs.cognite.com/dev/concepts/resource_throttling) for limit types and how to avoid throttling.As streams are intended to be long-lived, users are not expected to interact with these endpoints frequently.The version limits for the streams endpoints are illustrated in the tables below.These limits are subject to change, pending review of changing consumption patterns and resource availability over time: Create and Delete request budget Overall Per ID Requests per second 2 1 Concurrent requests 1 1 Retrieve and List request budget Overall Per ID Requests per second 5 3 Concurrent requests 3 2

Cognite Streams API is one of 90 APIs that Cognite publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Streams. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 5 operations across 3 paths, and defines 14 schemas. It is described by OpenAPI 3.2.0, at version v1.

Requests are made against a single base URL, https://{cluster}.cognitedata.com/api/v1/projects/{project}.

5 operations 3 paths 14 schemas 1 DELETE2 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
v1
Base URL
https://api.cognitedata.com
Authentication
HTTP Bearer, OAuth 2.0, OAuth 2.0, OAuth 2.0, OpenID Connect
Resource Areas
1

Authentication & Security 5

Cognite Streams API declares 5 security schemes for authenticating requests. It accepts HTTP bearer tokens (OpenID Connect or OAuth2 token) (oidc-token). It supports OAuth 2.0 (oauth2-client-credentials) using the clientCredentials flow, exposing 1 scope. It supports OAuth 2.0 (oauth2-auth-code) using the authorizationCode flow, exposing 1 scope. It supports OAuth 2.0 (oauth2-open-industrial-data) using the clientCredentials flow, exposing 1 scope. It supports OpenID Connect (org-oidc-token) discovered at https://auth.cognite.com/.well-known/openid-configuration. By default, every request must be authenticated.

  • oidc-token — 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 acce…
  • oauth2-client-credentials — 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 acce…
  • oauth2-auth-code — 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 acce…
  • oauth2-open-industrial-data — Auth flow for Open Industrial Data. Get your client secret from https://hub.cognite.com/open-industrial-data-211.
  • org-oidc-token — Access token issued by the Cognite authorization server, and valid for the target organization. The token must be an OpenID Connect token, and it can be obtain…

Paths & Operations 5

Across 3 paths, the API surfaces 5 operations — 1 DELETE, 2 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.

Streams 5

Use the streams and records API to build high-volume extensions to industrial knowledge graphs that are built with [Data Modeling](https://docs.cognite.com/cdf/dm). The streams AP…

POST
/streams
Create stream
createStream body → 201400409
GET
/streams
List streams
listStreams → 200400
GET
/streams/{streamId}
Retrieve stream
getStream 2 params → 200400
DELETE
/streams/{streamId}deprecated
Delete stream (DEPRECATED)
deleteStream 1 param → 410
POST
/streams/delete
Delete stream
deleteStreams body → 200400

Schemas 14

The contract defines 14 schemas that model the data the API accepts and returns. The most detailed are StreamResponseItem (5 properties), Error (4 properties), StreamLimitSettings (3 properties), StreamRequestItem (2 properties). Each schema is shown below with its type and property counts.

StreamLimit
object
2 properties 1 required
StreamResponseItem
object
Stream object.
5 properties 5 required
Error
object
Cognite API error.
4 properties 2 required
StreamLimitSettings
object
Limits and usage.
3 properties 2 required
StreamCreateConflict
object
1 property 1 required
StreamResponseItemSettings
object
Stream settings.
2 properties 2 required
StreamDeleteRequest
object
Request to delete a stream.
1 property 1 required
StreamLifecycleSettings
object
Data lifecycle settings. These settings are populated from the stream creation template and there is no easy way to change them. This information is meant to b…
2 properties 1 required
StreamDeleteItem
object
Stream identifier to delete.
1 property 1 required
StreamRequestItem
object
Stream object.
2 properties 2 required
StreamCreateConflictItem
object
Stream creation conflict info.
1 property 1 required
StreamResponse
object
Stream response.
1 property 1 required
EpochTimestamp
integer
The number of milliseconds since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds.
CreateStreamSettings
object
Stream settings which should be applied to a stream.
1 property 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

cognite-streams-api-openapi.yml Raw ↑

Other APIs Cognite publishes across the network.

Cognite Data Fusion API
Cognite 3D Asset Mapping API
Cognite 3D Files API
Cognite 3D Jobs API
Cognite 3D Model Revisions API
Cognite 3D Models API
Cognite Annotations API
Cognite Assets API
Cognite Connections API
Cognite Containers API
Cognite Data models API
Cognite Data point subscriptions API
Where this information came from

This is an independent, third-party profile of Cognite Streams API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.