Create Conversation
const url = 'https://api.uavcrew.ai/v1/chat/conversations';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"title":"","conversation_type":"direct","participant_ids":["example"],"agent_slugs":["example"],"context":{"source":"","page":{"title":"","description":"","actions":["example"]},"focus":{"entity":"example","id":"","name":""},"related":[{"entity":"example","id":"","name":""}],"attachments":[{"filename":"example","file_id":"example"}],"records":{},"entity_summary":""},"context_type":"example","context_id":"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 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "title": "", "conversation_type": "direct", "participant_ids": [ "example" ], "agent_slugs": [ "example" ], "context": { "source": "", "page": { "title": "", "description": "", "actions": [ "example" ] }, "focus": { "entity": "example", "id": "", "name": "" }, "related": [ { "entity": "example", "id": "", "name": "" } ], "attachments": [ { "filename": "example", "file_id": "example" } ], "records": {}, "entity_summary": "" }, "context_type": "example", "context_id": "example" }'Create a new conversation with participants.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Create a new conversation.
object
User UUIDs to add as human participants
AI agent slugs to add (arpa, concord, tucker, etc.)
Context about what the user is looking at when chatting.
New format (v2): source: Page URL where chat was initiated focus: Primary entity the conversation is about related: Additional entities relevant to the conversation attachments: Files the user wants the agent to consider
Legacy format (v1) is also accepted for backward compatibility: entity, id, name, url, references → auto-mapped to v2 fields
object
Page URL where chat was initiated
Describes the UI page the user is currently on.
object
Page title (e.g. ‘Drone Detail’)
Brief description of the page
Actions available on this page (e.g. ‘Edit drone details’)
Reference to an entity (used in focus and related).
object
Entity type (e.g. aircraft, pilot, mission)
Entity UUID. Omit for singletons (company).
Display name of the entity
Additional entities relevant to the conversation
Reference to an entity (used in focus and related).
object
Entity type (e.g. aircraft, pilot, mission)
Entity UUID. Omit for singletons (company).
Display name of the entity
Files the user wants the agent to consider
A file attachment in conversation context.
object
Original filename
File UUID from the files/artifacts system
Client-composed plain-text summary of the focus record — key fields (contact info, status, etc.) the agent needs without a tool call
Responses
Section titled “Responses”Successful Response
A conversation with participants and last message.
object
A participant in a conversation.
object
A single message.
object
A participant in a conversation.
object
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
object
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}