Skip to main content
DELETE
/
api
/
agents
/
{id}
/
test-prompts
/
{promptId}
Delete evaluation question
curl --request DELETE \
  --url https://agent-evalserver-production.up.railway.app/api/agents/{id}/test-prompts/{promptId} \
  --header 'x-api-key: <api-key>'
{
  "error": "<string>",
  "message": "<string>",
  "details": "<string>"
}

Delete Evaluation Question

Remove one question from an agent’s evaluation set.
This is a destructive cleanup action. Use it when a question is outdated, duplicated, or should no longer be part of the evaluation set.
Use this after listing evaluation questions and confirming the promptId.

Endpoint

DELETE /api/agents/{id}/test-prompts/{promptId}

Authentication

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

Path Parameters

NameTypeDescription
idstring<uuid>Evaluation agent ID.
promptIdintegerEvaluation question ID.

Success Response

Returns 204 No Content when the question is deleted.

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.

promptId
integer
required

Evaluation question ID.

Response

Evaluation question deleted successfully