> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dabarai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List politics

> Paginated list of the authenticated user's politics

## Query parameters

<ParamField query="page" type="integer" default="1">
  Page number, 1-indexed.
</ParamField>

<ParamField query="pageSize" type="integer" default="12">
  Number of items per page.
</ParamField>

<ParamField query="search" type="string">
  Case-insensitive substring match against `name` and `description`.
</ParamField>

## Headers

<ParamField header="api-token" type="string" required>
  Your Dabar API token.
</ParamField>

## Response

<ResponseField name="success" type="boolean" />

<ResponseField name="data" type="Politics[]">
  Array of politics documents sorted by `updatedAt` descending.
</ResponseField>

<ResponseField name="total" type="integer">
  Total number of politics matching the filter (ignores pagination).
</ResponseField>

<ResponseField name="page" type="integer" />

<ResponseField name="pageSize" type="integer" />

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.dabarai.com/v1/politics?page=1&pageSize=12&search=legal" \
    -H "api-token: YOUR_TOKEN"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "data": [
      {
        "_id": "69aa51d188c08a82d22fb2d8",
        "userId": "69b14c847a9b9458fa6b4462",
        "name": "BP Rules New 3",
        "description": "Analizar los documentos proporcionados...",
        "rules": [
          { "name": "R1", "description": "..." }
        ],
        "knowledgeFiles": [],
        "contactNotifications": [],
        "outputFormat": null,
        "status": 1,
        "createdAt": "2026-03-05T16:38:54.108Z",
        "updatedAt": "2026-03-13T00:31:23.687Z"
      }
    ],
    "total": 1,
    "page": 1,
    "pageSize": 12
  }
  ```
</ResponseExample>
