Skip to main content
POST
/
api
/
sms
/
send
Send an SMS
curl --request POST \
  --url https://api.recepta.ai/api/v1/api/sms/send \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "to": "+15551234567",
  "from": "+15559876543",
  "body": "Hi! Your appointment is confirmed for tomorrow at 2pm."
}
'
{
  "success": true,
  "message": "SMS sent successfully",
  "data": {
    "messageId": "69ab1d127e930a2684f4edb2",
    "conversationId": "69a5f5d966e89fbafd5c601f",
    "twilioSid": "SMf7704c3df4a56bfca5f2b5b9b4b74012",
    "status": "queued"
  }
}

Authorizations

x-api-key
string
header
required

Your Recepta API key (starts with rcp_)

Body

application/json
to
string
required

Recipient phone number (E.164)

Example:

"+15551234567"

from
string
required

Your Recepta phone number

Example:

"+15559876543"

body
string
required

Message content

Example:

"Hi! Your appointment is confirmed for tomorrow at 2pm."

Response

SMS sent successfully

success
boolean
Example:

true

message
string
Example:

"SMS sent successfully"

data
object