Skip to Content
Terminal Docs

How the 1oT Terminal API works

The 1oT Terminal API lets your own systems do what you do in Terminal: read your SIMs and their usage, and change them. Connect it when you manage more SIMs than you want to handle by hand, or when your own platform should react to what the SIMs do.

What you can do with it

The API covers most of what the SIMs page does, plus eSIM transactions:

AreaFor example
SIMsRead one SIM or all of them, with status, usage, last country and device IMEI. Change status, data and SMS limits, name or data package. Reset a SIM, turn IMEI lock on or off.
Usage and costsDaily and monthly usage, sessions, and costs per SIM.
SMSSend an SMS to a SIM and read the SMS it sent.
Groups and labelsMove SIMs to a group, add or clear labels, and read all SIMs in a group.
AlertsRead alerts for your account, a group or a SIM.
AccountYour data packages and account balance.
eSIMDownload or enable an eSIM profile, and follow the transaction’s progress.

The full list of requests is in the API documentation. See Find the API documentation.

How a request gets in

Every system that connects needs its own API key. You create it in Terminal, and it comes as a username and a password. See Create and manage API keys.

Your system doesn’t send that password with every request. Instead:

  1. Your system sends the username and password once to the token request, /oauth/token.
  2. The API answers with an access token.
  3. Your system sends the access token in a header named Authorization with every other request.

The access token is long-lived, so your system stores it and reuses it. It doesn’t need to ask for a new one for each request.

The API key decides what the token may do. A Read key can only read. A Read and write key can also change SIMs. If you set an IP whitelist on the key, the API accepts it only from those addresses. Give each system the least it needs: a reporting tool needs only Read.

All requests go to https://api.1ot.mobi/v1/.

Changes follow the same rules as Terminal

The API runs the same checks as Terminal. A SIM that can’t move to a status in Terminal can’t move to it through the API either. See SIM statuses.

Most change requests accept one ICCID or a list. If any SIM in the list fails the checks, the API changes none of them and tells you which failed and why. To change the valid ones anyway, send the request with ignore_invalid_sims set to true. Terminal’s Change many SIMs at once works the same way.

Changes also take the same time. A status change goes to the telecom and takes up to 5 minutes, so the API accepts the request before the change is done. To see when it’s done, read the SIM again later. For eSIM transactions, the request returns an action ID that you use to follow the progress. See How eSIM transactions work.

Limits to design around

The API limits how fast you can call it:

RequestsLimit
Getting an access token1 every 5 seconds
Reading SIMs and changing SIM status5 per second
Everything else10 per second

List requests return up to 1000 SIMs at a time. To get the next 1000, send the same request with an offset.

These limits shape a good integration:

  • Get one access token and reuse it. Don’t ask for a new token for each request.
  • To keep your own copy of your SIMs up to date, ask only for SIMs that changed since your last check. The list requests can filter by last change and last usage update.
  • Use groups. One request for a group replaces hundreds of requests for single SIMs. See Label SIMs.

Sub-clients

A Sub-client can create its own API keys. Those keys reach only the SIMs you share with them, and do only what the Sub-client’s rights allow. See Give a sub-client API access.

On this page