Skip to main content
POST
/
api
/
agents
/
{id}
/
test-results
/
reset
Clear evaluation results
curl --request POST \
  --url https://agent-evalserver-production.up.railway.app/api/agents/{id}/test-results/reset \
  --header 'x-api-key: <api-key>'
{
  "success": true,
  "message": "Evaluation results cleared successfully"
}

Clear Evaluation Results

Clear stored evaluation results for an agent. Use this before rerunning a clean evaluation pass while keeping the agent, knowledge, and evaluation questions intact.
This clears saved result records. It does not delete the agent or its evaluation questions.

Endpoint

POST /api/agents/{id}/test-results/reset

Authentication

Send your platform API key in the x-api-key header.

Path Parameters

NameTypeDescription
idstring<uuid>Evaluation agent ID.

Success Response

Returns 200 OK when the stored results have been cleared.

Authorizations

x-api-key
string
header
required

Platform API key for authenticated account-level API access

Path Parameters

id
string<uuid>
required

Evaluation agent ID.

Response

Evaluation results cleared

Summary returned after clearing stored evaluation results.

success
boolean
Example:

true

message
string
Example:

"Evaluation results cleared successfully"