createBulk()
Creates multiple waitlist entries for the given email addresses. If an email address is already on the waitlist, no new entry will be created and the existing waitlist entry will be returned.
Returns an array of created or existing WaitlistEntry objects.
function createBulk(params: WaitlistEntryBulkCreateParams): Promise<WaitlistEntry[]>// Each object in the array represents a single waitlist entry
const params = [
{
emailAddress: 'user1@example.com',
},
{
emailAddress: 'user2@example.com',
notify: true,
},
]
const response = await clerkClient.waitlistEntries.createBulk(params)Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint POST/waitlist_entries/bulk. See the BAPI reference for more information.
Feedback
Last updated on