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

# Authorize code \[Beta\]

`POST /v1/codes/authorize`

## Request

- Base URL: `https://auth.api.sandbox.cleeng.com`
- URL: `https://auth.api.sandbox.cleeng.com/v1/codes/authorize`
- Auth: API key in header `Authorization`

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.dev/cleeng/apis/authentication-api.md) - [All operations](https://skmtc.dev/cleeng/apis/authentication-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cleeng/apis/authentication-api/revisions/e41656c81b43?raw)
