Add Participant
POST
/v1/chat/conversations/{conversation_id}/participants
const url = 'https://api.uavcrew.ai/v1/chat/conversations/example/participants';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"user_id":"example","agent_slug":"example","external_id":"example","display_name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.uavcrew.ai/v1/chat/conversations/example/participants \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "user_id": "example", "agent_slug": "example", "external_id": "example", "display_name": "example" }'Add a participant to a conversation.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”conversation_id
required
Conversation Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
AddParticipantRequest
Add a participant to a conversation.
object
Example generated
{ "user_id": "example", "agent_slug": "example", "external_id": "example", "display_name": "example"}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
ParticipantResponse
A participant in a conversation.
object
Example
{ "participant_type": "human", "role": "owner"}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": {} } ]}