Skip to main content

Quick Start

Get up and running with the API Gateway V2 in minutes.

1. Generate Your API Token

  1. Log in to the Cogniteam Cloud Platform
  2. Click your profile icon in the top-right corner and open Settings
  3. Find the API Token section and click Generate
  4. Copy the token immediately — it will not be shown again

API Token

2. Exchange for a Bearer Token

Send your API token to the login endpoint to receive a bearer token:

curl -X POST https://api.cognimbus.com/apigateway/v2/auth/login \
-H "Content-Type: application/json" \
-d '{"userToken": "your_api_token_here"}'

Response:

{
"token": "bearer your_bearer_token_here"
}

3. Make Authenticated Requests

Include the bearer token in the Authorization header of every subsequent request:

curl https://api.cognimbus.com/apigateway/v2/robots \
-H "authorization: bearer your_bearer_token_here"
tip

The bearer token may expire. If you receive a 401 Unauthorized response, repeat Step 2 to obtain a new token.