Policies

Creates a new router policy with model configuration, evaluators, retry settings, and limits.

post/v2/policies

Request

  • Base URL
    https://my.orq.ai
  • URL
    https://my.orq.ai/v2/policies
  • Auth
    HTTP bearer

Request body

descriptionstring
display_namestring required
enabledboolean
project_idstring

Optional project ID. If null/omitted, the entity is global (workspace-wide).

timeoutinteger

Example request

{
  "display_name": "Production guardrails"
}

Response

Policy created successfully

_idstring required
created_atstring date-time required
created_by_idstring required
descriptionstring
display_namestring required
enabledboolean required
project_idstring required
slugstring required
timeoutinteger required
updated_atstring date-time required
updated_by_idstring required

Changes

    • info

      added the new optional request property /

    • info

      added the optional property / to the response with the status

    • warning

      removed the request property /

    • warning

      removed the optional property / from the response with the status