Powershell script: get list member by REST API


I’m doing a Powershell script.

Sorry, I don’t know PowerShell and the different ways to request a REST API well.

I get a token to BITWARDEN REST API with:
Invoke-RestMethod -Method POST -Uri $identity_url/connect/token -Body $body).access_token

ANd now , I would like to get list member.

Someone can help me to do that , I suppose with Invoke-RestMethod on powershell?

Any help from you would be very useful to me.



Someone can help me?

I get a good token, but I want request,
$reponse= Invoke-RestMethod -Method POST -Uri $api_url/public/members -Headers $headers

i have the next error:
“object”: “error”,
“message”: “The request\u0027s model state is invalid.”,
“errors”: {
“”: [
“A non-empty request body is required.”