Skip to main content

Send a message

curl -X POST https://developer.mycpaas.io/api/laml/2010-04-01/Accounts/YOUR_ACCOUNT_SID/Messages.json \
  -u YOUR_ACCOUNT_SID:YOUR_AUTH_TOKEN \
  -d "To=+491234567890" \
  -d "From=+491098765432" \
  -d "Body=Hello from mycpaas"

Parameters

ParameterRequiredDescription
ToRecipient phone number (E.164 format)
FromYour mycpaas sender number
BodyMessage text
MediaUrlURL of media attachment (MMS)
StatusCallbackWebhook URL for status updates

Response

{
  "sid": "SM_YOUR_MESSAGE_SID",
  "to": "+491234567890",
  "from": "+491098765432",
  "body": "Hello from mycpaas",
  "status": "queued",
  "date_created": "2026-04-19T10:00:00Z"
}

List messages

cURL
curl https://developer.mycpaas.io/api/laml/2010-04-01/Accounts/YOUR_ACCOUNT_SID/Messages.json \
  -u YOUR_ACCOUNT_SID:YOUR_AUTH_TOKEN

Message status values

StatusMeaning
queuedMessage accepted, waiting to be sent
sendingCurrently being sent
sentSuccessfully delivered to carrier
deliveredConfirmed delivery to recipient
failedDelivery failed
undeliveredCould not be delivered