API Reference / Cognis - Threads

Delete thread

delete 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: deleteThread

Permanently deletes a Cognis thread and all its associated messages.

Example request

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

Path parameters

NameTypeRequiredDescription
threadId integer (int64) yes

Response 204

application/json · object

No body.

Status codes

  • 204 — Thread deleted 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.