Delete Run Feedback
Call Create session first and replace the example session ID with its returned ID.
/agent/v1/sessions/{session_id}/runs/{run_id}/feedback● SupportedRequest parameters
session_idstringrequiredpath: Session id from session creation or listing.
run_idstringrequiredpath: Existing run_id from this session's events.
Returns
204
Own-face extension. Use the session id from session creation or listing and the run_id from its events. Requires a readable session and a run belonging to it. Idempotent; returns 204 even when no feedback exists. End users can delete feedback only for their own sessions. Does not delete the run or messages, enter model context, or start another run.
Errors follow the Anthropic error format (type / message / request_id) — see error codes
Request
curl
# Call Create session first and replace the example session ID with its returned ID.
curl -X DELETE https://api.deepraxis.com/agent/v1/sessions/sesn_123/runs/run_123/feedback \
-H "Authorization: Bearer $PRAXIS_API_KEY"Python
# Call Create session first and replace the example session ID with its returned ID.
import requests
opts = dict(
base_url="https://api.deepraxis.com/agent",
api_key="$PRAXIS_API_KEY",
)
# /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
resp = requests.delete(
f"{opts['base_url']}/v1/sessions/sesn_123/runs/run_123/feedback",
headers={"Authorization": f"Bearer {opts['api_key']}"},
)
resp.raise_for_status()
print(resp.status_code)TypeScript
// Call Create session first and replace the example session ID with its returned ID.
const opts = {
baseURL: "https://api.deepraxis.com/agent",
apiKey: "$PRAXIS_API_KEY",
};
// /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
const resp = await fetch(`${opts.baseURL}/v1/sessions/sesn_123/runs/run_123/feedback`, {
method: "DELETE",
headers: { Authorization: `Bearer ${opts.apiKey}`, "Content-Type": "application/json" },
});
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
console.log(resp.status);Response 204
Response
HTTP 204
Feedback removed, or already absent.
No response body is declared.
Before running the example
Create a session and send a message. Replace run_123 with run_id from that session’s events, not a deployment-run drun_ ID. The run must belong to the session in the request.