Get Messages
GET
/v1/chat/conversations/{conversation_id}/messages
const url = 'https://api.uavcrew.ai/v1/chat/conversations/example/messages?limit=50';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.uavcrew.ai/v1/chat/conversations/example/messages?limit=50' \ --header 'Authorization: Bearer <token>'Get messages for a conversation (cursor-paginated, chronological order).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”conversation_id
required
Conversation Id
string
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
MessageListResponse
Paginated list of messages.
object
messages
required
Messages
Array<object>
MessageResponseA single message.
object
id
required
Id
string
conversation_id
required
Conversation Id
string
participant
Any of:
ParticipantResponse
A participant in a conversation.
object
null
message_type
required
MessageType
string
content
required
Content
string
mentions
Mentions
Array<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>
ValidationErrorobject
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": {} } ]}