---
title: "Authorize code [Beta]"
method: POST
path: "/v1/codes/authorize"
---

# Authorize code [Beta]

`POST /v1/codes/authorize`

Use this endpoint to verify the code and authorize the device in Device Flow Login (PIN Pair) functionality.

## Headers

- `Authorization` string, required
- `Content-Type` string

## Request body

- object
  - `code` string, required — Code displayed on the device that needs to be authorized. Minimum length: 6. Maximum length: 6.
  - `additionalPayload` string — Additional payload to be passed to the requesting device. Example: `{ "phoneModel": "samsung" }`

## Response `200`

200

- object
  - `message` string

## Other responses

- `400` — 400
- `401` — 401
- `404` — 404
- `410` — 410
- `500` — 500

---

[API](https://skmtc.net/cleeng/apis/mediastore-api.md) · [All operations](https://skmtc.net/cleeng/apis/mediastore-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cleeng/mediastore-api/revisions/00cbfe7998a4/schema)
