Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Quickstart

    Register a device and read its latest measurement.

    Obtain an account through sales using the contact form, then follow Authentication. List the assets and copy the identifier of the cold room into assetId.

    curl

    curl "$RDC_BASE_URL/iot/v1/assets?limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/iot/v1/assets?limit=20`, {
      method: 'GET',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
      },
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'GET',
        f'{os.environ["RDC_BASE_URL"]}/iot/v1/assets?limit=20',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/iot/v1/assets?limit=20');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'GET',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        ],
    ]);
    $result = json_decode(curl_exec($curl), true);
    curl_close($curl);

    C#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/iot/v1/assets?limit=20");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

    {
      "items": [
        {
          "id": "warehouse",
          "parentId": null,
          "name": "Warehouse"
        },
        {
          "id": "cold-room-1",
          "parentId": "warehouse",
          "name": "Cold room 1"
        },
        {
          "id": "cold-room-2",
          "parentId": "warehouse",
          "name": "Cold room 2"
        },
        {
          "id": "cold-room-3",
          "parentId": "warehouse",
          "name": "Cold room 3"
        },
        {
          "id": "shop",
          "parentId": null,
          "name": "Shop"
        }
      ],
      "nextCursor": null
    }

    Choose a unique externalId and a fresh UUID for operationId. Device creation uses expectedRevision: 0. Keep the operation identifier until you have its outcome.

    curl

    curl -X POST "$RDC_BASE_URL/iot/v1/devices" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "a1000000-0000-4000-8000-000000000001",
      "expectedRevision": 0,
      "name": "Air temperature probe",
      "assetId": "cold-room-2",
      "connection": "LoRaWAN",
      "externalId": "cold-room-2-air-probe"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/iot/v1/devices`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "a1000000-0000-4000-8000-000000000001",
        "expectedRevision": 0,
        "name": "Air temperature probe",
        "assetId": "cold-room-2",
        "connection": "LoRaWAN",
        "externalId": "cold-room-2-air-probe"
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/iot/v1/devices',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': 'a1000000-0000-4000-8000-000000000001',
            'expectedRevision': 0,
            'name': 'Air temperature probe',
            'assetId': 'cold-room-2',
            'connection': 'LoRaWAN',
            'externalId': 'cold-room-2-air-probe',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "a1000000-0000-4000-8000-000000000001",
      "expectedRevision": 0,
      "name": "Air temperature probe",
      "assetId": "cold-room-2",
      "connection": "LoRaWAN",
      "externalId": "cold-room-2-air-probe"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/iot/v1/devices');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'POST',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
            'Content-Type: application/json',
        ],
        CURLOPT_POSTFIELDS => $body,
    ]);
    $result = json_decode(curl_exec($curl), true);
    curl_close($curl);

    C#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/iot/v1/devices");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "a1000000-0000-4000-8000-000000000001",
      "expectedRevision": 0,
      "name": "Air temperature probe",
      "assetId": "cold-room-2",
      "connection": "LoRaWAN",
      "externalId": "cold-room-2-air-probe"
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    {
      "operationId": "a1000000-0000-4000-8000-000000000001",
      "status": "accepted",
      "aggregateRevision": 1
    }

    A 202 response records acceptance, not a connected device. Poll the operation until it is completed or rejected; after a timeout repeat the identical request with the same operationId.

    curl

    curl "$RDC_BASE_URL/iot/v1/operations/a1000000-0000-4000-8000-000000000001" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/iot/v1/operations/a1000000-0000-4000-8000-000000000001`, {
      method: 'GET',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
      },
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'GET',
        f'{os.environ["RDC_BASE_URL"]}/iot/v1/operations/a1000000-0000-4000-8000-000000000001',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/iot/v1/operations/a1000000-0000-4000-8000-000000000001');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'GET',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        ],
    ]);
    $result = json_decode(curl_exec($curl), true);
    curl_close($curl);

    C#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/iot/v1/operations/a1000000-0000-4000-8000-000000000001");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

    {
      "operationId": "a1000000-0000-4000-8000-000000000001",
      "status": "completed",
      "aggregateRevision": 1
    }

    Find the device by externalId, configure its connection as described in the matching connectivity guide, then read the tag snapshot. Check quality and sourceTime before using the value.

    curl

    curl "$RDC_BASE_URL/iot/v1/devices/device-12/tags?limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/iot/v1/devices/device-12/tags?limit=20`, {
      method: 'GET',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
      },
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'GET',
        f'{os.environ["RDC_BASE_URL"]}/iot/v1/devices/device-12/tags?limit=20',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/iot/v1/devices/device-12/tags?limit=20');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'GET',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        ],
    ]);
    $result = json_decode(curl_exec($curl), true);
    curl_close($curl);

    C#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/iot/v1/devices/device-12/tags?limit=20");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

    {
      "items": [
        {
          "id": "tag-cold-room-2-temperature",
          "sequence": 287,
          "path": "cold-room-2/temperature",
          "value": "5.30",
          "unit": "°C",
          "quality": "good",
          "sourceTime": "2026-11-20T09:10:50Z"
        },
        {
          "id": "tag-cold-room-2-battery",
          "sequence": 5,
          "path": "cold-room-2/battery",
          "value": "68",
          "unit": "%",
          "quality": "good",
          "sourceTime": "2026-11-20T09:10:50Z"
        },
        {
          "id": "tag-cold-room-2-signal",
          "sequence": 6,
          "path": "cold-room-2/signal",
          "value": "-74",
          "unit": "dBm",
          "quality": "good",
          "sourceTime": "2026-11-20T09:10:50Z"
        }
      ],
      "nextCursor": null
    }