API Endpoint: Once you deploy this workflow, you'll get a unique webhook URL. Use this URL to send POST requests.
Request Format: Send JSON data with the following structure:
Example cURL request:
curl -X POST YOUR_WEBHOOK_URL \
-H "Content-Type: application/json" \
-d '{"name": "John Doe", "email": "[email protected]"}'
Example JavaScript fetch:
fetch('YOUR_WEBHOOK_URL', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: 'John Doe',
email: '[email protected]'
})
});
The API will automatically store the name and email in your MongoDB "waitlist" collection.