createSMSMessage()
Sends an SMS message to a phone number ID belonging to another user:
const phoneNumberId = 'recipient-phone-number-id'; const message = 'All glory to the Hypnotoad!'; const smsMessage = await clerkClient.smsMessages.createSMSMessage({ message, phoneNumberId });
Required parameters
Name | Type | Description |
---|---|---|
phoneNumberId | string | The ID of the phone number to send the message to. |
message | string | The message to send. |