Skip to main content
POST
/
v1.0
/
message
/
sms
/
send
Send SMS
curl --request POST \
  --url https://api.lofty.com/v1.0/message/sms/send \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "content": "Hello, this is a test message",
  "leadId": 563172647619608,
  "phoneNumber": "5865865860",
  "phoneCode": "1"
}
'
{
  "messageId": "<string>",
  "phoneNumber": "<string>",
  "phoneCode": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://developer.lofty.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

Authorization
string
required

Bearer [access_token]

Content-Type
string
required

application/json

Body

application/json

SMS request payload.

content
string
required

SMS content

Example:

"Hello, this is a test message"

leadId
integer<int64>
required

Lead ID. When phoneNumber and phoneCode are not provided or no matching phone is found for the lead, the system will use the primary phone number of this lead.

Example:

563172647619608

phoneNumber
string

Recipient phone number

Example:

"5865865860"

phoneCode
string

Recipient phone code

Example:

"1"

Response

SMS delivered to the provider. Response contains the message ID and destination.

messageId
string

The ID of the SMS message

phoneNumber
string

Recipient phone number

phoneCode
string

Recipient phone code