---
updatedAt: 2025-04-29T20:31:08.000Z
agentTools:
  projectIndex: https://docs.border0.com/llms.txt
---

# get policies paginated

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "https://border0.com",
    "title": "Border0 API",
    "contact": {},
    "version": "1.0"
  },
  "paths": {
    "/policies": {
      "get": {
        "security": [
          {
            "Border0_Token": []
          }
        ],
        "summary": "get policies paginated",
        "parameters": [
          {
            "description": "Page",
            "name": "page",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page size",
            "name": "page_size",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/serializer.Policy"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1.BaseErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1.BaseErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1.BaseErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Border0_Token": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    },
    "schemas": {
      "datatypes.JSONMap": {
        "type": "object",
        "additionalProperties": true
      },
      "serializer.Policy": {
        "type": "object",
        "properties": {
          "created_at": {
            "type": "string"
          },
          "deleted": {
            "type": "boolean"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "org_wide": {
            "type": "boolean"
          },
          "policy_data": {
            "$ref": "#/components/schemas/datatypes.JSONMap"
          },
          "socket_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "v1.BaseErrorResponse": {
        "type": "object",
        "properties": {
          "error_message": {
            "type": "string"
          },
          "status_code": {
            "type": "integer"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```