---
title: "Poll a device login; receives the key once"
method: POST
path: "/auth/device/token"
tags: ["Auth"]
---

# Poll a device login; receives the key once

`POST /auth/device/token`

## Request

- Base URL: `https://app.makeaivideo.ai/api/v1`
- URL: `https://app.makeaivideo.ai/api/v1/auth/device/token`
- Auth: none required

## Request body

- object
  - `device_code` string, required

## Response `200`

pending | slow_down | expired | denied | authorized

- object
  - `data` object
    - `status` 'pending' | 'slow_down' | 'expired' | 'denied' | 'authorized'
    - `api_key` string: Only on authorized; shown once
    - `api_key_id` integer
    - `scopes` string[]
    - `organization_id` integer
    - `user` object, nullable
  - `error` unknown
  - `meta` Meta
    - `request_id` string
    - `timestamp` string, date-time

---

[API](https://skmtc.dev/makeaivideo/apis/makeaivideo-api.md) · [All operations](https://skmtc.dev/makeaivideo/apis/makeaivideo-api/llms.txt) · [OpenAPI document](https://skmtc.dev/makeaivideo/apis/makeaivideo-api/revisions/8c6351087d6d?raw)
