Rules for Signup is not invoked when I use REST API(endpoint for signup)

I found another thread with a similar issue (thread is closed)

@jmangelo Are Pre-User-Registration hooks the only way to run something after both a Signup from the Custom Signup API, and signup through the Universal Login Lock web form?

We are only using password type token retrieval, not Auth Code type, like the Universal Login form uses.