---
title: "POST /api/device-codes/activate"
method: POST
path: "/api/device-codes/activate"
tags: ["device-codes"]
---

# POST /api/device-codes/activate

`POST /api/device-codes/activate`

## Request

- The document declares no server URL.
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/fermyon/apis/fermyon-cloud-api/docs/api/device-codes/activate/post.ts> (a function with typed inputs; its response is checked against the schema)

## Headers

- `Api-Version` string

## Request body

- ActivateDeviceCodeCommand
  - `userCode` string, required

## Response `200`

Success

## Changes

- **2023-03-10** `4650ad92794e`: 1 breaking, 1 info
  - request body became required
  - added the new optional `header` request parameter `Api-Version`

[Operation history](https://skmtc.dev/fermyon/apis/fermyon-cloud-api/changes/api/device-codes/activate/post.md)

---

[API](https://skmtc.dev/fermyon/apis/fermyon-cloud-api.md) - [All operations](https://skmtc.dev/fermyon/apis/fermyon-cloud-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fermyon/apis/fermyon-cloud-api/revisions/78d366daf86a?raw)
