curl -X POST https://api.dari.dev/v1/sessions/sess_123/events \ -H "Authorization: Bearer $DARI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "events": [ { "type": "user.message", "content": [ { "type": "text", "text": "Summarize this ticket and draft a reply." }, { "type": "file", "file_id": "file_456" } ], "metadata": { "ticket_id": "T-1042" } } ] }'
{ "events": [ { "id": "evt_1", "session_id": "sess_123", "message_id": "msg_123", "type": "user.message", "data": { "content": [ { "type": "text", "text": "Summarize this ticket and draft a reply." }, { "type": "file", "file_id": "file_456" } ], "metadata": { "ticket_id": "T-1042" }, "message_id": "msg_123" }, "created_at": "2026-03-31T18:40:00Z" } ] }
Append user-facing events to a session
user.message
application/json
Show Supported Event Types
text
file
image
message_id