Skip to content

Get Messages

GET
/v1/chat/conversations/{conversation_id}/messages
curl --request GET \
--url 'https://api.uavcrew.ai/v1/chat/conversations/example/messages?limit=50' \
--header 'Authorization: Bearer <token>'

Get messages for a conversation (cursor-paginated, chronological order).

conversation_id
required
Conversation Id
string
before
Any of:
string
limit
Limit
integer
default: 50 >= 1 <= 100

Successful Response

Media typeapplication/json
MessageListResponse

Paginated list of messages.

object
messages
required
Messages
Array<object>
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
total
required
Total
integer
has_more
required
Has More
boolean

Example

{
"messages": [
{
"participant": {
"participant_type": "human",
"role": "owner"
},
"message_type": "text",
"mentions": []
}
]
}

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": {}
}
]
}