Skip to main content
POST
/
streams
Create stream
curl --request POST \
  --url https://{cluster}.cognitedata.com/api/v1/projects/{project}/streams \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    "<unknown>"
  ]
}
'
{
  "items": [
    {
      "externalId": "test1",
      "createdTime": 1730204346000,
      "createdFromTemplate": "ImmutableTestStream",
      "type": "Immutable",
      "settings": {
        "lifecycle": {
          "retainedAfterSoftDelete": "P42D",
          "dataDeletedAfter": "P1Y"
        },
        "limits": {
          "maxRecordsTotal": {
            "provisioned": 1000,
            "consumed": 999
          },
          "maxGigaBytesTotal": {
            "provisioned": 1000,
            "consumed": 999
          },
          "maxFilteringInterval": "P1Y"
        }
      }
    }
  ]
}

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.

Body

application/json

Stream to create.

items
any[]
required

List of streams.

Response

Stream created.

Stream response.

items
streamItem · object[]
required

List of streams.

Last modified on April 23, 2026