Create member with confirmation email through Admin API

I was using the embeddable signup form on one of my websites but it seems to load in a ton of JavaScript (a whole copy of React it seems) which causes the layout of the page to shift because it takes time for the form to load after the page has loaded.

Therefor, I created a form myself and call the Admin API through a lambda function to create new members. But this immediately adds users to my list without sending a confirmation email.

Is there a way to have users added through the Admin API after a confirmation email?
If not, is there a way to have an embeddable signup form that loads immediately and is not added dynamically through JavaScript?

Yeah there’s a send magic link endpoint.

Best part is you don’t need the lambda function either!

And where do I find this endpoint?

Oops sorry, I thought it was in the docs I linked you! I’ve got it covered here (towards the end)

Thanks so much, that works!

I used the example of the magic link with the integrity token and noticed that it now says:

emailType: 'signin',

but that should be:

emailType: 'signup',

when creating a new member.

One more question, are any other options for the fetch call listed anywhere?

I call the members API through an AWS Lambda function and now the location of each new member says “Virginia, US” since that’s where the lambda is deployed. I would like to keep that empty or maybe list the correct location if that is possible somehow.

The send magic link probably doesn’t need to go through your lambda function - that’ll avoid getting the wrong geolocation. If it does (maybe you have other logic also happening that can’t be in the browser?), you may need to look at source and/or watch a network call in the browser (portal uses this endpoint) to see if you can figure out additional endpoints. Or maybe you can just set a header? Not sure :)

Ah yes you’re right. I was using a lambda to not expose my API key on the frontend but with the integrity key I guess that’s not a problem. I’ll try to do it directly from the frontend without the lambda.

Thanks again!

Right, the send magic link doesn’t need an api key and you should t give it one :)