Send SMS Message
Sends an SMS message to a contact through the lemlist inbox.
Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
Sender user ID. Must belong to the team owning the API key.
Sender phone number, in E.164 format. Must be a phone number provisioned on your team; an unknown, pending or deleted number fails with Failed to send SMS.
SMS body. lemlist variables such as {{firstName}} are resolved against the contact before sending, and the resolved message must not be empty.
Contact ID. Provide either contactId or leadId (not both required). Returned in the response.
Lead ID. Provide either contactId or leadId; when only leadId is sent, its contact is resolved and returned as contactId in the response.