---
title: "networkPassphraseRequest(with:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterwifinetworkmanagement/networkpassphraserequest(with:completion:)"
---

# networkPassphraseRequest(with:completion:)

Command NetworkPassphraseRequest

## Declaration

```swift
func networkPassphraseRequest(with params: MTRWiFiNetworkManagementClusterNetworkPassphraseRequestParams?, completion: @escaping @Sendable (MTRWiFiNetworkManagementClusterNetworkPassphraseResponseParams?, (any Error)?) -> Void)
```

```swift
func networkPassphraseRequest(with params: MTRWiFiNetworkManagementClusterNetworkPassphraseRequestParams?) async throws -> MTRWiFiNetworkManagementClusterNetworkPassphraseResponseParams
```

## Discussion

Discussion This command is used to request the current WPA-Personal passphrase or PSK associated with the Wi-Fi network provided by this device.
