Common workflows you may use while setting up and managing your SIM cards include:

Activate a self-serve SIM (QR code scan flow)

To activate a single SIM card, use the following steps:

  1. Log in to your account in IoT Suite.

    POST /auth/token
  2. Check if a SIM is already claimed.

    GET /assets?accountId={accountId}&iccid={iccid}
    1. If not found, claim the SIM to the account.

      POST /assets
  3. Load available plans and select the correct Test Drive product.

    GET /accounts/\{accountId}/products?filter=active
  4. Subscribe SIM to selected plan.

    PUT /assets/\{iccid}/subscribe
  5. Confirm activation and show success, along with next steps.

    `GET /assets/\{iccid}`

Manage a fleet

If you have multiple SIMs you need to set up and managage, use the methods outlined below.

Activate a fleet

To set up a fleet worth of SIM cards, use the following steps:

  1. Follow the instructions in Activate a self-serve SIM (QR code scan flow) for each SIM you want to set up, but reuse the same token for each authentication step.

If the session will run longer than the token’s time-to-live (TTL), refresh the token as needed using POST /auth/token/refresh.

Generate a fleet usage report

The following call will return per-session useage records:

GET /cdr?accountId={accountId}&startTime={start}&endTime={end}&type=data

Where:

  • accountID (required): the account ID

  • startTime: when the session you want to evaluate began.

  • endTime: when the session you want to evaluate ended.

  • type=data: restricts the type of SIMs reported to "data" only.

To scope this command to a single SIM card, add the &iccid={iccid} condition to the end of the call.

Check SIM status

Important ways to check on an individual SIM card are listed below. See SIM assets for more information on each call.

  • Get SIM info (ID, subscription, product details, etc.)

    GET /assets/{iccid}
  • Check SIM session info (active session, IP, serving network, usage)

    GET /assets/{iccid}/sessions
  • Check diagnostic information for SIMs, like network health (quota-limited; cache; don’t poll)

    GET /assets/{iccid}/diagnostic