---
title: "Register a device-code PKCE challenge"
method: POST
path: "/api/cli/auth/device/register"
tags: ["CLI Auth"]
---

# Register a device-code PKCE challenge

`POST /api/cli/auth/device/register`

## Request

- Base URL: `https://slidesfly.com`
- URL: `https://slidesfly.com/api/cli/auth/device/register`
- Auth: none required

## Request body

- object
  - `state` string, required
  - `code_challenge` string, required
  - `code_challenge_method` 'S256'

## Response `200`

Registered

- OkData
  - `ok` unknown, required
  - `data` unknown, required

## Other responses

- `401`: Missing or invalid credentials
- `429`: Rate limited

---

[API](https://skmtc.dev/slidesfly/apis/slidesfly-http-api.md) · [All operations](https://skmtc.dev/slidesfly/apis/slidesfly-http-api/llms.txt) · [OpenAPI document](https://skmtc.dev/slidesfly/apis/slidesfly-http-api/revisions/9da38f802ead?raw)
