Guardrail Policies

List moderation policies

Changed on

List the moderation policies in a workspace. Management key required.

get/guardrails/policies/moderation

Request

  • Base URL
    https://openrouter.ai/api/v1
  • Auth
    HTTP bearer

Query parameters

offset, integer

Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned

limit, integer

Maximum number of records to return (max 100). When both offset and limit are omitted, the full list is returned

Example:50
workspace_id, string uuid

Workspace the policy belongs to. Required for an organization management key; a workspace-scoped key defaults to its own workspace and gets 403 for any other.

Example:0df9e665-d932-5740-b2c7-b52af166bc11

Response

List of moderation policies

ListModerationGuardrailPoliciesResponse required
data, ModerationGuardrailPolicySummary[] required
total_count, integer required

Total number of policies

Example response

{
  "data": [
    {
      "config": {
        "content_filter_builtins": [
          {
            "action": "block",
            "slug": "secrets"
          }
        ]
      },
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "Engineering monthly budget"
    }
  ],
  "total_count": 1
}

Changes