Matter over WiFi nRF5340+nRF7002 (v2.6.1): How to retrieve (in the program) the WiFi credentials used in matter provisioning

Hi,
I have a project which uses Matter over WiFi and at the same time running a HTTP client.
I want to retrieve and use the WiFi credentials from the Matter over WiFi provisioning and use it as the WiFi credentials for my HTTP client.

Is there an API to retrieve the WiFi credentials used in the Matter over WiFi network?  

I tried wifi_credentials_for_each_ssid and wifi_credentials_get_by_ssid_personal_struct but it was not able to retrieve.
I am using NCS v2.6.1

Any help is very much appreciated. Thanks.


Related