---
updatedAt: 2026-07-02T14:53:06.000Z
---

# Retrieve list of Policies with pagination (sorting and filtering)

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "BeyondTrust PM Cloud Management API - Version 3",
    "description": "BeyondTrust PM Cloud Management API - Version 3",
    "version": "v3"
  },
  "servers": [
    {
      "url": "/management-api"
    }
  ],
  "paths": {
    "/v3/Policies": {
      "get": {
        "tags": [
          "Policies"
        ],
        "summary": "Retrieve list of Policies with pagination (sorting and filtering)",
        "parameters": [
          {
            "name": "Sorts",
            "in": "query",
            "description": "Allow for sorting on multiple properties using \"by\" and \"order\".\r\n\"Sorts[x].by\" specifies the property on which to sort e.g. name.\r\n\"Sorts[x].order\" specifies the order in which to sort e.g. asc or desc.\r\nThe index \"x\" specifies the order the sorts are applied. The index must start at 0 and each index must be consecutive e.g. 0, 1, 2.\r\nFor example Sorts[0].by, Sorts[0].order, Sorts[1].by, Sorts[1].order. \r\nAlso supports repeated objects notation (multiple sorts): Sorts={\"By\":\"name\",\"Order\":\"Asc\"}&Sorts={\"By\":\"created\",\"Order\":\"Desc\"}",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SortModel"
              }
            }
          },
          {
            "name": "Pagination.PageSize",
            "in": "query",
            "description": "The number of records per page, for example 1. Shouldn't exceed 200.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Pagination.PageNumber",
            "in": "query",
            "description": "The page number to retrieve from results, for example 1",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Filter.Name",
            "in": "query",
            "description": "The Name of the Policy, e.g. - Policy1",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter.Size",
            "in": "query",
            "description": "The Size of the Policy in Kb, e.g. 225",
            "schema": {
              "type": "integer",
              "format": "int32",
              "nullable": true
            }
          },
          {
            "name": "Filter.Revision",
            "in": "query",
            "description": "The number of revisions for the Policy, e.g. 5",
            "schema": {
              "type": "integer",
              "format": "int32",
              "nullable": true
            }
          },
          {
            "name": "Filter.TotalAssignedRevisions",
            "in": "query",
            "description": "The total number of Groups with the Policy assigned (any Revision), e.g. 10",
            "schema": {
              "type": "integer",
              "format": "int32",
              "nullable": true
            }
          },
          {
            "name": "Filter.Created.Dates",
            "in": "query",
            "description": "Valid date formats for filter - 2020-12-24, 2020-12-24 19:09:47, 2020-12-24 19:09:47.6816562, 2020-12-24 19:09:47.6816562 +00:00",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "date-time",
                "nullable": true
              }
            }
          },
          {
            "name": "Filter.Created.SelectionMode",
            "in": "query",
            "description": "The selection mode of date criteria e.g single, multiple, range",
            "schema": {
              "$ref": "#/components/schemas/DateSelectionMode"
            },
            "example": "Single"
          },
          {
            "name": "Filter.DraftUser",
            "in": "query",
            "description": "The 'Locked By' user, i.e. the user that created the last draft which has locked the Policy, e.g. jbloggs@email.com",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyListItemModelPagedResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyListItemModelPagedResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyListItemModelPagedResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Server Error"
          }
        },
        "security": [
          {
            "bearer": [],
            "oauth2": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "DateSelectionMode": {
        "enum": [
          "Single",
          "Multiple",
          "Range"
        ],
        "type": "string",
        "description": "Date Selection Mode for filter"
      },
      "ListItemErrorInfoModel": {
        "type": "object",
        "properties": {
          "parentTaskName": {
            "type": "string",
            "nullable": true
          },
          "errorCode": {
            "type": "integer",
            "format": "int32"
          },
          "userId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "userAccountName": {
            "type": "string",
            "nullable": true
          },
          "initiated": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "PolicyListItemModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The Id (Guid format), for example - 59A00329-87AC-49EC-BC2C-9B9E26F05185",
            "format": "uuid"
          },
          "locked": {
            "type": "boolean"
          },
          "errorInfo": {
            "$ref": "#/components/schemas/ListItemErrorInfoModel"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "revision": {
            "type": "integer",
            "format": "int32"
          },
          "totalRevisions": {
            "type": "integer",
            "format": "int32"
          },
          "totalAssignedRevisions": {
            "type": "integer",
            "format": "int32"
          },
          "latestAssignedRevisions": {
            "type": "integer",
            "format": "int32"
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time"
          },
          "lastModifiedUserId": {
            "type": "string",
            "format": "uuid"
          },
          "lastModifiedUser": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "hasOpenDraft": {
            "type": "boolean"
          },
          "openDraftId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isAssignedToGroup": {
            "type": "boolean"
          },
          "draftUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "draftUser": {
            "maxLength": 512,
            "minLength": 0,
            "type": "string",
            "nullable": true
          },
          "lastPolicyToGroupAssignment": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "checkedOutDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "periodLocked": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PolicyListItemModelPagedResponse": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalRecordCount": {
            "type": "integer",
            "format": "int32"
          },
          "pageCount": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyListItemModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": {}
      },
      "SortDirection": {
        "enum": [
          "Asc",
          "Desc"
        ],
        "type": "string"
      },
      "SortModel": {
        "type": "object",
        "properties": {
          "by": {
            "type": "string",
            "description": "The property on which to sort e.g. name",
            "nullable": true
          },
          "order": {
            "$ref": "#/components/schemas/SortDirection"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://sneakpeek-services.epm.bt3ng.com/oauth/connect/token",
            "scopes": {
              "urn:management:api": "Management API scope"
            }
          }
        }
      }
    }
  }
}
```