SIMs
Used for pagination of records.
MDAyNDY0OTk5The max number of records returned. Limit can be between 1 and 5000 records. Default is 1000 records.
10Filter SIMs based on various criteria. Can be provided as a single filter or multiple filters.
Single filter format: filter=key:value
Multiple filters format: filter[]=key:value&filter[]=key2:value2
Supported filter types:
online - Boolean filter for SIM online status
- Format:
online:trueoronline:false
activated - Boolean filter for SIM activation status
- Format:
activated:trueoractivated:false
connector - Filter by Connector name
- Format:
connector:<connector-name>
network_whitelist - Filter by Network List name
- Format:
network_whitelist:<whitelist-name>
filter[]=online:true&filter[]=connector:foobarOK
GET /sims HTTP/1.1
Host: api.onomondo.com
Authorization: Bearer YOUR_API_KEY
Accept: */*
OK
{
"count": 1,
"limit": 20,
"offset": 0,
"total": 1,
"sims": [
{
"id": "000002418",
"iccid": "89457387300000024185",
"label": null,
"network_whitelist": "Americas",
"imei_lock": null,
"connector": null,
"activated": false,
"ipv4": "100.66.131.197",
"online": false,
"online_at": null,
"last_came_online_at": "2021-11-01T12:13:39.627Z",
"network": {
"name": null,
"country": null,
"country_code": null,
"mcc": null,
"mnc": null
},
"technologies": {
"sms": true,
"2g_3g": true,
"4g": true
},
"usage": 0,
"tags": [
{
"name": "Supplier",
"id": "a5023f47-1db8-425e-b664-dc0b8921f644",
"can_write": false,
"color": "#5ba571"
},
{
"name": "Steens Products",
"id": "4c21c1ce-0e3d-445f-8b3a-9d918a9acd89",
"can_write": false,
"color": "#441212"
}
]
}
]
}000000001OK
GET /sims/{sim_id} HTTP/1.1
Host: api.onomondo.com
Authorization: Bearer YOUR_API_KEY
Accept: */*
OK
{
"id": "{{sim_id}}",
"msisdn": "882360011968393",
"iccid": "89457387300002791013",
"label": "Bene-getting-started-device",
"network_whitelist": "bene-excellent-testing-whitelist",
"imei_lock": null,
"imei": "861340049971524",
"imsi": "234500027179101",
"connector": "getting-started",
"activated": true,
"ipv4": "100.68.153.152",
"online_at": "2021-11-01T12:13:39.627Z",
"last_came_online_at": "2021-11-01T12:13:39.627Z",
"network": {
"name": "Telia",
"country": "Denmark",
"country_code": "DK",
"mcc": "238",
"mnc": "20"
},
"usage": 97606,
"tags": [
{
"name": "ConnectivityCheck Success",
"id": "8ebab849-af20-43ae-b59a-13e70e2a9932",
"can_write": false,
"color": null
}
],
"online": true,
"data_limit": {
"used": 248,
"total": 10000000,
"type": "hourly",
"period": "2021110112",
"alert_threshold": null,
"resets_at": "2021-11-01T13:00:00.000Z"
},
"location": {
"lat": 55.6821716,
"lng": 12.5824411,
"cell_id": 41963030,
"location_area_code": null,
"accuracy": 568
},
"device_info": {
"model": "SARA-R410M",
"manufacturer": "u-blox"
}
}A partial SIM id or label, as well as a complete ICCID.
?search=foobarWithout this parameter the default is 10. Limit can be between 1 and 5000 records.
10The number of first records returned. Used for pagination of records, otherwise will default to 0.
20OK
GET /sims/find?search=text HTTP/1.1
Host: api.onomondo.com
Authorization: Bearer YOUR_API_KEY
Accept: */*
OK
[
{
"id": "000002273",
"iccid": "89457387300000022734",
"label": "iphone",
"network_whitelist": "DK-UK-Only",
"imei_lock": null,
"connector": null,
"activated": true,
"online_at": "2020-09-30T05:52:21.953Z",
"last_came_online_at": "2020-09-30T05:52:21.953Z",
"network": {
"name": "Telia",
"country": "Denmark",
"country_code": "DK",
"mcc": "238",
"mnc": "20"
},
"ipv4": "100.64.237.173",
"usage": 568222249,
"tags": [
{
"name": "Product A",
"id": "aef0c9c8-f6d5-4e93-a330-1f59d5093d92",
"can_write": false,
"color": "#5b8fa5"
}
],
"location": {
"lat": null,
"lng": null,
"cell_id": 39457,
"location_area_code": 632,
"accuracy": null
}
},
{
"id": "000002417",
"iccid": "89457387300000024177",
"label": "test-device",
"network_whitelist": "nordics-only",
"imei_lock": null,
"connector": null,
"activated": true,
"online_at": null,
"last_came_online_at": "2020-09-30T05:52:21.953Z",
"network": {
"name": null,
"country": null,
"country_code": null,
"mcc": null,
"mnc": null
},
"ipv4": "100.66.131.195",
"usage": 0,
"tags": [
{
"name": "Steens Products",
"id": "4c21c1ce-0e3d-445f-8b3a-9d918a9acd89",
"can_write": false,
"color": "#441212"
}
]
},
{
"id": "000002418",
"iccid": "89457387300000024185",
"label": null,
"network_whitelist": "Americas",
"imei_lock": null,
"connector": null,
"activated": false,
"online_at": null,
"last_came_online_at": "2020-09-30T05:52:21.953Z",
"network": {
"name": null,
"country": null,
"country_code": null,
"mcc": null,
"mnc": null
},
"ipv4": "100.66.131.197",
"usage": 0,
"tags": [
{
"name": "Steens Products",
"id": "4c21c1ce-0e3d-445f-8b3a-9d918a9acd89",
"can_write": false,
"color": "#441212"
},
{
"name": "Supplier",
"id": "a5023f47-1db8-425e-b664-dc0b8921f644",
"can_write": false,
"color": "#5ba571"
}
]
}
]000000001application/jsonA string alias of the SIM, null if no alias to be assigned.
My IoT DeviceName of the Network List attached, null if no Network List should be attached.
production-whitelistString IMEI of device the SIM should be locked to (if presented in network signaling) or a null value.
123456789012345Name of Connector attached, set to null if no Connector should be attached.
my-connectorBoolean to activate and deactivate the SIM.
trueAn array of Tag IDs to be associated with a SIM. Tag IDs require string format and can be obtained using GET /tags endpoint. Caution: Include all Tags you want to keep plus any new ones, as this replaces the entire list of Tags.
["tag-id-1","tag-id-2"]OK
PATCH /sims/{sim_id} HTTP/1.1
Host: api.onomondo.com
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"label": "Updated Device Name",
"activated": true
}OK
{
"id": "000279101",
"msisdn": "882360011968393",
"iccid": "89457387300002791013",
"label": "test-device",
"network_whitelist": "bene-excellent-testing-whitelist",
"imei_lock": null,
"imei": "861340049971524",
"imsi": "234500027179101",
"connector": "getting-started",
"activated": true,
"ipv4": "100.68.153.152",
"online_at": null,
"network": {
"name": "Telia",
"country": "Denmark",
"country_code": "DK",
"mcc": "238",
"mnc": "20"
},
"usage": 97854,
"tags": [
{
"name": "getting-started product",
"id": "4c21c1ce-0e3d-445f-8b3a-9d918a9acd89",
"can_write": false,
"color": "#AB7D63"
},
{
"name": "Developer",
"id": "a5023f47-1db8-425e-b664-dc0b8921f644",
"can_write": true,
"color": "#5ba571"
}
],
"data_limit": {
"used": 744,
"total": 10000000,
"type": "hourly",
"period": "2021110112",
"alert_threshold": null,
"resets_at": "2021-11-01T13:00:00.000Z"
},
"location": {
"lat": 55.6821716,
"lng": 12.5824411,
"cell_id": 41963030,
"location_area_code": null,
"accuracy": 568
}
}application/jsonOK
PATCH /sims/bulk HTTP/1.1
Host: api.onomondo.com
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 313
{
"sims": [
{
"id": "000001934",
"connector": "https-connector",
"data_limit": {
"total": 50000000,
"type": "monthly",
"alert_threshold": 25000000
}
},
{
"id": "000279139",
"label": "jasons-device",
"data_limit": {
"total": 1000000,
"type": "hourly",
"alert_threshold": 750000
}
},
{
"id": "000210799",
"network_whitelist": "{{network_whitelist}}"
}
]
}OK
{"id":"000001934","success":true}
{"id":"000279139","success":true}
{"id":"000210799","success":true}
0000000017b6c2c22-dab6-482d-af43-0d673c6717fdOK
Bad Request
PUT /sims/{sim_id}/tags/{tag_id} HTTP/1.1
Host: api.onomondo.com
Authorization: Bearer YOUR_API_KEY
Accept: */*
{
"message": "ok"
}0000000017b6c2c22-dab6-482d-af43-0d673c6717fdOK
Bad Request
DELETE /sims/{sim_id}/tags/{tag_id} HTTP/1.1
Host: api.onomondo.com
Authorization: Bearer YOUR_API_KEY
Accept: */*
{
"message": "ok"
}Last updated