Skip to main content
GET
/
v1
/
reset_conversation_history
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Reset Conversation History

Resets the conversation history for a given user type.

Query Parameters

ParameterTypeRequiredDescription
user_typestringYesThe type of user (Patient, Doctor, Coach)
model_idstringYesThe model ID (openai, gemini)
user_idstringYesThe user identifier (User1-User20)

Headers

ParameterTypeRequiredDescription
authorizationstringYesAPI authorization token

Responses

StatusDescriptionContent Type
200Success messageapplication/json
401Unauthorizedapplication/json
422Validation Errorapplication/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.

Headers

authorization
string
required

Query Parameters

user_type
string
required
model_id
string
required

Response

Successful Response