Get Conversation
GET
/v1/chat/conversations/{conversation_id}
const url = 'https://api.uavcrew.ai/v1/chat/conversations/example';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 \ --header 'Authorization: Bearer <token>'Get a single conversation with participants.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”conversation_id
required
Conversation Id
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
ConversationResponse
A conversation with participants and last message.
object
id
required
Id
string
title
required
Title
string
conversation_type
required
ConversationType
string
participants
Participants
Array<object>
ParticipantResponseA participant in a conversation.
object
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
null
message_type
required
MessageType
string
content
required
Content
string
mentions
Mentions
Array<string>
created_at
required
Created At
string format: date-time
null
unread_count
Unread Count
integer
is_archived
Is Archived
boolean
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
Example
{ "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>
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": {} } ]}