---
updatedAt: 2026-06-16T18:46:24.000Z
agentTools:
  siteIndex: https://developer.jamf.com/llms.txt
  projectIndex: https://developer.jamf.com/jamf-pro/llms.txt
---

# Finds scripts by name

script_contents_encoded is the equivalent of script_contents, but it has been Base 64 encoded.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "11.32.0",
    "title": "Classic API",
    "license": {
      "name": "Jamf API License Agreement",
      "url": "https://developer.jamf.com/developer-guide/docs/api-license-agreement"
    }
  },
  "security": [
    {
      "basicAuth": []
    }
  ],
  "x-readme": {
    "samples-languages": [
      "curl",
      "swift",
      "ruby",
      "python"
    ],
    "explorer-enabled": false
  },
  "paths": {
    "/scripts/name/{name}": {
      "get": {
        "tags": [
          "scripts"
        ],
        "summary": "Finds scripts by name",
        "description": "script_contents_encoded is the equivalent of script_contents, but it has been Base 64 encoded.",
        "operationId": "findScriptsByName",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "description": "Name to filter by",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/script"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/script"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://yourServer.jamfcloud.com/JSSResource"
    }
  ],
  "components": {
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    },
    "schemas": {
      "script": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 1
          },
          "name": {
            "type": "string",
            "example": "Decrypt Drive",
            "description": "Name of the script"
          },
          "category": {
            "type": "string",
            "example": "None"
          },
          "filename": {
            "type": "string"
          },
          "info": {
            "type": "string",
            "example": "Script information"
          },
          "notes": {
            "type": "string",
            "example": "Script to decrypt FV2 encrypted drives"
          },
          "priority": {
            "type": "string",
            "enum": [
              "Before",
              "After",
              "At Reboot"
            ]
          },
          "parameters": {
            "type": "object",
            "properties": {
              "parameter4": {
                "type": "string"
              },
              "parameter5": {
                "type": "string"
              },
              "parameter6": {
                "type": "string"
              },
              "parameter7": {
                "type": "string"
              },
              "parameter8": {
                "type": "string"
              },
              "parameter9": {
                "type": "string"
              },
              "parameter10": {
                "type": "string"
              },
              "parameter11": {
                "type": "string"
              }
            }
          },
          "os_requirements": {
            "type": "string"
          },
          "script_contents": {
            "type": "string",
            "example": "echo \"Sample script\""
          },
          "script_contents_encoded": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ]
      }
    }
  }
}
```