---
title: "Exchange a Device Authorization hand-off session for its selected API key"
method: POST
path: "/api/v1/device/finalize"
tags: ["Authentication"]
---

# Exchange a Device Authorization hand-off session for its selected API key

`POST /api/v1/device/finalize`

## Request

- Base URL: `https://api-docs.busabase.com`
- URL: `https://api-docs.busabase.com/api/v1/device/finalize`
- Auth: HTTP bearer

## Request body

- object
  - `deviceCode` string, required

## Response `200`

The one-time grant was consumed and the temporary session revoked.

- object
  - `apiKey` string, required
  - `apiKeyId` string, required
  - `expiresAt` string, required
  - `credentialType` unknown, required

## Other responses

- `401`: 401
- `403`: 403
- `409`: 409

---

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