---
updatedAt: 2025-09-15T09:14:12.000Z
agentTools:
  siteIndex: https://developer.jamf.com/llms.txt
  projectIndex: https://developer.jamf.com/jamf-pro/v11.14.0/llms.txt
---

# Search for sorted and paged Scripts

Search for sorted and paged scripts

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Jamf Pro API",
    "termsOfService": "https://www.jamf.com/developer-resources/api-license-agreement",
    "version": "11.14.0"
  },
  "servers": [
    {
      "url": "https://yourServer.jamfcloud.com/api"
    }
  ],
  "x-readme": {
    "samples-languages": [
      "curl",
      "swift",
      "ruby",
      "python"
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "security": [
    {
      "Bearer": []
    },
    {
      "ApiClient": []
    },
    {
      "BasicAuth": [
        "/v1/auth/token"
      ]
    }
  ],
  "paths": {
    "/v1/scripts": {
      "get": {
        "tags": [
          "scripts"
        ],
        "summary": "Search for sorted and paged Scripts\n",
        "description": "Search for sorted and paged scripts",
        "parameters": [
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/page-size"
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sorting criteria in the format: property:asc/desc. Default sort is name:asc. Multiple sort criteria are supported and must be separated with a comma. Fields allowed in the query: `id`, `name`, `info`, `notes`, `priority`, `categoryId`, `categoryName`, `parameter4` up to `parameter11`, `osRequirements`, `scriptContents`. Example: sort=date:desc,name:asc ",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": [
                "name:asc"
              ]
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "Query in the RSQL format, allowing to filter scripts collection. Default search is empty query - returning all results for the requested page. Fields allowed in the query: `id`, `name`, `info`, `notes`, `priority`, `categoryId`, `categoryName`, `parameter4` up to `parameter11`, `osRequirements`, `scriptContents`. This param can be combined with paging and sorting. Example: filter=categoryName==\"Category\" and name==\"*script name*\"",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string",
              "default": ""
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Found scripts matching search params.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScriptsSearchResults"
                }
              }
            }
          }
        },
        "x-required-privileges": [
          "Read Scripts"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Script": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "minLength": 1,
            "type": "string",
            "readOnly": true,
            "example": "1"
          },
          "name": {
            "type": "string",
            "example": "Install Developer Utils Script"
          },
          "info": {
            "type": "string",
            "example": "Installs utilities for developers"
          },
          "notes": {
            "type": "string",
            "example": "Should be able to be re-run without problem."
          },
          "priority": {
            "type": "string",
            "example": "AFTER",
            "enum": [
              "BEFORE",
              "AFTER",
              "AT_REBOOT"
            ]
          },
          "categoryId": {
            "type": "string",
            "example": "1"
          },
          "categoryName": {
            "type": "string",
            "example": "Developer Tools"
          },
          "parameter4": {
            "type": "string",
            "example": "1"
          },
          "parameter5": {
            "type": "string",
            "example": "2"
          },
          "parameter6": {
            "type": "string",
            "example": "3"
          },
          "parameter7": {
            "type": "string",
            "example": "4"
          },
          "parameter8": {
            "type": "string",
            "example": "5"
          },
          "parameter9": {
            "type": "string",
            "example": "6"
          },
          "parameter10": {
            "type": "string",
            "example": "7"
          },
          "parameter11": {
            "type": "string",
            "example": "8"
          },
          "osRequirements": {
            "type": "string",
            "example": "10.10.x"
          },
          "scriptContents": {
            "type": "string",
            "example": "echo \"Trivial script.\""
          }
        }
      },
      "ScriptsSearchResults": {
        "type": "object",
        "properties": {
          "totalCount": {
            "minimum": 0,
            "type": "integer",
            "example": 3
          },
          "results": {
            "minItems": 0,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Script"
            }
          }
        }
      }
    },
    "parameters": {
      "page": {
        "name": "page",
        "in": "query",
        "required": false,
        "style": "form",
        "explode": true,
        "schema": {
          "type": "integer",
          "default": 0
        }
      },
      "page-size": {
        "name": "page-size",
        "in": "query",
        "required": false,
        "style": "form",
        "explode": true,
        "schema": {
          "type": "integer",
          "default": 100
        }
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "BasicAuth": {
        "type": "http",
        "description": "Basic auth is used only for obtaining bearer tokens from the /v1/auth/token endpoint",
        "scheme": "basic"
      },
      "ApiClient": {
        "type": "oauth2",
        "description": "Jamf Pro API Roles and Clients provide a client ID and secret for obtaining access tokens using the OAuth2 client_credentials grant type",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/api/v1/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "x-si-base": "swagger.json",
  "x-github-repo": "jamf/Jamf-Pro-API-Schema",
  "x-github-sha": "5f8b85a61ce288205f7b44d478a117fb1acea0c6"
}
```