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"
}