API Reference / Cognis - Threads

Get thread by ID

get https://api.intelig.ai/api/v1/intelig/cognis/threads/{threadId}

Auth: Authorization: ApiKey <key> (an API key sent as Bearer is rejected) or Authorization: Bearer <jwt> for a dashboard session. operationId: getThread

Retrieves a single Cognis thread including its full message history.

Example request

curl -X GET "https://api.intelig.ai/api/v1/intelig/cognis/threads/1" \
  -H "Authorization: ApiKey $INTELIG_API_KEY"

Path parameters

NameTypeRequiredDescription
threadId integer (int64) yes

Response 200

application/json · CognisThreadDto

FieldTypeDescription
id string Unique thread identifier
scope CognisScopeDto Scope context for a Cognis thread
title string Thread title
createdAt string (date-time) Timestamp when thread was created
updatedAt string (date-time) Timestamp when thread was last updated
messageCount integer (int32) Total number of messages in the thread
lastMessage string Preview of the last message content
messages CognisMessageDto[] All messages in the thread

Status codes

  • 200 — Thread returned successfully
  • 401 — Not authenticated
  • 403 — Insufficient permissions for Cognis pillar
  • 404 — Thread not found
  • 429 — —

Every response is wrapped in { success, message, data }. A 4xx means the request is wrong — do not retry it unchanged. A 429 carries Retry-After in seconds.