Create a New Conversation
POST/api/conversations
This endpoint creates a new conversation in a specified workspace. The request must include a valid API key and user ID.
Request
Header Parameters
API key to authorize the request.
ID of the user making the request.
- application/json
Body
required
ID of the workspace where the conversation is created.
Name of the conversation. If not provided, a default name will be assigned.
ID of the agent associated with the conversation.
Responses
- 200
- 400
- 403
- 500
Successfully created a new conversation.
- application/json
- Schema
- Example (from schema)
Schema
The ID of the newly created conversation.
The details of the created conversation.
{
"conversationId": "string",
"conversation": {}
}
Invalid request body.
- application/json
- Schema
- Example (from schema)
Schema
Error message indicating the issue with the request body.
{
"error": "string"
}
Invalid API key.
- application/json
- Schema
- Example (from schema)
Schema
Error message indicating that the API key is invalid.
{
"error": "string"
}
Internal server error.
- application/json
- Schema
- Example (from schema)
Schema
Error message indicating an internal server error.
{
"message": "string"
}