---
title: "Add a device to a user"
method: POST
path: "/user/devices"
tags: ["user"]
---

# Add a device to a user

`POST /user/devices`

The User Devices endpoint will request stf server for a new device.

## Request body

- AddUserDevicePayload — payload object for adding device to user
  - `serial` string, required — Device Serial
  - `timeout` integer — Device timeout in ms. If device is kept idle for this period, it will be automatically disconnected. Default is provider group timeout

## Response `200`

Add User Device Status

## Other responses

- `default` — Unexpected Error

## Changes

- **2015-12-14** `70cb98a06468` — 1 breaking, 1 info
  - removed the success response with the status `202`
  - added the success response with the status `200`
- **2015-12-08** `5dc8b5d2bb76` — 1 breaking, 1 info
  - removed the success response with the status `200`
  - added the success response with the status `202`

[Change history](https://skmtc.dev/openstf/apis/smartphone-test-farm/changes/user/devices/post.md)

---

[API](https://skmtc.dev/openstf/apis/smartphone-test-farm.md) · [All operations](https://skmtc.dev/openstf/apis/smartphone-test-farm/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openstf/smartphone-test-farm/revisions/07b57b648bbb/schema)
