I want to create a signup form that captures name and email and sends to our /register endpoint. The /register endpoint returns a unique email verification link that I’d like to redirect the user to.
I see docs for using Rules + API Connectors to pre-fill fields, but can’t find any examples for this use case. Is this supported?
Below is a quick example of how you could do it (after setting the API Connector to your endpoint):
const body = {
name: NameInput.value, // change to your own field name and request body format
email: EmailInput.value // change to your own field name and request body format
// ... other request body fields if needed
}
const response = await feathery.http.post("Your Endpoint URL", body);
// process your response to obtain the link if needed
// eg. const link = response.link
window.location.href = link;
Please let us know if you have further questions. Thank you.