Skip to main content
POST
/
sessions
Create sessions
curl --request POST \
  --url https://{cluster}.cognitedata.com/api/v1/projects/{project}/sessions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    {
      "clientId": "<string>",
      "clientSecret": "<string>"
    }
  ]
}
'
{
  "items": [
    {
      "id": 123,
      "status": "READY",
      "nonce": "<string>",
      "type": "CLIENT_CREDENTIALS",
      "clientId": "<string>"
    }
  ]
}

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

A request containing the information needed to create a session.

items
object[]
Required array length: 1 element

Response

List of session creation related information

items
object[]
Last modified on April 23, 2026