Does Not Work - Custom Params in Redirect URL

Hi,

I’m trying to build an application that requires some additional data in the redirect URL after a user successfully creates an account. I’m using a machine-to-machine application for this, and calling the API to create a user as shown below:
URL:

https://{domain}.us.auth0.com/dbconnections/signup

Body:

{
    "client_id": "client_id",
    "email": "email",
    "password": "password",
    "connection": "Username-Password-Authentication",
    "user_metadata": {
        "my_custom_param": "test_value"
    }
}

I’ve set the redirect URL like this:

http://localhost:2323/test?customParam={{ user.user_metadata.my_custom_param }}&userId={{ user.id }}

However, the custom parameters in the redirect URL aren’t working as expected. Could someone help me achieve my goal?

Thanks!