{"info":{"_postman_id":"6b1dc850-1bbf-4861-b734-97220951b9b7","name":"Simbase API v1 Reference","description":"<html><head></head><body><h1 id=\"simbase-api-v2-is-now-available\">🎉 Simbase API v2 is now available! 🎉</h1>\n<p>The new iteration of the Simbase Public API is now available to everyone!</p>\n<p>Documentation is now held at the <a href=\"https://developer.simbase.com\"><b>Simbase Developer Portal (developer.simbase.com)</b></a>.</p>\n<hr>\n<p>If you are new to Simbase APIs, please skip this API version as it won't be accessible with API Keys created on your account.</p>\n<p>If you are currently using API v1, we highly recommend you check out API v2 and its new enhancements, including:</p>\n<ul>\n<li><p>Scoped API Keys to enhance the security of your resources</p>\n</li>\n<li><p>Consistent and robust endpoints with standardized data structures, formats and types</p>\n</li>\n<li><p>Brand new features!</p>\n</li>\n</ul>\n<blockquote>\n<p>❗ HEADS UP ❗<br>Newly created API keys will <strong>NOT</strong> work with API v1. Your current API keys will continue to work indefinitely and Simbase API v1 will stick around for the foreseeable future. </p>\n</blockquote>\n<p>This is to ensure that the authorization scopes you select at creation will be enforced, something that this API version does not support.<br>If you are still using Simbase API v1, can not migrate to Simbase API v2 and need new API Keys to be authorized on Simbase API v1, let us know at <a href=\"https://mailto:support@simbase.com\"><b>support@simbase.com</b></a></p>\n<hr>\n<h2 id=\"simbase-api-v1-reference\">Simbase API v1 Reference</h2>\n<h6 id=\"the-simbase-api-is-organized-around-rest-it-helps-you-manage-and-deploy-cellular-iot-devices-around-the-world-at-scale-we-use-predictable-and-clear-resource-oriented-urls-that-utilize-built-in-http-features-like-authentication-verbs-and-error-codes-copy-and-paste-examples-and-use-any-http-client-in-any-language-to-make-requests-or-import-this-collection-directly-into-postman\">The Simbase API is organized around <a href=\"http://en.wikipedia.org/wiki/Representational_State_Transfer\">REST</a>. It helps you manage and deploy cellular IoT devices around the world at scale. We use predictable and clear resource-oriented URLs that utilize built-in HTTP features like authentication, verbs and error codes. Copy and paste examples and use any HTTP client in any language to make requests, or import this collection directly into <a href=\"https://www.getpostman.com/\">Postman</a>.</h6>\n<p><strong>To get started and see the results, make sure to</strong> <a href=\"https://store.simbase.com/\"><b>get a Simbase SIM</b></a> <strong>and</strong> <a href=\"https://dashboard.simbase.com/auth/signup\"><b>sign-up</b></a> <strong>or</strong> <a href=\"https://dashboard.simbase.com/auth/signin\"><b>login</b></a> <strong>to our</strong> <a href=\"https://dashboard.simbase.com/\"><b>dashboard</b></a><strong>.</strong></p>\n<h2 id=\"about-the-simbase-api\">About the Simbase API</h2>\n<p>Simbase continuously adds more APIs and features. If you have questions or have any requests for future APIs, <a href=\"https://www.simbase.com/support-request\">submit a support request</a> or create a feature request at <a href=\"https://feedback.simbase.com\">https://feedback.simbase.com</a>.</p>\n<p>All customers can use the API free of charge. Please be aware that some API calls trigger events, like sending an SMS, that bear costs. The SMS message is billed according to the rate plan assigned to your SIM card.</p>\n<hr>\n<h1 id=\"authentication\">Authentication</h1>\n<p>To make a successful API call, you need your account's API key. You can obtain and reset your API key in the <a href=\"https://dashboard.simbase.com\">Simbase dashboard</a>. Log in and go to 'API Key' under 'Settings'. API keys are only visible for Admin users.</p>\n<p>To make a successful API call put the header below in every API call:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\"x-api-key\":\"{{Your API Key}}\" }\n\n</code></pre><hr>\n<h1 id=\"rate-limits\">Rate limits</h1>\n<p>Please limit your request to a maximum of 10 calls/second and 5000 calls/day. Should you require more calls, <a href=\"https://www.simbase.com/support-request\">submit a support request</a></p>\n<hr>\n<h1 id=\"global-variables\">Global Variables</h1>\n<h4 id=\"device_name-string\">device_name [STRING]</h4>\n<p>The device_name is a custom identifier you can assign to a SIM card. The value will also appear in the <a href=\"https://dashboard.simbase.com\">dashboard</a>.</p>\n<h4 id=\"iccid-sim-barcode-string\">iccid (SIM Barcode) [string]</h4>\n<p>To address an individual SIM card in your account, the API requires an <a href=\"https://en.wikipedia.org/wiki/SIM_card#ICCID\">iccid</a> to identify the subscription. The iccid is the barcode printed on the SIM card. You can get an overview of the iccid's in the <a href=\"https://dashboard.simbase.com\">dashboard</a> of your account, or call the 'sims' API.</p>\n<h4 id=\"plan_id-string\">plan_id [STRING]</h4>\n<p>The plan_id is the identifier of the rate plan that is assigned to this SIM card. A rate plan is a commercial plan or bundle, that defines how usage of a SIM card is billed.</p>\n<h4 id=\"sim_state-string\">sim_state [STRING]</h4>\n<p>There are 4 SIM states that you can assign to your SIM card. The different SIM states have implications on service- and billing states.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>SIM State</th>\n<th>Service</th>\n<th>Billable</th>\n<th>Remark</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>enabled</td>\n<td>All services are allowed</td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td>disabled</td>\n<td>All services are blocked</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td>Blocked - enabled</td>\n<td>All services are blocked</td>\n<td>No</td>\n<td>A top-up is required to start using the card again.</td>\n</tr>\n<tr>\n<td>Blocked - disabled</td>\n<td>All services are blocked</td>\n<td>No</td>\n<td>A top-up is required to start using the card again.</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"usage_data-integer\">usage_data [INTEGER]</h4>\n<p>The aggregated data usage of a SIM in bytes for the current calendar month. Please note that 1MB = 1024kb = 1048576 bytes.</p>\n<h4 id=\"sms_sent-integer\">sms_sent [INTEGER]</h4>\n<p>The number of SMS messages sent by this SIM card during this calendar month.</p>\n<h4 id=\"sms_received-integer\">sms_received [INTEGER]</h4>\n<p>The number of SMS messages received by this SIM card during this calendar month.</p>\n<hr>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"🎉 Simbase API v2 is now available! 🎉","slug":"simbase-api-v2-is-now-available"},{"content":"Authentication","slug":"authentication"},{"content":"Rate limits","slug":"rate-limits"},{"content":"Global Variables","slug":"global-variables"}],"owner":"20506410","collectionId":"6b1dc850-1bbf-4861-b734-97220951b9b7","publishedId":"UVz1Psex","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"123466","highlight":"FF5745"},"publishDate":"2022-04-13T14:10:56.000Z"},"item":[{"name":"SIM Cards","item":[{"name":"SIM cards","id":"ad908f94-7915-4931-b416-f97a806d1d54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://api.simbase.com/simcards?coverage=Global+&pagesize=20&page=2","description":"<p>Call this API to retrieve all the SIM cards registered to your account. Optionally, you can filter on specific identifiers, such as sim_state, coverage, and tags. It is also possible to search on text values, for example (a part of) the device, iccid, etc with the search parameter.</p>\n<p>A maximum of 250 cards is returned in one response message. You can set the number of SIM cards in the return message with the pagesize param. To retrieve the next 'page' of SIM cards, use the page parameter. The response will always return the total number of pages found by your search query.</p>\n<h2 id=\"response-body\">Response body</h2>\n<p><strong>total_records:</strong> The total number of records found in the database with the applied search query.</p>\n<p><strong>records:</strong> The total number of records in this response. The maximum is 250 and this number can be reduced with the pagesize param.</p>\n<p><strong>total_pages:</strong> The total number of 'pages' based on the query-based result from the database and the maximum number of records per page param (pagesize).</p>\n<p><strong>page:</strong> The page number of this page.</p>\n<p><strong>sims[coverage]:</strong> Geographical coverage where this SIM card can be used.</p>\n<p><strong>sims[device_name]:</strong> Custom identifier assigned to this SIM that facilitates easy identification.</p>\n<p><strong>sims[ip_address]:</strong> If a static IP is assigned to this SIM card, this value will show that IP. If no static IP is assigned, the API will return 'Dynamic'.</p>\n<p><strong>sims[sim_state]:</strong> Network state of this SIM card.</p>\n<p><strong>sims[tags]:</strong> Tags that are assigned to this SIM card. Tags are an easy way to categorize SIM cards into groups.</p>\n<p><strong>sims[last_update]:</strong> Timestamp in UTC when the last Call Detail Record (cdr) for this SIM card was received.</p>\n<p><strong>sims[usage_sms_mo]:</strong> Total number of sent SMS messages (Mobile Originated) by the device during the current calendar month.</p>\n<p><strong>sims[usage_sms_mt]:</strong> Total number of received (Mobile Terminated) sms messages by the device during the current calendar month.</p>\n<p><strong>sims[usage_data]:</strong> Total number of bytes sent to and from the device during the current calendar month. Please note that 1MB = 1024 kB = 1048576 bytes.</p>\n","auth":{"type":"apikey","apikey":{"value":"YoUR ApI KeY 1234","key":"<key>"},"isInherited":true,"source":{"_postman_id":"6b1dc850-1bbf-4861-b734-97220951b9b7","id":"6b1dc850-1bbf-4861-b734-97220951b9b7","name":"Simbase API v1 Reference","type":"collection"}},"urlObject":{"protocol":"https","path":["simcards"],"host":["api","simbase","com"],"query":[{"disabled":true,"description":{"content":"<p>Can be either 'enabled' or 'disabled'.</p>\n","type":"text/plain"},"key":"sim_state","value":"enabled"},{"description":{"content":"<p>Array of coverages to filter for. Please note that this is an OR filter. Possible options are: 'USA', 'Americas', 'Europe', 'Oceania', 'Global' and 'Global+'</p>\n","type":"text/plain"},"key":"coverage","value":"Global+"},{"disabled":true,"description":{"content":"<p>Array of tags that are assigned to a SIM. Please note that this filter is an OR filter.</p>\n","type":"text/plain"},"key":"tags","value":"Test SIM"},{"disabled":true,"description":{"content":"<p>String to search for in the database. Can be (parts of) device_name or ip_address.</p>\n","type":"text/plain"},"key":"search","value":"test device"},{"description":{"content":"<p>Number of maximum number of SIM cards returned in the API response. If no value is specified max 250 will be returned.</p>\n","type":"text/plain"},"key":"pagesize","value":"20"},{"description":{"content":"<p>Page number. If no page number is specified, page 1 is returned.</p>\n","type":"text/plain"},"key":"page","value":"2"}],"variable":[]}},"response":[{"id":"52314a7d-18e7-4f04-800d-b3a5a31c2023","name":"SIM cards","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":{"raw":"https://api.simbase.com/simcards?sim_state=enabled&coverage=Global+,Europe&tags=Test SIM&search=test&pagesize=10&page=2","protocol":"https","host":["api","simbase","com"],"path":["simcards"],"query":[{"key":"sim_state","value":"enabled","description":"Can be either 'enabled' or 'disabled'."},{"key":"coverage","value":"Global+,Europe","description":"Array of coverages to filter for. Please note that this is an OR filter. Possible options are: 'USA', 'Americas', 'Europe', 'Oceania', 'Global' and 'Global+'"},{"key":"tags","value":"Test SIM","description":"Array of tags that are assigned to a SIM. Please note that this filter is an OR filter."},{"key":"search","value":"test","description":"String to search for in the database. Can be (parts of) device_name or ip_address."},{"key":"pagesize","value":"10","description":"Number of maximum number of SIM cards returned in the API response. If no value is specified max 250 will be returned."},{"key":"page","value":"2","description":"Page number. If no page number is specified, page 1 is returned. If you specify a number higher than the total number of pages, the last page is returned."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1293"}],"cookie":[],"responseTime":null,"body":"{\n    \"total_records\": 4,\n    \"records\": 4,\n    \"total_pages\": 1,\n    \"page\": 1,\n    \"sims\": [\n        {\n            \"usage_sms_mo\": 3,\n            \"usage_data\": 456768798,\n            \"usage_voice\": 0,\n            \"coverage\": \"Europe\",\n            \"iccid\": \"8912300000000000001\",\n            \"sim_state\": \"enabled\",\n            \"usage_sms_mt\": 0,\n            \"device_name\": \"test SIM 14\",\n            \"tags\": [\n                \"Test SIM\"\n            ],\n            \"ip_address\": \"10.0.0.14\",\n            \"last_update\": \"2022-03-23 18:00:45\"\n        },\n        {\n            \"usage_sms_mo\": 2,\n            \"usage_data\": 74031104,\n            \"usage_voice\": 0,\n            \"coverage\": \"Europe\",\n            \"iccid\": \"8912300000000000002\",\n            \"sim_state\": \"enabled\",\n            \"usage_sms_mt\": 2,\n            \"device_name\": \"test SIM 22\",\n            \"tags\": [\n                \"Test SIM\"\n            ],\n            \"ip_address\": \"10.0.0.22\",\n            \"last_update\": \"2022-04-07 10:40:25\"\n        },\n        {\n            \"usage_sms_mo\": 1,\n            \"usage_data\": 13423341,\n            \"usage_voice\": 0,\n            \"coverage\": \"Europe\",\n            \"iccid\": \"8912300000000000003\",\n            \"sim_state\": \"enabled\",\n            \"usage_sms_mt\": 0,\n            \"device_name\": \"test sim 23\",\n            \"tags\": [\n                \"Test SIM\"\n            ],\n            \"ip_address\": \"10.0.0.23\",\n            \"last_update\": \"2022-03-22 12:55:21\"\n        },\n        {\n            \"usage_sms_mo\": 0,\n            \"usage_data\": 0,\n            \"usage_voice\": 0,\n            \"coverage\": \"Global+\",\n            \"iccid\": \"8912300000000000004\",\n            \"sim_state\": \"enabled\",\n            \"usage_sms_mt\": 0,\n            \"device_name\": \"test sim 2\",\n            \"tags\": [\n                \"Test SIM\"\n            ],\n            \"ip_address\": \"10.0.0.2\",\n            \"last_update\": \"2021-07-22 14:23:56\"\n        }\n    ]\n}"}],"_postman_id":"ad908f94-7915-4931-b416-f97a806d1d54"},{"name":"Get SIM","id":"6bf05b2b-3e5c-42b7-a780-01a4fb746ce3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://api.simbase.com/simcards/8912300000000000001","description":"<p>Use this API to obtain a detailed overview of a specific SIM card in your account.</p>\n<h2 id=\"response-body\">Response body</h2>\n<p><strong>apn:</strong> Access Point Name that is provisioned on this SIM card and that should be set in the device.</p>\n<p><strong>carrier:</strong> Last mobile network carrier that registered this SIM card on its network.</p>\n<p><strong>country:</strong> Country where this SIM was lastly registered.</p>\n<p><strong>country_iso:</strong> 2 letters ISO code of the country where this SIM was lastly registered.</p>\n<p><strong>coverage:</strong> Country where this SIM was last seen.</p>\n<p><strong>device_name:</strong> Custom identifier assigned to this SIM that facilitates easy identification.</p>\n<p><strong>hardware:</strong> Based on the IMEI, we have identified the brand and model of the manufacturer of the hardware that was last used by the customer.</p>\n<p><strong>imei:</strong> Last registered International Mobile Equipment Identity (IMEI) number that was registered by the network.</p>\n<p><strong>imei_lock:</strong> If the IMEI lock or theft protection is enabled on the SIM card, the SIM will automatically be disabled when a new IMEI number is detected by the network.</p>\n<p><strong>ip_address:</strong> If a static IP is assigned to this SIM card, this value will show that IP. The API will return 'Dynamic' if no static IP is assigned.</p>\n<p><strong>last_update:</strong> Timestamp in UTC when the last Call Detail Record (cdr) for this SIM card was received.</p>\n<p><strong>lat:</strong> Latitude of the cell tower to which this SIM card is connected.</p>\n<p><strong>lon:</strong> Longitude of the cell tower to which this SIM card is connected.</p>\n<p><strong>location_updates:</strong> Number of location updates generated by the SIM card during the current calendar month. A location update is generated when a SIM tries to connect to a network. High numbers of location_updates (&gt;60) indicate something is wrong with the device as it indicates the device is continuously trying to connect.</p>\n<p><strong>msisdn:</strong> If a Mobile Subscriber ISDN Number (phone number) is assigned to this SIM card, the value is shown hear. On default, no msisdn is assigned to our SIM cards.</p>\n<p><strong>plan_id:</strong> Identifier of the rate plan assigned to this SIM card. A rate plan is a commercial plan or bundle, that defines how usage of a SIM card is billed and if a SIM is allowed on a network.</p>\n<p><strong>radio:</strong> This radio network technology was last used by this SIM card.</p>\n<p><strong>sessions:</strong> Total number of data sessions in which</p>\n<p><strong>sim_state:</strong> Network state of this SIM card.</p>\n<p><strong>tags:</strong> Tags that are assigned to this SIM card. Tags are an easy way to categorize SIM cards into groups.</p>\n<p><strong>throttle:</strong> It is possible to throttle the maximum bandwidth of a SIM card. You can throttle the bandwidth via API. Please note that we do not throttle any SIM card. All throttling settings are initiated by the customer.</p>\n<p><strong>usage_sms_mo:</strong> The device's total number of sent SMS messages (Mobile Originated) during the current calendar month.</p>\n<p><strong>usage_sms_mt:</strong> Total number of received (Mobile Terminated) SMS messages by the device during the current calendar month.</p>\n<p><strong>usage_data:</strong> Total number of bytes sent to and from the device during the current calendar month. Please note that 1MB = 1024 kB = 1048576 bytes.</p>\n<p><strong>zero_sessions:</strong> Number of data sessions during the current calendar month in which no data was sent. The number of zero sessions is a strong indicator of issues with your hardware. If sessions are opened and no data is sent possible reasons are:</p>\n<ul>\n<li>poor coverage</li>\n<li>APN is not set correctly</li>\n<li>roaming is disabled</li>\n<li>SIM is not allowed on a partner network</li>\n<li>SIM state is disabled</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"value":"YoUR ApI KeY 1234","key":"<key>"},"isInherited":true,"source":{"_postman_id":"6b1dc850-1bbf-4861-b734-97220951b9b7","id":"6b1dc850-1bbf-4861-b734-97220951b9b7","name":"Simbase API v1 Reference","type":"collection"}},"urlObject":{"protocol":"https","path":["simcards","8912300000000000001"],"host":["api","simbase","com"],"query":[],"variable":[]}},"response":[{"id":"12209ea7-7b2b-45a7-861d-4e4314343f70","name":"Get SIM","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://api.simbase.com/simcards/8912300000000000001"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"602"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"iccid\": \"8912300000000000001\",\n    \"carrier\": \"AT&T\",\n    \"country\": \"United States\",\n    \"country_iso\": \"US\",\n    \"device_name\": \"Test SIM Card\",\n    \"msisdn\": \"+14844012345\",\n    \"sim_state\": \"enabled\",\n    \"plan_id\": \"def-usd.us-1\",\n    \"lat\": \"38.8987649\",\n    \"lon\": \"-77.0372855\",\n    \"radio\": \"LTE\",\n    \"apn\": \"simbase\",\n    \"imei\": \"353813082812345\",\n    \"hardware\": \"Apple iPhone 7 Plus\",\n    \"ip\": \"10.0.0.22\",\n    \"throttle\": \"NO_LIMIT\",\n    \"tags\": [\n        \"Test SIM\"\n    ],\n    \"last_update\": \"2022-04-07 09:45:46\",\n    \"imei_lock\": \"off\",\n    \"location_updates\": 14,\n    \"sessions\": 11,\n    \"zero_sessions\": 0,\n    \"usage_sms_mo\": 2,\n    \"usage_sms_mt\": 2,\n    \"usage_data\": 36878336,\n}"}],"_postman_id":"6bf05b2b-3e5c-42b7-a780-01a4fb746ce3"},{"name":"Get SIM Usage","id":"50b9f7ba-b28d-4cba-9d09-6e6f97dc421b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://api.simbase.com/simcards/8912300000000000001/usage/YYYY-MM","description":"<p>Use this API to obtain a detailed overview of a specific SIM card usage and cost overview.</p>\n<h2 id=\"url\">URL</h2>\n<p>The URL for this endpoint takes an ICCID and year-month input.</p>\n<p><a href=\"https://api.simbase.com/simcards/%7BICCID%7D/usage/%7BYYYY-MM%7D\">https://api.simbase.com/simcards/{ICCID}/usage/{YYYY-MM}</a></p>\n<h2 id=\"response-body\">Response body</h2>\n<p><strong>cost:</strong> Total costs for the SIM card in this calendar month in the currency of your account.</p>\n<p><strong>cost_data:</strong> Total charge for the used data in this calendar month in the currency of your account.</p>\n<p><strong>cost_month:</strong> Total line rental for this calendar month in the currency of your account.</p>\n<p><strong>cost_netw:</strong> Total costs for networking services (for example fixed IP) during this calendar month in the currency of your account.</p>\n<p><strong>cost_sms:</strong> Total costs for SMS services during this calendar month in the currency of your account.</p>\n<p><strong>cost_voice:</strong> Total costs for Voice services during this calendar month in the currency of your account.</p>\n<p><strong>location_updates:</strong> Number of location updates generated by the SIM card during the current calendar month. When a SIM tries to connect to a network a location update is generated. High numbers of location_updates (&gt;60) indicate something is wrong with the device as it indicates the device is continuously trying to connect.</p>\n<p><strong>session_count:</strong> Total number of non-zero sessions (data sessions in which data was sent) for this SIM during a calendar month.</p>\n<p><strong>zero_sessions:</strong> Number of data sessions during the current calendar month in which no data was sent. The number of zero sessions is a strong indicator of issues with your hardware. If sessions are opened and no data is sent possible reasons are:</p>\n<ul>\n<li>poor coverage</li>\n<li>APN is not set correctly</li>\n<li>roaming is disabled</li>\n<li>SIM is not allowed on a partner network</li>\n<li>SIM state is disabled</li>\n</ul>\n<p><strong>usage_data:</strong> If a static IP is assigned to this SIM card, this value will show that IP. The API will return 'Dynamic' if no static IP is assigned.</p>\n<p><strong>usage_sms_mo:</strong> The device's total number of sent SMS messages (Mobile Originated) during the current calendar month.</p>\n<p><strong>usage_sms_mt:</strong> Total number of received (Mobile Terminated) SMS messages by the device during the current calendar month.</p>\n<p><strong>usage_data:</strong> Total number of bytes sent to and from the device during the current calendar month. Please note that 1MB = 1024 kB = 1048576 bytes.</p>\n<p><strong>usage_voice:</strong> Total number of seconds of consumed voice services.</p>\n","auth":{"type":"apikey","apikey":{"value":"YoUR ApI KeY 1234","key":"<key>"},"isInherited":true,"source":{"_postman_id":"6b1dc850-1bbf-4861-b734-97220951b9b7","id":"6b1dc850-1bbf-4861-b734-97220951b9b7","name":"Simbase API v1 Reference","type":"collection"}},"urlObject":{"protocol":"https","path":["simcards","8912300000000000001","usage","YYYY-MM"],"host":["api","simbase","com"],"query":[],"variable":[]}},"response":[{"id":"cf8b3b24-7412-4898-9ae5-7941d9744ec7","name":"Get SIM Usage","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://api.simbase.com/simcards/8912300000000000001/usage/2022-08"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"602"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"iccid\": \"8912300000000000001\",\n    \"month\": \"2022-08\",\n    \"cost\": 3.4841,\n    \"cost_data\": 3.1841,\n    \"cost_month\": 0.3,\n    \"cost_netw\": 0,\n    \"cost_sms\": 0,\n    \"cost_voice\": 0,\n    \"lu_count\": 39,\n    \"session_count\": 38,\n    \"zero_sessions\": 0,\n    \"usage_data\": 667335680,\n    \"usage_sms_mo\": 0,\n    \"usage_sms_mt\": 0,\n    \"usage_voice\": 0\n}"}],"_postman_id":"50b9f7ba-b28d-4cba-9d09-6e6f97dc421b"},{"name":"Edit SIM card","id":"eca0fd14-9809-4018-b60b-55d2b41696a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"device_name\": \"test SIM 22\",\n    \"imei_lock\": \"off\",\n    \"sim_state\": \"enabled\",\n    \"throttle\": \"NO_LIMIT\",\n    \"tags\": [\n        \"Division X\",\n        \"Test SIM\"\n    ],\n    \"plan_id\": \"def-usd.us-1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.simbase.com/simcards/8912300000000000001","description":"<p>Use this method to update a SIM card. You can assign tags, change the sim_state, plan_id, throttle the connection, or manage the imei_lock.</p>\n<p><strong>Body</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Identifier</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Example</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>iccid</td>\n<td>yes</td>\n<td>URL parameter</td>\n<td>8912300000000000001</td>\n</tr>\n<tr>\n<td>device_name</td>\n<td>no</td>\n<td>string</td>\n<td>Test sim  <br />  <br /><em>Assign a custom identifier to a device, for example, a customer ID or a license plate.</em></td>\n</tr>\n<tr>\n<td>sim_state</td>\n<td>no</td>\n<td>string</td>\n<td>enabled or disabled</td>\n</tr>\n<tr>\n<td>tags</td>\n<td>no</td>\n<td>string array</td>\n<td>['test sim', 'division x']  <br />  <br /><em>Please note that this call replaces the existing tags.</em></td>\n</tr>\n<tr>\n<td>imei_lock</td>\n<td>no</td>\n<td>string</td>\n<td>on or off  <br />  <br /><em>Enabling imei_lock will automatically disable the SIM if an IMEI change is detected (i.e. different device is used).</em></td>\n</tr>\n<tr>\n<td>throttle</td>\n<td>no</td>\n<td>string</td>\n<td>'NO_LIMIT', 'SPEED_100_KBPS', 'SPEED_200_KBPS', 'SPEED_500_KBPS', 'SPEED_1000_KBPS', 'SPEED_2500_KBPS', 'SPEED_5000_KBPS'  <br />*  <br />Throttle the data connection to reduce the available bandwidth.*</td>\n</tr>\n<tr>\n<td>plan_id</td>\n<td>no</td>\n<td>string</td>\n<td>def-usd.us-1  <br />  <br /><em>Obtain possible options with the /plans endpoint.</em></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"value":"YoUR ApI KeY 1234","key":"<key>"},"isInherited":true,"source":{"_postman_id":"6b1dc850-1bbf-4861-b734-97220951b9b7","id":"6b1dc850-1bbf-4861-b734-97220951b9b7","name":"Simbase API v1 Reference","type":"collection"}},"urlObject":{"protocol":"https","path":["simcards","8912300000000000001"],"host":["api","simbase","com"],"query":[],"variable":[]}},"response":[{"id":"d0ac2740-dbc0-4dbb-a694-0175b9eeedb9","name":"Edit SIM card","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"device_name\": \"test SIM 22\",\n    \"imei_lock\": \"off\",\n    \"sim_state\": \"enabled\",\n    \"throttle\": \"NO_LIMIT\",\n    \"tags\": [\n        \"Division X\",\n        \"Test SIM\"\n    ],\n    \"plan_id\": \"def-usd.us-1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.simbase.com/simcards/8912300000000000001"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"197"}],"cookie":[],"responseTime":null,"body":"{\n    \"device_name\": \"test SIM 22\",\n    \"imei_lock\": \"off\",\n    \"sim_state\": \"enabled\",\n    \"throttle\": \"NO_LIMIT\",\n    \"tags\": [\n        \"Division X\",\n        \"Test SIM\"\n    ],\n    \"plan_id\": \"def-usd.us-1\",\n    \"rateplan\": \"USA\",\n    \"coverage\": \"USA\"\n}"}],"_postman_id":"eca0fd14-9809-4018-b60b-55d2b41696a5"}],"id":"1f23118d-bd1f-4b7a-aae4-d303c4943904","_postman_id":"1f23118d-bd1f-4b7a-aae4-d303c4943904","description":"","auth":{"type":"apikey","apikey":{"value":"YoUR ApI KeY 1234","key":"<key>"},"isInherited":true,"source":{"_postman_id":"6b1dc850-1bbf-4861-b734-97220951b9b7","id":"6b1dc850-1bbf-4861-b734-97220951b9b7","name":"Simbase API v1 Reference","type":"collection"}}},{"name":"Plans","item":[{"name":"Plans","id":"664956a2-8822-4a03-ab94-2fdb56f7f447","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://api.simbase.com/plans","description":"<p>Use this API to get an overview of the available rate plans that can be assigned to your SIM cards. The obtained plan IDs are required to change the rate plan of a SIM card.</p>\n<h2 id=\"response-body\">Response body</h2>\n<p><strong>countries:</strong> Total number of available countries in this rate plan.</p>\n<p><strong>currency:</strong> The currency of this rate plan.</p>\n<p><strong>day:</strong> The daily rate per enabled SIM card.</p>\n<p><strong>mb:</strong> The rate that is charged per used MegaBytes.</p>\n<p><strong>name:</strong> The name of the rate plan.</p>\n<p><strong>sms:</strong> The rate that is charged per sent SMS message (SMS MO).</p>\n<p><strong>sms_to_device:</strong> The rate that is charged per received SMS message (SMS MT).</p>\n","auth":{"type":"apikey","apikey":{"value":"YoUR ApI KeY 1234","key":"<key>"},"isInherited":true,"source":{"_postman_id":"6b1dc850-1bbf-4861-b734-97220951b9b7","id":"6b1dc850-1bbf-4861-b734-97220951b9b7","name":"Simbase API v1 Reference","type":"collection"}},"urlObject":{"protocol":"https","path":["plans"],"host":["api","simbase","com"],"query":[],"variable":[]}},"response":[{"id":"5d30cefe-5733-42b8-b3c3-5c4315545c81","name":"Plans","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"url":"https://api.simbase.com/plans"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"949"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"plan_id\": \"def-usd.eu-1\",\n        \"name\": \"Europe\",\n        \"currency\": \"USD\",\n        \"day\": \"0.01\",\n        \"mb\": \"0.005\",\n        \"sms\": \"0.05\",\n        \"sms_to_device\": \"0.02\",\n        \"countries\": \"34\"\n    },\n    {\n        \"plan_id\": \"def-usd.us-1\",\n        \"name\": \"USA\",\n        \"currency\": \"USD\",\n        \"day\": \"0.01\",\n        \"mb\": \"0.01\",\n        \"sms\": \"0.05\",\n        \"sms_to_device\": \"0.02\",\n        \"countries\": \"1\"\n    },\n    {\n        \"plan_id\": \"def-usd.americas-1\",\n        \"name\": \"Americas\",\n        \"currency\": \"USD\",\n        \"day\": \"0.01\",\n        \"mb\": \"0.02\",\n        \"sms\": \"0.05\",\n        \"sms_to_device\": \"0.02\",\n        \"countries\": \"19\"\n    },\n    {\n        \"plan_id\": \"def-usd.oceania-1\",\n        \"name\": \"Oceania\",\n        \"currency\": \"USD\",\n        \"day\": \"0.01\",\n        \"mb\": \"0.02\",\n        \"sms\": \"0.05\",\n        \"sms_to_device\": \"0.02\",\n        \"countries\": \"2\"\n    },\n    {\n        \"plan_id\": \"def-usd.global-1\",\n        \"name\": \"Global\",\n        \"currency\": \"USD\",\n        \"day\": \"0.01\",\n        \"mb\": \"0.03\",\n        \"sms\": \"0.05\",\n        \"sms_to_device\": \"0.02\",\n        \"countries\": \"100\"\n    },\n    {\n        \"plan_id\": \"def-usd.globalplus-1\",\n        \"name\": \"Global+\",\n        \"currency\": \"USD\",\n        \"day\": \"0.01\",\n        \"mb\": \"0.10\",\n        \"sms\": \"0.05\",\n        \"sms_to_device\": \"0.02\",\n        \"countries\": \"160\"\n    }\n]"}],"_postman_id":"664956a2-8822-4a03-ab94-2fdb56f7f447"}],"id":"8a50ea3f-c6f0-4ccd-8ba4-907e1b3edd34","_postman_id":"8a50ea3f-c6f0-4ccd-8ba4-907e1b3edd34","description":"","auth":{"type":"apikey","apikey":{"value":"YoUR ApI KeY 1234","key":"<key>"},"isInherited":true,"source":{"_postman_id":"6b1dc850-1bbf-4861-b734-97220951b9b7","id":"6b1dc850-1bbf-4861-b734-97220951b9b7","name":"Simbase API v1 Reference","type":"collection"}}},{"name":"SMS","item":[{"name":"Send SMS","id":"a3f700a4-d1c8-474a-84ad-c13891fb8094","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"message\": \"test\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.simbase.com/simcards/8912300000000000001/sms","description":"<p>Use this endpoint to send SMS messages to your devices. All SMS messages will be sent from our own shortcode 55555.</p>\n<h2 id=\"response-body\">Response body</h2>\n<p><strong>sender:</strong> The MSISDN (phone number) of our server that sends the SMS to the SIM card.</p>\n<p><strong>message:</strong> The message that was sent to the device.</p>\n<p><strong>time:</strong> timestamp (YYYY-MM-DD HH:MM:SS) in UTC of the moment the SMS was sent to the device.</p>\n","auth":{"type":"apikey","apikey":{"value":"YoUR ApI KeY 1234","key":"<key>"},"isInherited":true,"source":{"_postman_id":"6b1dc850-1bbf-4861-b734-97220951b9b7","id":"6b1dc850-1bbf-4861-b734-97220951b9b7","name":"Simbase API v1 Reference","type":"collection"}},"urlObject":{"protocol":"https","path":["simcards","8912300000000000001","sms"],"host":["api","simbase","com"],"query":[],"variable":[]}},"response":[{"id":"3ba06d87-47bc-4855-9fd7-998ee7ed16af","name":"Send SMS","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"message\": \"test\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.simbase.com/simcards/8912300000000000001/sms"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"69"}],"cookie":[],"responseTime":null,"body":"{\n    \"sender\": \"55555\",\n    \"message\": \"test\",\n    \"time\": \"2022-04-13 09:46:22\"\n}"}],"_postman_id":"a3f700a4-d1c8-474a-84ad-c13891fb8094"},{"name":"SMS","id":"79807c19-849f-442e-b025-cdf48f94c303","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.simbase.com/simcards/8912300000000000001/sms","description":"<p>Use this endpoint to obtain the last SMS messages sent to the device and SMS messages sent by the device to our servers.</p>\n<p>i.e. sim -&gt; 55555 and 55555 -&gt; sim</p>\n<p>Please note that on default our SIM cards are only able to send SMS messages to our server. If you have more than 100 registered and enabled SIM cards, you can apply for outbound SMS by <a href=\"https://www.simbase.com/support-request\">submitting a support request</a></p>\n<h2 id=\"response-body\">Response body</h2>\n<p><strong>count:</strong> Total number of SMS messages returned in this response body.</p>\n<p><strong>messages[message]:</strong> The message that was sent via SMS.</p>\n<p><strong>messages[direction]:</strong> The direction of the sent SMS message is seen from the server's perspective. 'In' means sent to the server, and 'out' means sent from the server to the device.</p>\n","auth":{"type":"apikey","apikey":{"value":"YoUR ApI KeY 1234","key":"<key>"},"isInherited":true,"source":{"_postman_id":"6b1dc850-1bbf-4861-b734-97220951b9b7","id":"6b1dc850-1bbf-4861-b734-97220951b9b7","name":"Simbase API v1 Reference","type":"collection"}},"urlObject":{"protocol":"https","path":["simcards","8912300000000000001","sms"],"host":["api","simbase","com"],"query":[],"variable":[]}},"response":[{"id":"6d4ac1bc-1e1d-4864-94ab-062cce6b2ef9","name":"get SMS","originalRequest":{"method":"GET","header":[],"url":"https://api.simbase.com/simcards/8912300000000000001/sms"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"4820"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 3,\n    \"messages\": [\n        {\n            \"message\": \"test\",\n            \"direction\": \"out\",\n            \"timestamp\": \"2022-04-13 09:46:22\"\n        },\n        {\n            \"message\": \"Connected\",\n            \"direction\": \"in\",\n            \"timestamp\": \"2022-04-07 09:48:23\"\n        },\n        {\n            \"message\": \"STATUS\",\n            \"direction\": \"out\",\n            \"timestamp\": \"2022-04-01 15:11:42\"\n        }\n    ]\n}"}],"_postman_id":"79807c19-849f-442e-b025-cdf48f94c303"}],"id":"4b7a4601-facd-4225-96ed-75a6db7776f1","_postman_id":"4b7a4601-facd-4225-96ed-75a6db7776f1","description":"","auth":{"type":"apikey","apikey":{"value":"YoUR ApI KeY 1234","key":"<key>"},"isInherited":true,"source":{"_postman_id":"6b1dc850-1bbf-4861-b734-97220951b9b7","id":"6b1dc850-1bbf-4861-b734-97220951b9b7","name":"Simbase API v1 Reference","type":"collection"}}},{"name":"Balance","item":[{"name":"Balance","id":"3de38aeb-1e8d-4108-b92c-316c47066c73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.simbase.com/balance","description":"<p>This API can be used to retrieve the up-to-date balance of an account.</p>\n<h2 id=\"response-body\">Response body</h2>\n<p><strong>balance:</strong> The up-to-date account balance</p>\n<p><strong>currency:</strong> The currency of the balance in the <a href=\"https://en.wikipedia.org/wiki/ISO_4217\">ISO 4217</a> format.</p>\n<p><strong>last_update:</strong> Timestamp in UTC when the balance was last updated.</p>\n<p><strong>auto_topup:</strong> Boolean indicating whether auto top-up by credit card has been activated for this balance.</p>\n<p><strong>topup_threshold:</strong> If the auto top-up functionality is activated for this balance, it is automatically topped up if the balance falls below this value.</p>\n<p><strong>topup_amount:</strong> If the auto top-up functionality is activated for this balance, it is automatically topped up to this value.</p>\n","auth":{"type":"apikey","apikey":{"value":"YoUR ApI KeY 1234","key":"<key>"},"isInherited":true,"source":{"_postman_id":"6b1dc850-1bbf-4861-b734-97220951b9b7","id":"6b1dc850-1bbf-4861-b734-97220951b9b7","name":"Simbase API v1 Reference","type":"collection"}},"urlObject":{"protocol":"https","path":["balance"],"host":["api","simbase","com"],"query":[],"variable":[]}},"response":[{"id":"178602ce-8aae-4c26-be49-afde4ca0df1c","name":"Balance","originalRequest":{"method":"GET","header":[],"url":"https://api.simbase.com/balance"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"balance\": 256.9469,\n    \"currency\": \"USD\",\n    \"currency_symbol\": \"$\",\n    \"last_update\": \"2022-07-27 15:07:11\",\n    \"auto_topup\": true,\n    \"topup_threshold\": 10,\n    \"topup_amount\": 20\n}"}],"_postman_id":"3de38aeb-1e8d-4108-b92c-316c47066c73"}],"id":"15d15e0c-0dd8-438f-b17a-78cb19b092ae","_postman_id":"15d15e0c-0dd8-438f-b17a-78cb19b092ae","description":"","auth":{"type":"apikey","apikey":{"value":"YoUR ApI KeY 1234","key":"<key>"},"isInherited":true,"source":{"_postman_id":"6b1dc850-1bbf-4861-b734-97220951b9b7","id":"6b1dc850-1bbf-4861-b734-97220951b9b7","name":"Simbase API v1 Reference","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"value":"YoUR ApI KeY 1234","key":"<key>"}},"event":[{"listen":"prerequest","script":{"id":"bbbceed2-55c1-4b18-a51b-d69ee227381e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"83e03df5-8ef3-4fc5-827f-6fa3d3e248b8","type":"text/javascript","exec":[""]}}],"variable":[{"key":"api-key","value":"YoUR ApI KeY 1234","type":"string"}]}