[Yandex Cloud documentation](../../../../index.md) > [Yandex IoT Core](../../../index.md) > Devices API reference > [gRPC](../index.md) > [Device](index.md) > ListPasswords

# IoT Core Service, gRPC: DeviceService.ListPasswords

Retrieves the list of passwords for the specified device.

## gRPC request

**rpc ListPasswords ([ListDevicePasswordsRequest](#yandex.cloud.iot.devices.v1.ListDevicePasswordsRequest)) returns ([ListDevicePasswordsResponse](#yandex.cloud.iot.devices.v1.ListDevicePasswordsResponse))**

## ListDevicePasswordsRequest {#yandex.cloud.iot.devices.v1.ListDevicePasswordsRequest}

```json
{
  "device_id": "string"
}
```

#|
||Field | Description ||
|| device_id | **string**

Required field. ID of the registry to list passwords in.
To get a registry ID make a [RegistryService.List](../Registry/list.md#List) request.

The maximum string length in characters is 50. ||
|#

## ListDevicePasswordsResponse {#yandex.cloud.iot.devices.v1.ListDevicePasswordsResponse}

```json
{
  "passwords": [
    {
      "device_id": "string",
      "id": "string",
      "created_at": "google.protobuf.Timestamp"
    }
  ]
}
```

#|
||Field | Description ||
|| passwords[] | **[DevicePassword](#yandex.cloud.iot.devices.v1.DevicePassword)**

List of passwords for the specified device. ||
|#

## DevicePassword {#yandex.cloud.iot.devices.v1.DevicePassword}

A device password.

#|
||Field | Description ||
|| device_id | **string**

ID of the device that the password belongs to. ||
|| id | **string**

ID of the password. ||
|| created_at | **[google.protobuf.Timestamp](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#timestamp)**

Creation timestamp. ||
|#