cURL
curl --request POST \ --url https://api.example.com/api/v1/internal/escalations \ --header 'Content-Type: application/json' \ --data ' { "proxy_id": "<string>", "org_id": "<string>", "score": 123, "reason": "<string>", "messages": [ {} ], "system_prompt": "<string>" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "proxy_id": "<string>", "org_id": "<string>", "score": 123, "reason": "<string>", "created_at": "2023-11-07T05:31:56Z" }
Record an escalation event when a request is flagged for human review.
Stored in memory for now — wire up to a database table or alerting system (PagerDuty, Slack webhook, etc.) when needed.
Successful Response