Orq MCP is live: Use natural language to interrogate traces, spot regressions, and experiment your way to optimal AI configurations. Available in Claude Desktop, Claude Code, Cursor, and more. Start now →
cURL
curl --request POST \ --url https://api.orq.ai/v2/policies \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "display_name": "<string>", "description": "<string>", "enabled": true, "evaluators": [ { "execute_on": "<string>", "id": "<string>", "is_guardrail": true, "sample_rate": 123 } ], "limits": {}, "timeout": 123 } '
{ "_id": "<string>", "created_at": "2023-11-07T05:31:56Z", "created_by_id": "<string>", "display_name": "<string>", "enabled": true, "project_id": "<string>", "slug": "<string>", "timeout": 123, "updated_at": "2023-11-07T05:31:56Z", "updated_by_id": "<string>", "description": "<string>", "evaluators": [ { "execute_on": "<string>", "id": "<string>", "is_guardrail": true, "sample_rate": 123 } ], "limits": { "budget": { "amount": 123, "currency": "<string>", "period": "<string>" }, "requests": { "amount": 123, "period": "<string>" }, "tokens": { "amount": 123, "period": "<string>" } }, "models_config": { "mode": "<string>", "models": [ { "model": "<string>", "integration_id": "<string>", "weight": 123 } ] }, "retry_config": { "count": 123, "on_codes": [ 123 ] } }
Creates a new router policy with model configuration, evaluators, retry settings, and limits.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Show child attributes
Policy created successfully
Was this page helpful?
Contact support