---
title: "Create a device-agent auth code"
method: POST
path: "/v1/device-agent/auth-code"
tags: ["Device Agent"]
---

# Create a device-agent auth code

`POST /v1/device-agent/auth-code`

Create a device-agent auth code in Comp AI. Register employee devices, submit device compliance check-ins, download agent builds, and manage endpoint security status.

## Request body

- AuthCodeDto

## Response `201`

---

[API](https://skmtc.net/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.net/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/revisions/726b9523fb22/schema)
