Delete Conversation by Session ID
Endpoint
DELETE https://api.genaifactory.ai/v1/conversation_history/{session_id}
Headers
Name
Type
Required
Description
API key for authentication
Path Parameters
Name
Type
Required
Description
The unique session identifier for the conversation to be deactivated.
Example Request
curl --location --request DELETE 'https://api.genaifactory.ai/v1/conversation_history/123e4567-e89b-12d3-a456-426614174000' \
--header 'formacloud-api-key: abc123'
Responses
✅ Success Response (200 OK
)
If the conversation is successfully deactivated:
{
"message": "Conversation with session_id 123e4567-e89b-12d3-a456-426614174000 has been deactivated"
}
❌ Error Response (404 Not Found
)
If the provided session_id
does not exist:
{
"error": "No steps of this history 123e4567-e89b-12d3-a456-426614174000 found"
}