Having troubles with api/v2/jobs/verification-email route

So, I trying to implement “resend verification email” functionality and I using api/v2/jobs/verification-email route. But each time I get an error "message": "Bad audience: <my audience>".
I’ve read all related topics on such error and each of them contains the solution with adding
"audience":"https://[tenant].eu.eu.auth0.com/api/v2/" audience.
But verification-email route doesn’t have such a parameter. So how can I handle this error?

Hello @kirill.kostenetskyi,

Are you able to share your code? I tested this endpoint in Postman and all I needed to provide was a valid bearer token and the JSON document:

{
  "user_id": "[user_id]"
}

@markd my issue was because of the wrong token. I was generating it for my main API. Instead, I need to create a new one for management API.
Thank anyway !

2 Likes

Glad you were able to eventually figure this one out @kirill.kostenetskyi!