---
title: "Connect API Reference"
description: "The Sixfab Connect API: every resource and endpoint, with requests in cURL, Python and Node.js and their responses."
url: "https://docs.sixfab.com/api/connect/"
last_updated: "2026-10-12"
---

# Connect API Reference

The Sixfab Connect API gives your own applications what [Sixfab Connect](https://connect.sixfab.com/) does: read the details of your assets, register new ones, update them and follow the data usage of their SIMs.

The API is organized around REST. It has predictable, resource-oriented URLs, takes JSON request bodies, returns JSON responses and uses standard HTTP methods and status codes.

Each request works on one asset. The API has no bulk operations.

> [!WARNING]
> **Upgrading an existing integration?**
>
> An asset can now carry a SuperSIM, a ProSIM or both, and the older SIM fields and endpoints are deprecated. The [API Migration Guide](https://docs.sixfab.com/api/connect/migration-guide/) lists every change and what to use instead.

**Base URL**

https://api.sixfab.com/v1

Every request

|  |  |
| --- | --- |
| `X-API-Key` | Your API key. Required on every call. |
| `Content-Type` | `application/json` when the request has a body |

**OpenAPI specification**

Every endpoint, parameter and response on this page is generated from this file.

- **Version:** `0.1.0`
- **Last updated:** November 26, 2026
- **Operations:** 8, in 2 groups: Core resources, Deprecated

[Download openapi.json](https://api.sixfab.com/v1/openapi.json)

## Authentication

The API authenticates each request with an API key, sent in the `X-API-Key` header. Your API keys identify you, so keep them private: don’t put a key in client-side code, in a public repository or in a container image you share.

### Get your API key

1. Sign in to [Sixfab Connect](https://connect.sixfab.com/).
2. Open the [Developer page](https://connect.sixfab.com/#/developer) from the control panel.
3. Create a new API key, and copy it.

![Sixfab Connect API Keys page with the New API Key button and an empty API keys list](https://docs.sixfab.com/wp-content/uploads/sixfab-docs/Sixfab_Connect_Sixfab_API_Create_API_key.png)

### HTTP header

Send the key in the `X-API-Key` header of every request, over HTTPS. A request without a key fails with `403` `{"detail":"Not authenticated"}`; a request with an unknown key fails with `401` `{"detail":"Invalid API Key"}`.

**GET /v1/assets · cURL**

```bash
curl 'https://api.sixfab.com/v1/assets' \
  -H 'X-API-Key: [YOUR_API_KEY]'
```

**GET /v1/assets · Python**

```python
import requests

response = requests.get(
    "https://api.sixfab.com/v1/assets",
    headers={"X-API-Key": "[YOUR_API_KEY]"},
)
print(response.json())
```

**GET /v1/assets · Node.js**

```javascript
const response = await fetch("https://api.sixfab.com/v1/assets", {
  headers: {
    "X-API-Key": "[YOUR_API_KEY]",
  },
});
console.log(await response.json());
```

## Rate limits

Each API key can make up to **10 requests per second**. A request over the limit fails with `429`: wait, then retry with an exponential backoff.

If your application needs a higher limit, [contact us](https://sixfab.com/contact/).

Rate limit

|  |  |
| --- | --- |
| Requests | 10 per second, per API key |
| Over the limit | `429` Too Many Requests |

## Errors

The API uses conventional HTTP status codes. Codes in the `2xx` range mean the request worked. Codes in the `4xx` range mean it failed with the information you sent, for example an unknown asset or a missing parameter. Codes in the `5xx` range mean a service the call depends on failed.

Every error has a human-readable `message`. Each operation lists the codes it can return.

### Attributes

- `message` (string): What went wrong, in a sentence you can log or show.

- `detail` (array of objects): Only on `422` responses: one entry for each value that failed validation.

  - `loc` (array of strings): Where the value is, for example `["body", "name"]`.
  - `msg` (string): What is wrong with the value.
  - `type` (string): Error type, for example `string_too_short`.

- `err_code` (string): On `403` responses for a suspended asset, `asset_suspended`; on `503` responses, `network_error`.

HTTP status code summary

|  |  |  |
| --- | --- | --- |
| 200 | OK | Everything worked as expected. |
| 400 | Bad Request | The request was unacceptable, often because a required parameter is missing. |
| 401 | Unauthorized | The API key is unknown. |
| 402 | Request Failed | The parameters were valid but the request failed. |
| 403 | Forbidden | No API key was sent, or the request isn’t allowed, for example on a suspended asset. |
| 404 | Not Found | The asset or data doesn’t exist. |
| 409 | Conflict | The request conflicts with another request. |
| 422 | Validation Error | A parameter is missing or has the wrong type. Read `detail`. |
| 429 | Too Many Requests | Too many requests hit the API too quickly. Retry with an exponential backoff. |
| 500 | Internal Server Error | The server ran into a situation it can’t handle. |
| 502 | Bad Gateway | The API got an invalid response from what it depends on. |
| 503 | Service Unavailable | A service the call depends on is down. Try again later. |

**Error · 400**

```json
{
  "message": "[MESSAGE]"
}
```

**Error · 403**

```json
{
  "message": "[MESSAGE]",
  "err_code": "asset_suspended"
}
```

**Error · 404**

```json
{
  "message": "[MESSAGE]"
}
```

**Error · 422**

```json
{
  "detail": [
    {
      "loc": ["[LOC]"],
      "msg": "[MSG]",
      "type": "[TYPE]"
    }
  ]
}
```

## Pagination

[Get Assets](https://docs.sixfab.com/api/connect/assets/list/) returns your assets a page at a time, up to 100 on each page. Ask for a page with the `page` query parameter, starting from `1`.

Every page says where you are: `current_page`, `asset_limit_per_page` and `total_asset_count`. You have the last page when `current_page` × `asset_limit_per_page` reaches `total_asset_count`.

### Parameters

- `page` (integer): The page to return. Defaults to `1`.

### Paginated response

- `assets` (array of objects): The assets on this page, each with `uuid`, `serial_number`, `name` and `type`.
- `total_asset_count` (integer): Assets in your account, across all pages.
- `asset_limit_per_page` (integer): The most assets a page holds: `100`.
- `current_page` (integer): The number of this page.

**GET /v1/assets?page=2 · cURL**

```bash
curl 'https://api.sixfab.com/v1/assets?page=2' \
  -H 'X-API-Key: [YOUR_API_KEY]'
```

**GET /v1/assets?page=2 · Python**

```python
import requests

response = requests.get(
    "https://api.sixfab.com/v1/assets",
    headers={"X-API-Key": "[YOUR_API_KEY]"},
    params={"page": "2"},
)
print(response.json())
```

**GET /v1/assets?page=2 · Node.js**

```javascript
const response = await fetch("https://api.sixfab.com/v1/assets?page=2", {
  headers: {
    "X-API-Key": "[YOUR_API_KEY]",
  },
});
console.log(await response.json());
```

**Response · 200**

```json
{
  "assets": [
    {
      "uuid": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
      "serial_number": "[SERIAL_NUMBER]",
      "name": "[NAME]",
      "type": "[TYPE]",
      "network_group": "[NETWORK_GROUP]"
    }
  ],
  "total_asset_count": 0,
  "asset_limit_per_page": 0,
  "current_page": 0
}
```

**Response · 400**

```json
{
  "message": "[MESSAGE]"
}
```

## Deprecations

The API version is part of the base URL: `/v1`. The OpenAPI document is at version `0.1.0`.

Assets can now carry a SuperSIM, a ProSIM or both, so SIM details moved from `sim` to `supersim` and `prosim`.

The operations and fields on the right are deprecated and planned for removal on September 1, 2026. Each one has a replacement that works today.

The [API Migration Guide](https://docs.sixfab.com/api/connect/migration-guide/) shows the new asset structure and each endpoint’s changes in full.

Deprecated · use instead

|  |  |
| --- | --- |
| `PATCH /v1/assets/:asset_id/sim` | [Update Asset](https://docs.sixfab.com/api/connect/assets/update/) |
| `GET /v1/assets/:asset_id/sim/usages` | [Data Usage Details](https://docs.sixfab.com/api/connect/assets/usages/) |
| `sim` on the Asset object | `supersim` and `prosim` |
| `sim.status` | `status` on the asset |
| `network_group` in Get Assets | `supersim.network_group` from [Asset Details](https://docs.sixfab.com/api/connect/assets/retrieve/) |
| `fleet` in [Update SIM](https://docs.sixfab.com/api/connect/deprecated/update/) | `supersim.network_group` in [Update Asset](https://docs.sixfab.com/api/connect/assets/update/) |

Core resources

## Assets

An asset is a device or a SIM in your account: an ALPON edge computer, or a SIM you registered by its ICCID. Every call that takes `:asset_id` finds the asset by its serial number, UUID, SIM SID or SIM ICCID.

An asset can carry a SuperSIM, a ProSIM or both. Its `status` is the master switch for all of them.

**Endpoints**

- [GET /v1/assets](https://docs.sixfab.com/api/connect/assets/list/)
- [POST /v1/assets](https://docs.sixfab.com/api/connect/assets/create/)
- [GET /v1/assets/:asset_id](https://docs.sixfab.com/api/connect/assets/retrieve/)
- [PATCH /v1/assets/:asset_id](https://docs.sixfab.com/api/connect/assets/update/)
- [GET /v1/assets/:asset_id/sims/:sim_type/usages](https://docs.sixfab.com/api/connect/assets/usages/)

## The Asset object

### Attributes

- `uuid` (string): UUID of the asset

- `serial_number` (string): Serial Number of the asset

- `name` (string): Name of the asset

- `type` (string): Type of the asset

- `created_at` (integer): Timestamp of when the asset was created

- `status` (enum): Overall status of the asset. If active, the asset is able to connect to networks.If inactive, the asset is prevented from connecting to networks.

  - Possible enum values: `active`, `inactive`

**More attributes**

- `sim` (object): **LEGACY FIELD (Removal: September 1, 2026)**\
  This field is a mirror of `supersim` for backward compatibility. Please migrate to the `supersim` property.

  - `sid` (string, Required): SID of the SIM

  - `iccid` (string, Required): ICCID of the SIM

  - `status` (enum, Required): **[DEPRECATED – REMOVAL: 2026-09-01]**\
    This field is legacy. Use the top-level `status` instead.

    - Possible enum values: `active`, `inactive`

  - `network_group` (string, Required): Network group of the SIM

  - `fleet` (string): **[DEPRECATED – REMOVAL: 2026-09-01]**\
    This field is legacy and will be removed soon. Use the `network_group` field instead.

- `supersim` (object): SuperSIM details, null if the asset does not have a SuperSIM.

  - `sid` (string, Required): SID of the SIM
  - `iccid` (string, Required): ICCID of the SIM
  - `network_group` (string, Required): Network group of the SIM

- `prosim` (object): ProSIM details, null if the asset does not have a ProSIM.

  - `imsi` (string, Required): IMSI of the SIM
  - `iccid` (string, Required): ICCID of the SIM
  - `service_profile` (string, Required): Service profile of the SIM

**The Asset object**

```json
{
  "uuid": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
  "serial_number": "[SERIAL_NUMBER]",
  "name": "[NAME]",
  "type": "[TYPE]",
  "created_at": 1791530400,
  "status": "active",
  "sim": {
    "sid": "[SID]",
    "iccid": "[ICCID]",
    "status": "active",
    "network_group": "[NETWORK_GROUP]",
    "fleet": "[FLEET]"
  },
  "supersim": {
    "sid": "[SID]",
    "iccid": "[ICCID]",
    "network_group": "[NETWORK_GROUP]"
  },
  "prosim": {
    "imsi": "[IMSI]",
    "iccid": "[ICCID]",
    "service_profile": "[SERVICE_PROFILE]"
  }
}
```

## Get Assets

List all assets as pages containing 100 assets per page

> [!WARNING]
> **Notice:**
>
> The top-level `network_group` field in the assets list is **deprecated** and will be removed on September 1, 2026. It currently shows the SuperSIM’s network group. For multi-SIM assets, please refer to the Asset Details endpoint.

**GET /v1/assets · cURL**

```bash
curl 'https://api.sixfab.com/v1/assets' \
  -H 'X-API-Key: [YOUR_API_KEY]'
```

**GET /v1/assets · Python**

```python
import requests

response = requests.get(
    "https://api.sixfab.com/v1/assets",
    headers={"X-API-Key": "[YOUR_API_KEY]"},
)
print(response.json())
```

**GET /v1/assets · Node.js**

```javascript
const response = await fetch("https://api.sixfab.com/v1/assets", {
  headers: {
    "X-API-Key": "[YOUR_API_KEY]",
  },
});
console.log(await response.json());
```

**Response · 200**

```json
{
  "assets": [
    {
      "uuid": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
      "serial_number": "[SERIAL_NUMBER]",
      "name": "[NAME]",
      "type": "[TYPE]",
      "network_group": "[NETWORK_GROUP]"
    }
  ],
  "total_asset_count": 0,
  "asset_limit_per_page": 0,
  "current_page": 0
}
```

**Response · 400**

```json
{
  "message": "[MESSAGE]"
}
```

### Query parameters

- `page` (integer): Defaults to `1`.

### Returns

Success

- `assets` (array of objects, Required)

  - `uuid` (string, Required): UUID of the asset

  - `serial_number` (string, Required): Serial Number of the asset

  - `name` (string, Required): Name of the asset

  - `type` (string, Required): Type of the asset

  - `network_group` (string): **[DEPRECATED – REMOVAL: 2026-09-01]**\
    This field is legacy and will be removed soon. It currently shows the network group of the SuperSIM for backward compatibility. Please refer to the `supersim` property in the Asset Details endpoint.

- `total_asset_count` (integer, Required)

- `asset_limit_per_page` (integer, Required)

- `current_page` (integer, Required)

## Register Asset

**POST /v1/assets · cURL**

```bash
curl 'https://api.sixfab.com/v1/assets' \
  -H 'X-API-Key: [YOUR_API_KEY]' \
  -H 'Content-Type: application/json' \
  -d '{
    "identifier": "[IDENTIFIER]"
  }'
```

**POST /v1/assets · Python**

```python
import requests

response = requests.post(
    "https://api.sixfab.com/v1/assets",
    headers={"X-API-Key": "[YOUR_API_KEY]"},
    json={
      "identifier": "[IDENTIFIER]",
    },
)
print(response.json())
```

**POST /v1/assets · Node.js**

```javascript
const response = await fetch("https://api.sixfab.com/v1/assets", {
  method: "POST",
  headers: {
    "X-API-Key": "[YOUR_API_KEY]",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    identifier: "[IDENTIFIER]",
  }),
});
console.log(await response.json());
```

**Response · 200**

```json
{
  "id": "[ID]",
  "serial_number": "[SERIAL_NUMBER]",
  "name": "[NAME]",
  "type": "[TYPE]",
  "bonus_balance": "[BONUS_BALANCE]"
}
```

**Response · 400**

```json
{
  "message": "[MESSAGE]"
}
```

### Body parameters application/json

- `identifier` (string, Required): Serial Number or ICCID of asset
- `name` (string)

### Returns

Success

- `id` (string, Required)
- `serial_number` (string, Required)
- `name` (string, Required)
- `type` (string, Required)
- `bonus_balance` (string): Bonus balance added to the account, if any

## Asset Details

Get details of a specific asset by its serial number, UUID, SIM SID or SIM ICCID.

> [!WARNING]
> **Multiple SIM Support & Migration**
>
> We are transitioning to a model where assets can contain multiple SIM types (SuperSIM and ProSIM).
>
> - **supersim:** Previously the only SIM type, now explicitly named.
> - **prosim:** New SIM type
> - **sim (Legacy):** Still returned as a duplicate of `supersim` to prevent breaking changes.
>
> *Planned Removal Date for legacy fields: **September 1, 2026***

**GET /v1/assets/:asset_id · cURL**

```bash
curl 'https://api.sixfab.com/v1/assets/[ASSET_ID]' \
  -H 'X-API-Key: [YOUR_API_KEY]'
```

**GET /v1/assets/:asset_id · Python**

```python
import requests

response = requests.get(
    "https://api.sixfab.com/v1/assets/[ASSET_ID]",
    headers={"X-API-Key": "[YOUR_API_KEY]"},
)
print(response.json())
```

**GET /v1/assets/:asset_id · Node.js**

```javascript
const response = await fetch("https://api.sixfab.com/v1/assets/[ASSET_ID]", {
  headers: {
    "X-API-Key": "[YOUR_API_KEY]",
  },
});
console.log(await response.json());
```

**Response · 200**

```json
{
  "uuid": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
  "serial_number": "[SERIAL_NUMBER]",
  "name": "[NAME]",
  "type": "[TYPE]",
  "created_at": 1791530400,
  "status": "active",
  "sim": {
    "sid": "[SID]",
    "iccid": "[ICCID]",
    "status": "active",
    "network_group": "[NETWORK_GROUP]",
    "fleet": "[FLEET]"
  },
  "supersim": {
    "sid": "[SID]",
    "iccid": "[ICCID]",
    "network_group": "[NETWORK_GROUP]"
  },
  "prosim": {
    "imsi": "[IMSI]",
    "iccid": "[ICCID]",
    "service_profile": "[SERVICE_PROFILE]"
  }
}
```

**Response · 404**

```json
{
  "message": "[MESSAGE]"
}
```

### Path parameters

- `asset_id` (string, Required): Serial Number, UUID, SIM SID or SIM ICCID

### Returns

Success

[The Asset object](https://docs.sixfab.com/api/connect/assets/object/).

## Update Asset

Update details of a specific asset by its **serial number**, **UUID**, **SIM SID**, or **SIM ICCID**.

Update Scope

All fields are **optional**, but **at least one field must be provided**.

- **name** *(string, optional)*\
  Updates the display name.

- **status** *(string, optional)*\
  Updates the status of all attached SIMs.

- **supersim.network_group** *(string, optional)*\
  Updates the network group for the **SuperSIM** only.

Available network groups:

- `default_100mb`: Default networks with 100MB data usage restrictions.
- `default_1gb`: Default networks with 1GB data usage restrictions.
- `default_10gb`: Default networks with 10GB data usage restrictions.
- `default_unlimited`: Default networks without data usage restrictions.

**Note**: Either choose a predefined network group above or use one of your existing custom network groups with the network group name.

SuperSIM

When the asset is **Activated**

- The SIM is allowed to connect to base stations.

- If the SIM has not been charged for the current month yet, we will charge the **monthly SIM fee**:

  - **$2 per month**
  - **$1.6 per month** for customers with **more than 10 active SIMs**.

When the asset is **Inactive**

- The SIM is **prevented from connecting to base stations**.
- As long as the SIM remains inactive, **no monthly charges will apply**.

ProSIM

When the asset is **Activated**

- The SIM is allowed to **connect to base stations and use data**.
- If the SIM has not been charged for the current month yet, we will charge the **monthly price of the assigned service profile**.

ProSIMs switch automatically to the service profile of the country they’re used in. The monthly price is **$1 per month** for every service profile except **World**, which is **$5 per month**.

When the asset is **Inactive**

- The SIM is **prevented from connecting to base stations**, but it will still **retain connection priorities**.
- A **minimal maintenance fee of $0.1 per month** will be charged while the SIM remains inactive.

**Grace Period**

- If the ProSIM has **never been activated**, no charges will apply for the **first 6 months**.
- After the grace period, if the SIM is still inactive, the **$0.1 monthly maintenance fee** will begin.

**Note**: If the asset has both SuperSIM and ProSIM, activating the asset will activate both SIMs and charge the corresponding asset fee e.g. $6 for an ALPON device.

> [!WARNING]
> Updating the top-level **status** field acts as a master switch for assets that have multiple SIMs (SuperSIM and ProSIM). Setting the asset to `active` will activate all attached SIMs, while setting an asset to `inactive` will automatically deactivate all attached SIMs (SuperSIM and ProSIM).

**PATCH /v1/assets/:asset_id · cURL**

```bash
curl -X PATCH 'https://api.sixfab.com/v1/assets/[ASSET_ID]' \
  -H 'X-API-Key: [YOUR_API_KEY]' \
  -H 'Content-Type: application/json' \
  -d '{}'
```

**PATCH /v1/assets/:asset_id · Python**

```python
import requests

response = requests.patch(
    "https://api.sixfab.com/v1/assets/[ASSET_ID]",
    headers={"X-API-Key": "[YOUR_API_KEY]"},
    json={},
)
print(response.json())
```

**PATCH /v1/assets/:asset_id · Node.js**

```javascript
const response = await fetch("https://api.sixfab.com/v1/assets/[ASSET_ID]", {
  method: "PATCH",
  headers: {
    "X-API-Key": "[YOUR_API_KEY]",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({}),
});
console.log(await response.json());
```

**Response · 200**

```json
{
  "message": "Asset updated successfully",
  "updated_fields": ["[UPDATED_FIELDS]"]
}
```

**Response · 400**

```json
{
  "message": "[MESSAGE]"
}
```

**Response · 403**

```json
{
  "message": "[MESSAGE]",
  "err_code": "asset_suspended"
}
```

### Path parameters

- `asset_id` (string, Required): Serial Number, UUID, SIM SID or SIM ICCID

### Body parameters application/json

- `name` (string): Name of the asset

- `status` (enum): Status of the asset

  - Possible enum values: `active`, `inactive`

- `supersim` (object): Details to update SuperSIM properties

  - `network_group` (string)

### Returns

Success

- `message` (string): Defaults to `Asset updated successfully`.
- `updated_fields` (array of strings, Required): List of fields that were updated

## Data Usage Details

List usage details for a specific SIM type attached to an asset.

**SuperSIM (supersim):**

- Supports `hourly` (last 14 days) and `daily` (last 3 months).
- Returns usage split by `network`, showing `upload` and `download` bytes.

**ProSIM (prosim):**

- Supports **ONLY** `daily` (last 3 months). Hourly requests will return an error.
- Returns usage by `service_profile`, showing the `total` bytes used.

> [!WARNING]
> **Reporting Recommendation:**
>
> If you are using this API endpoint to generate critical reports (e.g., consumption reports, balance analysis, etc.), please note the data finalization periods:
>
> - **SuperSIM:** Wait at least **24 hours** after the reported period ends.
> - **ProSIM:** Due to delayed CDR reconciliations from global roaming partners, wait up to **10 days** for data to be completely finalized.
>
> During these periods, you may notice discrepancies as late-arriving consumption events are processed.

**GET /v1/assets/:asset_id/sims/:sim_type/usages · cURL**

```bash
curl 'https://api.sixfab.com/v1/assets/[ASSET_ID]/sims/supersim/usages' \
  -H 'X-API-Key: [YOUR_API_KEY]'
```

**GET /v1/assets/:asset_id/sims/:sim_type/usages · Python**

```python
import requests

response = requests.get(
    "https://api.sixfab.com/v1/assets/[ASSET_ID]/sims/supersim/usages",
    headers={"X-API-Key": "[YOUR_API_KEY]"},
)
print(response.json())
```

**GET /v1/assets/:asset_id/sims/:sim_type/usages · Node.js**

```javascript
const response = await fetch("https://api.sixfab.com/v1/assets/[ASSET_ID]/sims/supersim/usages", {
  headers: {
    "X-API-Key": "[YOUR_API_KEY]",
  },
});
console.log(await response.json());
```

**Response · 200**

```json
{
  "sim_type": "supersim",
  "granularity": "hourly",
  "records": [
    {
      "start_time": 1791530400,
      "end_time": 1791530400,
      "usages": [
        {
          "network": "[NETWORK]",
          "download": 0,
          "upload": 0
        }
      ]
    }
  ]
}
```

**Response · 400**

```json
{
  "message": "[MESSAGE]"
}
```

**Response · 404**

```json
{
  "message": "Asset not found"
}
```

### Path parameters

- `sim_type` (enum, Required): Type of the SIM. Use ‘supersim’ for SuperSIMs and ‘prosim’ for ProSIMs.

  - Possible enum values: `supersim`, `prosim`

- `asset_id` (string, Required): Serial Number, UUID, SIM SID or SIM ICCID

### Query parameters

- `granularity` (enum): Defaults to `hourly`.

  - Possible enum values: `hourly`, `daily`

### Returns

Success

- `sim_type` (enum, Required): The type of SIM queried

  - Possible enum values: `supersim`, `prosim`

- `granularity` (enum, Required): Granularity of the records

  - Possible enum values: `hourly`, `daily`

- `records` (array of objects, Required)

  - `start_time` (integer or number, Required): Start time of period, as unix timestamp

  - `end_time` (integer or number, Required): End time of period, as unix timestamp

  - `usages` (array of objects, Required): List of usages. For SuperSIM, returns network/upload/download. For ProSIM, returns service_profile/total.

    - `network` (string, Required): Network ID
    - `download` (integer, Required): Total download in bytes for network
    - `upload` (integer, Required): Total upload in bytes for network

Core resources

## Networks

The cellular networks SuperSIMs can use. Each network has a SID, a name and the country it is in.

**Endpoints**

- [GET /v1/networks](https://docs.sixfab.com/api/connect/networks/list/)

## The Network object

### Attributes

- `sid` (string): SID of the network
- `name` (string): Name of the network
- `country` (string): Country of the network
- `countryGroup` (string): Country Group of the network
- `countryCode` (string): Country Code of the network

**The Network object**

```json
{
  "sid": "[SID]",
  "name": "[NAME]",
  "country": "[COUNTRY]",
  "countryGroup": "[COUNTRYGROUP]",
  "countryCode": "[COUNTRYCODE]"
}
```

## Get Networks

Get all networks

**GET /v1/networks · cURL**

```bash
curl 'https://api.sixfab.com/v1/networks' \
  -H 'X-API-Key: [YOUR_API_KEY]'
```

**GET /v1/networks · Python**

```python
import requests

response = requests.get(
    "https://api.sixfab.com/v1/networks",
    headers={"X-API-Key": "[YOUR_API_KEY]"},
)
print(response.json())
```

**GET /v1/networks · Node.js**

```javascript
const response = await fetch("https://api.sixfab.com/v1/networks", {
  headers: {
    "X-API-Key": "[YOUR_API_KEY]",
  },
});
console.log(await response.json());
```

**Response**

```json
{
  "count": 0,
  "networks": [
    {
      "sid": "[SID]",
      "name": "[NAME]",
      "country": "[COUNTRY]",
      "countryGroup": "[COUNTRYGROUP]",
      "countryCode": "[COUNTRYCODE]"
    }
  ]
}
```

### Parameters

No parameters.

### Returns

Success

- `count` (integer, Required): Number of networks returned

- `networks` (array of objects, Required)

  - `sid` (string, Required): SID of the network
  - `name` (string, Required): Name of the network
  - `country` (string, Required): Country of the network
  - `countryGroup` (string, Required): Country Group of the network
  - `countryCode` (string, Required): Country Code of the network

## Deprecated

**Endpoints**

- [PATCH /v1/assets/:asset_id/sim](https://docs.sixfab.com/api/connect/deprecated/update/)
- [GET /v1/assets/:asset_id/sim/usages](https://docs.sixfab.com/api/connect/deprecated/usages/)

Deprecated

## Update SIM(Deprecated)

Update an asset’s SIM properties.

**This endpoint is deprecated and will be removed on September 1, 2026. Please use the Update Asset endpoint instead.**

***network_group*** — string, optional

**default_100mb:** Default networks with 100MB data usage restrictions.\
**default_1gb:** Default networks with 1GB data usage restrictions.\
**default_10gb:** Default networks with 10GB data usage restrictions.\
**default_unlimited:** Default networks without data usage restrictions.\

**Note:** Either choose a predefined network group above or use one of your existing custom network groups with network group name.

***status*** — string, optional

**active:** Activate the SIM, allow SIM to connect to base-stations when you activate a SIM. If its not charges for current month yet, we will charge 2$ (1.6$ for customers who has more than 10 active SIMs) monthly SIM price.\
**inactive:** Deactivate the SIM, prevent SIM from connecting to base-stations.

**PATCH /v1/assets/:asset_id/sim · cURL**

```bash
curl -X PATCH 'https://api.sixfab.com/v1/assets/[ASSET_ID]/sim' \
  -H 'X-API-Key: [YOUR_API_KEY]' \
  -H 'Content-Type: application/json' \
  -d '{}'
```

**PATCH /v1/assets/:asset_id/sim · Python**

```python
import requests

response = requests.patch(
    "https://api.sixfab.com/v1/assets/[ASSET_ID]/sim",
    headers={"X-API-Key": "[YOUR_API_KEY]"},
    json={},
)
print(response.json())
```

**PATCH /v1/assets/:asset_id/sim · Node.js**

```javascript
const response = await fetch("https://api.sixfab.com/v1/assets/[ASSET_ID]/sim", {
  method: "PATCH",
  headers: {
    "X-API-Key": "[YOUR_API_KEY]",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({}),
});
console.log(await response.json());
```

**Response · 200**

```json
{
  "message": "SIM details updated successfully",
  "updated_fields": ["[UPDATED_FIELDS]"]
}
```

**Response · 400**

```json
{
  "message": "[MESSAGE]"
}
```

**Response · 403**

```json
{
  "message": "[MESSAGE]",
  "err_code": "asset_suspended"
}
```

**Response · 404**

```json
{
  "message": "Asset not found"
}
```

### Path parameters

- `asset_id` (string, Required): Serial Number, UUID, SIM SID or SIM ICCID

### Body parameters application/json

- `network_group` (string)

- `status` (enum)

  - Possible enum values: `active`, `inactive`

- `fleet` (string): Deprecated, use ‘network_group’ instead

### Returns

Success

- `message` (string): Defaults to `SIM details updated successfully`.
- `updated_fields` (array of strings, Required): List of SIM fields that were updated. Possible values: ‘network_group’ (same as ‘fleet’) and ‘status’

Deprecated

## SIM Usage Details(Deprecated)

List usage details for a SIM, supports hourly and daily granularity.

Hourly granularity returns hourly usage records for the last 14 days. Daily granularity returns daily usage records for the last 3 months.

> [!WARNING]
> **DEPRECATED:**
>
> This endpoint is deprecated and will be removed on September 1, 2026. Please migrate to `GET /v1/assets/{id}/sims/{sim_type}/usages`.

> [!WARNING]
> If you are using this API endpoint to generate critical reports (e.g., consumption reports, balance analysis, etc.), we strongly recommend waiting at least 24 hours after the reported period ends before fetching the data. This allows consumption events to be fully processed, updated, and accurately reflected in your reports. During this period, you may notice discrepancies between the data retrieved from the API and the data on the Connect platform, as not all data may have been processed yet.

**GET /v1/assets/:asset_id/sim/usages · cURL**

```bash
curl 'https://api.sixfab.com/v1/assets/[ASSET_ID]/sim/usages' \
  -H 'X-API-Key: [YOUR_API_KEY]'
```

**GET /v1/assets/:asset_id/sim/usages · Python**

```python
import requests

response = requests.get(
    "https://api.sixfab.com/v1/assets/[ASSET_ID]/sim/usages",
    headers={"X-API-Key": "[YOUR_API_KEY]"},
)
print(response.json())
```

**GET /v1/assets/:asset_id/sim/usages · Node.js**

```javascript
const response = await fetch("https://api.sixfab.com/v1/assets/[ASSET_ID]/sim/usages", {
  headers: {
    "X-API-Key": "[YOUR_API_KEY]",
  },
});
console.log(await response.json());
```

**Response · 200**

```json
{
  "granularity": "hourly",
  "records": [
    {
      "start_time": 1791530400,
      "end_time": 1791530400,
      "usages": [
        {
          "network": "[NETWORK]",
          "download": 0,
          "upload": 0
        }
      ]
    }
  ]
}
```

**Response · 404**

```json
{
  "message": "Asset not found"
}
```

### Path parameters

- `asset_id` (string, Required): Serial Number, UUID, SIM SID or SIM ICCID

### Query parameters

- `granularity` (enum): Defaults to `hourly`.

  - Possible enum values: `hourly`, `daily`

### Returns

Success

- `granularity` (enum): Defaults to `hourly`.

  - Possible enum values: `hourly`, `daily`

- `records` (array of objects, Required)

  - `start_time` (integer or number, Required): Start time of period, as unix timestamp

  - `end_time` (integer or number, Required): End time of period, as unix timestamp

  - `usages` (array of objects, Required)

    - `network` (string, Required): Network ID
    - `download` (integer, Required): Total download in bytes for network
    - `upload` (integer, Required): Total upload in bytes for network
