Skip to content

List Conversations

GET
/v1/chat/conversations
curl --request GET \
--url 'https://api.uavcrew.ai/v1/chat/conversations?page=1&page_size=20' \
--header 'Authorization: Bearer <token>'

List conversations for the authenticated organization.

page
Page
integer
default: 1 >= 1
page_size
Page Size
integer
default: 20 >= 1 <= 100
context_type
Any of:
string
context_id
Any of:
string

Successful Response

Media typeapplication/json
ConversationListResponse

Paginated list of conversations.

object
conversations
required
Conversations
Array<object>
ConversationResponse

A conversation with participants and last message.

object
id
required
Id
string
title
required
Title
string
conversation_type
required
ConversationType
string
Allowed values: direct group channel
context_type
Any of:
string
context_id
Any of:
string
participants
Participants
Array<object>
default:
ParticipantResponse

A participant in a conversation.

object
id
required
Id
string
participant_type
required
ParticipantType
string
Allowed values: human ai_agent external
user_id
Any of:
string
external_id
Any of:
string
display_name
required
Display Name
string
role
required
ParticipantRole
string
Allowed values: owner member observer
is_active
required
Is Active
boolean
last_read_at
Any of:
string format: date-time
last_message
Any of:
MessageResponse

A single message.

object
id
required
Id
string
conversation_id
required
Conversation Id
string
participant
Any of:
ParticipantResponse

A participant in a conversation.

object
id
required
Id
string
participant_type
required
ParticipantType
string
Allowed values: human ai_agent external
user_id
Any of:
string
external_id
Any of:
string
display_name
required
Display Name
string
role
required
ParticipantRole
string
Allowed values: owner member observer
is_active
required
Is Active
boolean
last_read_at
Any of:
string format: date-time
message_type
required
MessageType
string
Allowed values: text system ai_response tool_call tool_result file action_card
content
required
Content
string
mentions
Mentions
Array<string>
default:
tool_data
Any of:
object
key
additional properties
any
client_message_id
Any of:
string
created_at
required
Created At
string format: date-time
unread_count
Unread Count
integer
0
is_archived
Is Archived
boolean
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
total
required
Total
integer
page
required
Page
integer
page_size
required
Page Size
integer

Example

{
"conversations": [
{
"conversation_type": "direct",
"participants": [],
"last_message": {
"participant": {
"participant_type": "human",
"role": "owner"
},
"message_type": "text",
"mentions": []
},
"unread_count": 0,
"is_archived": false
}
]
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}