Auth0 Home Blog Docs

Call an API endpoint after a user signs up

lock

#1

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?


When a user signs up in Auth0, I want to create an account in my own database
#2

bumping for visibility


#3

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


#4

Okay figured out

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


#5