Send Routing Feedback
Say whether a request was routed well. When a custom classifier scored it and the feedback carries a prompt, the prompt is added to that classifier’s examples with the corrected complexity and the classifier rebuilds in the background. Only one feedback on a request trains. A skipped feedback keeps no prompt; resending it with the same idempotency_key and a new body corrects that row, and trains if the correction qualifies.
Authentication
A management key (mgmt_...), sent as Authorization: Bearer <key>. Reading /v1/routing-policies also accepts the organization’s gateway API keys; writing there needs a management key.
Request
For bad: which way routing should have gone. Inferred when the request went to the cheapest or the strongest tier.
Retries with the same key are no-ops.
The request’s prompt (its last user message). Without it the feedback is stored but doesn’t train.