Chat
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/chat-messages/ |
List Chat Messages |
| GET | /api/chat-sessions/current/ |
Get or create current user's chat session |
| GET | /api/chat-sessions/ |
List Chat Sessions |
| GET | /api/chat-sessions/{uuid}/ |
Retrieve |
| GET | /api/chat-threads/ |
List Chat Threads |
| GET | /api/chat-threads/{uuid}/ |
Retrieve |
| POST | /api/chat/stream/ |
Stream |
| POST | /api/chat-threads/{uuid}/archive/ |
Archive thread |
| POST | /api/chat-threads/{uuid}/unarchive/ |
Unarchive thread |
List Chat Messages
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 | |
- API Source:
chat_messages_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type |
|---|---|
include_history |
boolean |
is_flagged |
boolean |
thread |
string (uuid) |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type |
|---|---|
uuid |
string (uuid) |
thread |
string (uuid) |
role |
any |
content |
string |
sequence_index |
integer |
replaces |
string (uuid) |
created |
string (date-time) |
is_flagged |
boolean |
severity |
any |
injection_categories |
any |
pii_categories |
any |
action_taken |
any |
Get or create current user's chat session
Returns the current user's chat session, creating it if it doesn't exist.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 | |
- API Source:
chat_sessions_current_retrieve
1 2 3 4 5 6 7 8 9 10 | |
200 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
user |
string (uuid) |
user_username |
string |
user_full_name |
string |
created |
string (date-time) |
modified |
string (date-time) |
List Chat Sessions
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 | |
- Model Source:
ChatSessionFieldEnum - API Source:
chat_sessions_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
field |
array | |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type |
|---|---|
uuid |
string (uuid) |
user |
string (uuid) |
user_username |
string |
user_full_name |
string |
created |
string (date-time) |
modified |
string (date-time) |
Retrieve
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
- Model Source:
ChatSessionFieldEnum - API Source:
chat_sessions_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Name | Type |
|---|---|
field |
array |
200 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
user |
string (uuid) |
user_username |
string |
user_full_name |
string |
created |
string (date-time) |
modified |
string (date-time) |
List Chat Threads
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
- Model Source:
InjectionSeverityEnum - Model Source:
ThreadSessionFieldEnum - Model Source:
ThreadSessionOEnum - API Source:
chat_threads_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
created |
string (date) | |
field |
array | |
is_archived |
boolean | |
is_flagged |
boolean | |
max_severity |
string | Enum: none, low, medium, high, critical |
modified |
string (date) | |
o |
array | Ordering |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
query |
string | |
user |
string (uuid) |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type |
|---|---|
uuid |
string (uuid) |
name |
string |
chat_session |
string (uuid) |
flags |
any |
is_archived |
boolean |
message_count |
integer |
is_flagged |
boolean |
max_severity |
any |
user_username |
string |
user_full_name |
string |
created |
string (date-time) |
modified |
string (date-time) |
Retrieve
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
- Model Source:
ThreadSessionFieldEnum - API Source:
chat_threads_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Name | Type |
|---|---|
field |
array |
200 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
name |
string |
chat_session |
string (uuid) |
flags |
any |
is_archived |
boolean |
message_count |
integer |
is_flagged |
boolean |
max_severity |
any |
user_username |
string |
user_full_name |
string |
created |
string (date-time) |
modified |
string (date-time) |
Stream
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
- Model Source:
ChatRequestRequest - API Source:
chat_stream
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Field | Type | Required | Description |
|---|---|---|---|
input |
string | ✓ | User input text for the chat model. |
thread_uuid |
string (uuid) | Existing thread UUID. If omitted, a new thread is created. | |
mode |
any | 'reload': replace the last assistant response. 'edit': edit a user message and re-stream. Omit for normal new-message behavior. | |
edit_message_uuid |
string (uuid) | UUID of the user message to edit. Required when mode='edit'. |
200 -
Archive thread
Archive a thread (soft delete).
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
- Model Source:
ThreadSessionRequest - API Source:
chat_threads_archive
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
name |
string | |
is_archived |
boolean |
204 - No response body
Unarchive thread
Restore an archived thread.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
- Model Source:
ThreadSessionRequest - API Source:
chat_threads_unarchive
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
name |
string | |
is_archived |
boolean |
204 - No response body