Skip to main content
GET
/
v1
/
chat
/
sessions
/
{id}
Get chat session
curl --request GET \
  --url http://co-mind-platform-host/v1/chat/sessions/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "session_xyz789",
  "object": "chat.session",
  "name": "Q&A about Product Docs",
  "knowledgebase_ids": [
    "<string>"
  ],
  "model": "gpt-4o-mini",
  "temperature": 123,
  "system_message": "<string>",
  "created_at": 1699564800,
  "updated_at": 1699564900,
  "message_count": 10
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Supports two token types:

  • JWT Access Token — obtained via POST /v1/auth/login
  • Personal Access Token (PAT) — created via POST /v1/api-tokens, format: cmnd_<tokenId>.<secret>

Path Parameters

id
string
required

The session ID

Response

Session details

id
string
Example:

"session_xyz789"

object
string
Example:

"chat.session"

name
string
Example:

"Q&A about Product Docs"

knowledgebase_ids
string[]
model
string
Example:

"gpt-4o-mini"

temperature
number
system_message
string
created_at
integer

Unix timestamp

Example:

1699564800

updated_at
integer

Unix timestamp

Example:

1699564900

message_count
integer
Example:

10