SMS
Retrieves all usage information for SMS messages sent to and from devices across all SIMs. The response includes delivery status, attempt counts, and other usage metrics to help track SMS communication with your devices.
Maximum number of SMS records to return
1000
Example: 100
Number of records to skip (for pagination)
0
Example: 10
Filter SMS records by ISO date (YYYY-MM-DD format)
2024-01-15
Pattern: ^\d{4}-\d{2}-\d{2}$
Temporal sort order for the results
DESC
Example: ASC
Possible values: OK
GET /sms/usage/ HTTP/1.1
Host: api.onomondo.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"data": [
{
"time": "2025-09-15T10:07:04.729Z",
"sim_id": "000000001",
"iccid": "89457300000000000011",
"direction": "incoming",
"status": "success",
"retries_left": 9,
"id": "aa9d092c-123c-4dcb-92eb-b8c10e56f336",
"session_id": "40846632-46c6-3bdb-a432-83df2bb082d9",
"network": {
"mcc": "238",
"mnc": "20"
}
},
{
"time": "2025-09-15T10:05:57.221Z",
"sim_id": "000000002",
"iccid": "89457300000000000021",
"direction": "outgoing",
"status": "success",
"retries_left": 9,
"id": "aebd97f8-e12d-4f2d-a497-3b354b37254a",
"session_id": "505c0ee6-7f0a-43ab-be6b-3454c165e81d",
"network": {
"mcc": "238",
"mnc": "20"
}
}
],
"pagination": {
"count": 2,
"limit": 50,
"offset": 0,
"total": 2
}
}
Retrieve all usage information for SMS messages sent to and from a specific device using its SIM ID. The response includes delivery status, attempt counts, and other usage metrics to help track SMS communication with your devices.
SIM ID
000000001
Maximum number of SMS records to return
1000
Example: 100
Number of records to skip (for pagination)
0
Example: 10
Filter SMS records by ISO date (YYYY-MM-DD format)
2024-01-15
Pattern: ^\d{4}-\d{2}-\d{2}$
Temporal sort order for the results
DESC
Example: ASC
Possible values: OK
GET /sms/usage/{sim_id} HTTP/1.1
Host: api.onomondo.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"data": [
{
"time": "2025-09-15T10:07:04.729Z",
"sim_id": "000000001",
"iccid": "89457300000000000011",
"direction": "incoming",
"status": "success",
"retries_left": 9,
"id": "aa9d092c-123c-4dcb-92eb-b8c10e56f336",
"session_id": "40846632-46c6-3bdb-a432-83df2bb082d9",
"network": {
"mcc": "238",
"mnc": "20"
}
}
],
"pagination": {
"count": 1,
"limit": 50,
"offset": 0,
"total": 1
}
}
Send SMS messages to a device using its SIM ID. Supports both text and binary SMS with different encoding options.
SMS Types:
Text SMS: Standard text messages (default)
Binary SMS: Raw binary data with hex or base64 encoding
For more information on the difference read How to send SMS using the Onomondo web app.
000000001
Sender identification - either numeric (up to 15 digits) or alphanumeric (up to 10 chars)
devTeam
Numeric sender ID (up to 15 digits)
Alphanumeric sender ID (1-10 characters, letters and numbers only)
^[a-zA-Z0-9]{1,10}$
Type of SMS message
text
Possible values: Encoding format for binary SMS (required when type is 'binary')
Message content. For text SMS, this is the actual message. For binary SMS, this is the encoded data (hex or base64).
OK
POST /sms/{sim_id} HTTP/1.1
Host: api.onomondo.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 40
{
"from": "devTeam",
"text": "hello world!"
}
OK
{
"message": "ok"
}
Last updated