Get Chat
GET
/v1/chats/{chat_id}
const url = 'https://api.cloud.agentums.ru/v1/chats/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.cloud.agentums.ru/v1/chats/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Сессия целиком: реплики по порядку, закреплённость, проект и вид сессии.
Authorizations
Заголовок раздела «Authorizations»Parameters
Заголовок раздела «Parameters»Path Parameters
Заголовок раздела «Path Parameters»chat_id
required
Chat Id
string format: uuid
Responses
Заголовок раздела «Responses»Successful Response
Media typeapplication/json
ChatDetail
object
created_at
required
Created At
string format: date-time
id
required
Id
string format: uuid
kind
Kind
string
messages
Messages
Array<object>
ChatMessageOutobject
attachments
Attachments
Array<object>
ChatAttachmentOutФайл, приложенный пользователем к сообщению. filename — снимок на момент вопроса:
файл могли переименовать или удалить, а показать нужно то, с чем шёл разговор.
object
filename
Filename
string
object_id
required
Object Id
string format: uuid
citations
Citations
Array<object>
AskCitationobject
char_end
Char End
integer
char_start
Char Start
integer
doc_type
Doc Type
string
filename
Filename
string
index
Index
integer
object_id
required
Object Id
string format: uuid
ord
required
Ord
integer
snippet
Snippet
string
title
Title
string
content
required
Content
string
created_at
required
Created At
string format: date-time
id
required
Id
string format: uuid
objects
Any of:
Array<object>
ChatAttachmentOutФайл, приложенный пользователем к сообщению. filename — снимок на момент вопроса:
файл могли переименовать или удалить, а показать нужно то, с чем шёл разговор.
object
filename
Filename
string
object_id
required
Object Id
string format: uuid
null
role
required
Role
string
steps
Any of:
Array<object>
object
key
additional properties
any
null
pinned
Pinned
boolean
title
required
Title
string
updated_at
required
Updated At
string format: date-time
Example
{ "kind": "ask", "messages": [ { "attachments": [ { "filename": "" } ], "citations": [ { "char_end": 0, "char_start": 0, "doc_type": "", "filename": "", "index": 0, "snippet": "", "title": "" } ], "objects": [ { "filename": "" } ] } ], "pinned": false}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}