Change password ticket : 400

I keep on getting 400 (Bad Request) when trying to trigger email for password rest both from my APP and from Auth0 API Explorer (See attached image).

What am i doing wrong? I have verified that management key has scope for

create:user_tickets

REQUEST

curl -L 'https://somepath.us.auth0.com/api/v2/tickets/password-change' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <key>' \
--data-raw '{"email":"some.user@hotmail.com"}'

Here is the error I am getting in API Explorer

RESPONSE BODY

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Bad HTTP authentication header format",
  "errorCode": "Bearer"
}

RESPONSE HEADER

{
  "cache-control": "no-cache",
  "content-length": "111",
  "content-type": "application/json; charset=utf-8"
}

Hi @SAUH,

Welcome to the Auth0 Community!

When you send the request with the user’s email, you must also include the connection_id.

Regarding the Bearer token error, ensure you’ve provided the correct Bearer token. You can test the Create a password change ticket endpoint of the Management API to make sure it works, and then test it in your app using your Bearer token.

If you have any other questions, feel free to reach out.

Have a good one,
Vlad