---
title: "Get a single device"
method: GET
path: "/_matrix/client/v3/devices/{deviceId}"
tags: ["Device management"]
---

# Get a single device

`GET /_matrix/client/v3/devices/{deviceId}`

## Request

- Base URL: `https://matrix.org`
- URL: `https://matrix.org/_matrix/client/v3/devices/{deviceId}`
- Auth: one of:
  - API key in query parameter `access_token`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/matrix/apis/matrix-client-server-api/docs/_matrix/client/v3/devices/:deviceId/get.ts> (a function with typed inputs; its response is checked against the schema)

Gets information on a single device, by device id.

## Path parameters

- `deviceId` string, required

## Response `200`

Device information

- object: A client device
  - `device_id` string, required: Identifier of this device.
  - `display_name` string: Display name set by the user for this device. Absent if no name has been set.
  - `last_seen_ip` string: The IP address where this device was last seen. (May be a few minutes out of date, for efficiency reasons).
  - `last_seen_ts` integer: The timestamp (in milliseconds since the unix epoch) when this devices was last seen. (May be a few minutes out of date, for efficiency reasons).

## Other responses

- `404`: The current user has no device with the given ID.

---

[API](https://skmtc.dev/matrix/apis/matrix-client-server-api.md) - [All operations](https://skmtc.dev/matrix/apis/matrix-client-server-api/llms.txt) - [OpenAPI document](https://skmtc.dev/matrix/apis/matrix-client-server-api/revisions/c7fe4072c681?raw)
