Action required: Entity management is moving from Workspaces to Projects. Migrate your entities now. See how to move entities in our guide.
curl --request POST \
--url https://api.orq.ai/v2/conversations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"projectId": "prj_01jj1hdhn79xas7a01wb3hysdb",
"displayName": "Customer Support Session",
"metadata": {
"generatingTitle": true,
"entityId": "agent_01jj1hdhn79xas7a01wb3hysdb",
"model": "openai/gpt-4o"
}
}
'{
"kind": "conversation",
"displayName": "Product Feature Discussion",
"createdAt": 1734789600000,
"updatedAt": 1734793200000,
"_id": "conv_01jj1hdhn79xas7a01wb3hysdb",
"createdById": "user_01jj1hdhn79xas7a01wb3hysdb",
"updatedById": "user_01jj1hdhn79xas7a01wb3hysdb",
"metadata": {
"generatingTitle": true,
"entityId": "agent_01jj1hdhn79xas7a01wb3hysdb",
"model": "openai/gpt-4o"
}
}Creates a new conversation in the workspace. Conversations serve as containers for organizing related messages and interactions. Each conversation is assigned a unique identifier and timestamps for tracking.
curl --request POST \
--url https://api.orq.ai/v2/conversations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"projectId": "prj_01jj1hdhn79xas7a01wb3hysdb",
"displayName": "Customer Support Session",
"metadata": {
"generatingTitle": true,
"entityId": "agent_01jj1hdhn79xas7a01wb3hysdb",
"model": "openai/gpt-4o"
}
}
'{
"kind": "conversation",
"displayName": "Product Feature Discussion",
"createdAt": 1734789600000,
"updatedAt": 1734793200000,
"_id": "conv_01jj1hdhn79xas7a01wb3hysdb",
"createdById": "user_01jj1hdhn79xas7a01wb3hysdb",
"updatedById": "user_01jj1hdhn79xas7a01wb3hysdb",
"metadata": {
"generatingTitle": true,
"entityId": "agent_01jj1hdhn79xas7a01wb3hysdb",
"model": "openai/gpt-4o"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Project identifier to associate the conversation with.
"prj_01jj1hdhn79xas7a01wb3hysdb"
Human-readable name for the conversation. Defaults to "Untitled" if omitted.
100"Customer Support Session"
Optional metadata to attach to the conversation.
Show child attributes
Conversation successfully created. Returns the complete conversation object including the generated ID and timestamps.
Resource type discriminator.
conversation Human-readable name for the conversation. Maximum 100 characters.
100"Product Feature Discussion"
Unix timestamp in milliseconds when the conversation was created.
1734789600000
Unix timestamp in milliseconds when the conversation was last modified.
1734793200000
Unique conversation identifier with conv_ prefix.
"conv_01jj1hdhn79xas7a01wb3hysdb"
Identifier of the user or system that created the conversation.
"user_01jj1hdhn79xas7a01wb3hysdb"
Identifier of the user or system that last modified the conversation.
"user_01jj1hdhn79xas7a01wb3hysdb"
Additional conversation metadata.
Show child attributes
Was this page helpful?