Call an API endpoint after a user signs up

I am trying to create a script on Auth0 (using Hook?) that after a new user signs up, it will call an API endpoint to do something else.

I’ve not yet successfully done it. I ran the test in Hook page, and the result shows 200, but my endpoint does not receive anything.

If I take out the endpoint, I would expect a 500 or 400 error, but it still shows 200.

Ultimately, how do I call an API after a new user signs up on Auth0?

I am using XMLHttpRequest package. Is that correct?

bumping for visibility

essentially I want the script to call curl -XPOST some_endpoint -h 'application/json' -d '{data:some_data}'

Okay figured out

use request package instead. simply specify method, url, data, header, etc.