Skip to main content
POST
/
ai
/
agents
Add or update Atlas AI agents
curl --request POST \
  --url https://{cluster}.cognitedata.com/api/v1/projects/{project}/ai/agents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    {
      "externalId": "<string>",
      "name": "<string>",
      "description": "<string>",
      "instructions": "<string>",
      "model": "azure/gpt-4.1-mini",
      "runtimeVersion": "<string>",
      "tools": []
    }
  ]
}
'
{
  "items": [
    {
      "createdTime": 123,
      "externalId": "<string>",
      "lastUpdatedTime": 123,
      "name": "<string>",
      "ownerId": "<string>",
      "runtimeVersion": "<string>",
      "description": "<string>",
      "instructions": "<string>",
      "model": "azure/gpt-4.1-mini",
      "tools": []
    }
  ]
}

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
items
AgentCreationRequestItem · object[]
required

A list of agents to create or update.

Required array length: 1 element

Response

Successful Response

items
AgentCreationResponseItem · object[]
required

A list of created agents.

Last modified on April 23, 2026