We need to send a “reset your password” email using our own email provider and our own template. So I need to request from Auth0 a URL that I can send in an email for the user to click. I’m using https://auth0.com/docs/api/management/v2/tickets/post-password-change. When I try, I keep getting this error:
POST https://<my-tenant>.auth0.com/api/v2/tickets/password-change
JSON:
{
"result_url": "https://my-homepage.com/",
"user_id": "google-oauth2|13456780",
"client_id": "<my-client-id>",
"connection_id": "con_1234567890",
"email": "email.address@gmail.com",
"ttl_sec": 0,
"mark_email_as_verified": true,
"includeEmailInRedirect": true
}
400 - Payload validation error: ‘Invalid property result_url’
But of course it doesn’t tell me why it’s an invalid result url. I’ve tried trailing slash, no trailing slash, https://, no https://, other dummy URLs, my own client application callback URL–nothing works.
Can someone please explain to me what the result_url
is supposed to look like, maybe with an example, or otherwise explain why my sample URL isn’t working?
Additionally, the API documentation doesn’t explain what the response format is. How do I get the URL out of the response?
Thanks.