---
title: "Get agent install script"
method: GET
path: "/hosts/install"
tags: ["Agent / Install"]
---

# Get agent install script

`GET /hosts/install`

Returns the PatchMon agent installation script. Requires X-API-ID and X-API-KEY headers.

## Query parameters

- `force` string
- `arch` string

## Headers

- `X-API-ID` string, required
- `X-API-KEY` string, required

## Response `200`

OK - Returns text/plain shell script with env vars and bootstrap token

## Other responses

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

---

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