FruxonDocs
ApiAgentdraft

Discard a test chat the caller owns.

Purges the user-visible chat rows (`IntegrationMessage`), the LLM-side history (`AgentMessage`), and the session state row. Cost-ledger entries on `AgentExecutionRecord` stay — that's an immutable spend history the user can't rewrite. Returns 204 on success, 404 when the conversation doesn't exist or isn't owned by the caller (same response either way — no existence leak).

DELETE
/v1/tenants/{tenant}/agents/{agent}/testChats/{testChat}
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

agent*string

The unique identifier of the agent.

testChat*string

The id of the test chat to discard.

tenant*string

The tenant identifier

Response Body

curl -X DELETE "https://api.fruxon.com/v1/tenants/string/agents/string/testChats/string"
Empty
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}