---
title: "Pair device"
method: POST
path: "/v1/devices/{dongleId}/pair"
tags: ["devices"]
---

# Pair device

`POST /v1/devices/{dongleId}/pair`

## Request

- Base URL: `https://api.comma.ai`
- URL: `https://api.comma.ai/v1/devices/{dongleId}/pair`
- Auth: HTTP bearer

Pair a device to a user's account.

## Request body

- object
  - `user_id` string, required: A unique 16-character hexadecimal string. Can represent a device or a user.

## Response `200`

Operation successful

- object
  - `success` 1, required

## Changes

- **2022-11-27** `5b1478ce801f`: 1 info
  - api tag `devices` added
- **2022-11-27** `04af598547de`: 1 info
  - the endpoint scheme security `AuthUser` was added to the API

[Operation history](https://skmtc.dev/comma/apis/comma-api/changes/v1/devices/:dongleId/pair/post.md)

---

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