Documentation Index
Fetch the complete documentation index at: https://docs.nivara.io/llms.txt
Use this file to discover all available pages before exploring further.
Reset Conversation History
Resets the conversation history for a given user type.
Query Parameters
| Parameter | Type | Required | Description |
|---|
| user_type | string | Yes | The type of user (Patient, Doctor, Coach) |
| model_id | string | Yes | The model ID (openai, gemini) |
| user_id | string | Yes | The user identifier (User1-User20) |
| Parameter | Type | Required | Description |
|---|
| authorization | string | Yes | API authorization token |
Responses
| Status | Description | Content Type |
|---|
| 200 | Success message | application/json |
| 401 | Unauthorized | application/json |
| 422 | Validation Error | application/json |
Sample Request
curl -X GET "https://covita.nivara.io/v1/reset_conversation_history?user_type=Patient&model_id=openai&user_id=User1" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Sample Response
{
"status": "success",
"message": "Conversation history has been reset",
"user_type": "Patient",
"model_id": "openai",
"user_id": "User1",
"timestamp": "2023-08-15T15:45:30.123Z"
}
Notes
This operation permanently deletes all conversation history for the specified user type, model, and user ID. This action cannot be undone.
Resetting conversation history can be useful when starting a new session or when you want the AI to forget previous context.