createEmailAddress()
Creates a new email address for the given user.
Returns the created EmailAddress object.
function createEmailAddress(params: CreateEmailAddressParams): Promise<EmailAddress>const response = await clerkClient.emailAddresses.createEmailAddress({
userId: 'user_123',
emailAddress: 'testclerk123@gmail.com',
primary: true,
verified: true,
})Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint POST/email_addresses. See the BAPI reference for more information.
Feedback
Last updated on