sms
Triggered when an SMS message is received or sent on one of your SIPSIM phone numbers.
When This Event Fires
- An SMS is received on your SIPSIM phone number
- An SMS is sent from your SIPSIM phone number
Payload
| Field | Type | Description |
|---|---|---|
event | string | Always "sms" |
caller | string | Sender phone number |
receiver | string | Recipient phone number |
message | string | SMS text content |
time | string | Timestamp of the SMS |
direction | string | "inbound" for received SMS, "outbound" for sent SMS |
Example Payload
Inbound SMS:
{
"event": "sms",
"caller": "+33612345678",
"receiver": "+33198765432",
"message": "Hi, I'd like to schedule a call for tomorrow at 2pm.",
"time": "2025-01-15T11:00:00Z",
"direction": "inbound"
}
Outbound SMS:
{
"event": "sms",
"caller": "+33198765432",
"receiver": "+33612345678",
"message": "Your appointment is confirmed for tomorrow at 2pm. See you then!",
"time": "2025-01-15T11:05:00Z",
"direction": "outbound"
}
Related Events
incoming_call_start— if the SMS leads to a call