Delete Conversation
Soft-delete a conversation owned by the authenticated user.
The underlying LangGraph checkpoint data is preserved so the conversation
can be recovered if needed. Only the conversation_users record is
marked deleted.
Args: user: The authenticated user (must be the conversation owner). thread_id: LangGraph thread ID to delete. db: Database session.
Returns:
{"thread_id": ..., "deleted": True} on success.
Raises: HTTPException 403: If the user does not own this conversation. HTTPException 404: If no matching active conversation was found.
Authorizations
A personal access token (haico_pat_...), created under Profile → API keys. Send it as Authorization: Bearer <key>. The browser session JWT is also accepted but is an internal mechanism and is not part of the public contract.
Path Parameters
1 - 255Response
Successful Response