---
title: "Enroll a host"
method: POST
path: "/auto-enrollment/enroll"
tags: ["Auto-enrollment"]
---

# Enroll a host

`POST /auto-enrollment/enroll`

Enroll a new host. Requires X-Auto-Enrollment-Key and X-Auto-Enrollment-Secret headers.

## Headers

- `X-Auto-Enrollment-Key` string, required
- `X-Auto-Enrollment-Secret` string, required

## Request body

- object
  - `friendly_name` string
  - `machine_id` string

## Response `201`

Created

- object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `429` — Too Many Requests
- `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)
