---
title: "Exchange an auth code for device credentials"
method: POST
path: "/v1/device-agent/exchange-code"
tags: ["Device Agent"]
---

# Exchange an auth code for device credentials

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

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

## Request body

- ExchangeCodeDto

## 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)
