---
title: "Get enrollment script"
method: GET
path: "/auto-enrollment/script"
tags: ["Auto-enrollment"]
---

# Get enrollment script

`GET /auto-enrollment/script`

Returns the auto-enrollment script. Authenticate via token_key and token_secret query params, or X-Auto-Enrollment-Key and X-Auto-Enrollment-Secret headers.

## Query parameters

- `token_key` string
- `token_secret` string
- `type` string
- `force` string

## Response `200`

OK - Returns text/plain shell script (direct-host or proxmox-lxc)

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/patchmon/apis/patchmon-integration-api.md) · [All operations](https://skmtc.dev/patchmon/apis/patchmon-integration-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/patchmon/patchmon-integration-api/revisions/279031113463/schema)
