I am trying to install to use the rest API, this code is working to add the user directly into the database, without DOI.
What I have to do to change so that the user will first receive the confirmation email?
Hi, the add API is reserved to server-to-server use otherwise you expose your secret api key! You should use the subscribe endpoint as explained in our documentation and, more, the add.php is a legacy file which is there only for compatibility, don’t use it.