---
updatedAt: 2026-10-25T15:46:36.000Z
agentTools:
  projectIndex: https://docs.superwise.ai/llms.txt
---

# Search Sentinels

Searches sentinels with column filters and free-text terms, sorts the results by `id`, `name`, `location`, `created_at`, or `updated_at` in ascending or descending order, and returns a paged list. Free-text terms search across ID, name, location, and update time.

## When to use it

Use it to combine several search terms, filter on specific columns, or control the sort order of the results.

## Required parameters

This call takes no required parameters.

Optional body fields: `filters`, `search`, `sort_by`, `sort_direction`, `include`. Use `page` and `size` to page through the results.

## Response

A successful call returns `200 OK` with a page of sentinel objects in `items`, plus `total`, `page`, `size`, and `pages`. The fields of each item are not documented.

**Related:** [List sentinels](https://docs.superwise.ai/reference/get_sentinels), [Get a sentinel](https://docs.superwise.ai/reference/get_sentinel_by_id), [Get a sentinel's guardrail metrics](https://docs.superwise.ai/reference/get_sentinel_guardrail_metrics)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/v1/sentinels/search": {
      "post": {
        "tags": [
          "Sentinels"
        ],
        "summary": "Search Sentinels",
        "operationId": "search_sentinels",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "description": "Page number",
              "default": 1,
              "title": "Page"
            },
            "description": "Page number"
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 25,
              "default": 25,
              "title": "Size"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SentinelSearchParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page_SentinelWithMetricsSchema_Customized"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  },
  "info": {
    "title": "Superwise Main Entities",
    "description": "API reference",
    "version": "0.1.0"
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "Page_SentinelWithMetricsSchema_Customized": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SentinelWithMetricsSchema"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "minimum": 0,
            "title": "Total"
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "title": "Page"
          },
          "size": {
            "type": "integer",
            "minimum": 1,
            "title": "Size"
          },
          "pages": {
            "type": "integer",
            "minimum": 0,
            "title": "Pages"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total",
          "page",
          "size",
          "pages"
        ],
        "title": "Page[SentinelWithMetricsSchema]Customized"
      },
      "SentinelSearchParams": {
        "properties": {
          "filters": {
            "anyOf": [
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filters",
            "description": "Filter on db columns",
            "examples": [
              [
                "name",
                "eq",
                "my-sentinel"
              ],
              [
                [
                  "name",
                  "ilike",
                  "prod"
                ],
                "and",
                [
                  "location",
                  "eq",
                  "us-east-1"
                ]
              ]
            ]
          },
          "search": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Search",
            "description": "Free text search across id, name, location, updated_at"
          },
          "sort_by": {
            "type": "string",
            "enum": [
              "id",
              "name",
              "location",
              "created_at",
              "updated_at"
            ],
            "title": "Sort By",
            "default": "updated_at"
          },
          "sort_direction": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ],
            "title": "Sort Direction",
            "default": "desc"
          },
          "include": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "boolean"
                },
                "propertyNames": {
                  "const": "basic_metrics"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Include"
          }
        },
        "type": "object",
        "title": "SentinelSearchParams"
      },
      "SentinelWithMetricsSchema": {
        "additionalProperties": true,
        "type": "object"
      }
    },
    "securitySchemes": {
      "implicit": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://authentication.superwise.ai/identity/resources/auth/v1/api-token",
            "scopes": {}
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Sentinels",
      "description": "Sentinel management endpoints"
    }
  ],
  "security": [
    {
      "implicit": []
    }
  ],
  "servers": [
    {
      "url": "api.superwise.ai",
      "description": "Superwise Api Gateway"
    }
  ]
}
```