Skip to content

Add Participant

POST
/v1/chat/conversations/{conversation_id}/participants
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.

conversation_id
required
Conversation Id
string
Media typeapplication/json
AddParticipantRequest

Add a participant to a conversation.

object
user_id
Any of:
string
agent_slug
Any of:
string
external_id
Any of:
string
display_name
Any of:
string

Example generated

{
"user_id": "example",
"agent_slug": "example",
"external_id": "example",
"display_name": "example"
}

Successful Response

Media typeapplication/json
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

Example

{
"participant_type": "human",
"role": "owner"
}

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