Create a conversation
Start a new conversation with your clone. Returns a conversation ID and the clone's initial greeting.
Endpoint: POST /v3/conversation
Request body:
Field
Type
Required
Description
Email of the user starting the chat
If user_email is provided, the conversation is linked to that user. Otherwise, it's created as an anonymous conversation.
Example request:
curl -X POST https://api.delphi.ai/v3/conversation \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"user_email": "[email protected]"}'
Example response:
{
"conversation_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"created_at": "2025-06-15T10:30:00.000Z",
"initial_message": "Hey! How can I help you today?"
}
Stream a response
Send a message and receive the clone's response as a real-time stream (Server-Sent Events).
Endpoint: POST /v3/stream
Request body:
Field
Type
Required
Description
URLs of user-uploaded files for context
Example request:
Response format: text/event-stream
The response is a stream of Server-Sent Events. Each event contains a chunk of the clone's response. The stream ends with a [DONE] event.
List conversations
Retrieve all conversations for a specific user.
Endpoint: GET /v3/conversation/list
Query parameters:
Parameter
Type
Required
Description
Example request:
Example response:
Conversations are sorted by newest first. Only active (non-deleted) conversations are returned.
Get conversation history
Retrieve the full message history for a conversation.Endpoint: GET /v3/conversation/{conversation_id}/historyPath parameters:
Query parameters:
Example request:
Example response:
Citation fields (when include_citations=true):
Source type: WEB, PDF, TWITTER
PDF page number (nullable)
Video/audio timestamp (nullable)
Direct citation link (nullable)
Messages are returned in chronological order (oldest first).
Update conversation title
Set or update the title of a conversation.
Endpoint: PUT /v3/conversation/{conversation_id}/title
Path parameters:
Request body:
Field
Type
Required
Description
New title (1–500 characters)
Example request:
Example response:
Delete a conversation
Soft-delete a conversation. It will no longer appear in list results.
Endpoint: DELETE /v3/conversation/{conversation_id}
Path parameters:
Example request:
Example response:
This is a soft delete — the conversation is hidden, not permanently removed.