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

# IoT Core Broker Service, gRPC: BrokerService.ListPasswords

Retrieves the list of passwords for the specified broker.

## gRPC request

**rpc ListPasswords ([ListBrokerPasswordsRequest](#yandex.cloud.iot.broker.v1.ListBrokerPasswordsRequest)) returns ([ListBrokerPasswordsResponse](#yandex.cloud.iot.broker.v1.ListBrokerPasswordsResponse))**

## ListBrokerPasswordsRequest {#yandex.cloud.iot.broker.v1.ListBrokerPasswordsRequest}

```json
{
  "broker_id": "string"
}
```

#|
||Field | Description ||
|| broker_id | **string**

Required field. ID of the broker to list passwords in.
To get a broker ID make a [BrokerService.List](list.md#List) request.

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

## ListBrokerPasswordsResponse {#yandex.cloud.iot.broker.v1.ListBrokerPasswordsResponse}

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

#|
||Field | Description ||
|| passwords[] | **[BrokerPassword](#yandex.cloud.iot.broker.v1.BrokerPassword)**

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

## BrokerPassword {#yandex.cloud.iot.broker.v1.BrokerPassword}

A broker password.

#|
||Field | Description ||
|| broker_id | **string**

ID of the broker 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. ||
|#