---
title: "Alerts | Docs | IoT by R&D Copilot"
description: "Read and manage alerts through the IoT API with authenticated, versioned requests."
canonical: "https://iot.rdcopilot.com/docs/api-reference/alerts/"
language: en
updated: 2026-11-22
---

# Alerts

Read and manage alerts through the IoT API with authenticated, versioned requests.

## List alerts

GET `/iot/v1/alerts`

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `assetId` | query | `string` | Nooptional | Filter by assetId. |
| `state` | query | `string` | Nooptional | Filter by state. |
| `limit` | query | `integer` | Nooptional | Records per page. Default `100` Range `1` – `500` |
| `cursor` | query | `string` | Nooptional | Opaque nextCursor from the previous response. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `200` | A page of records. | `AlertPage` |
| `400` | Request refused: invalid\_request. No change is applied. | `Error` |
| `401` | Request refused: unauthorized. No change is applied. | `Error` |
| `403` | Request refused: forbidden. No change is applied. | `Error` |
| `404` | Request refused: record\_not\_found. No change is applied. | `Error` |
| `429` | Request refused: rate\_limited. No change is applied. | `Error` |
| `503` | Request refused: unavailable. No change is applied. | `Error` |

### Request

curl

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

JavaScript

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

Python

```python
import os
import requests

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

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/iot/v1/alerts?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#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/iot/v1/alerts?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`

JSON

```json
{
  "items": [
    {
      "id": "alert-1",
      "ruleId": "rule-1",
      "severity": "critical",
      "assetId": "cold-room-2",
      "opened": "2026-11-20T09:03:10Z",
      "state": "open",
      "assignee": null,
      "workOrderId": null,
      "revision": 1
    }
  ],
  "nextCursor": null
}
```

## Read an alert

GET `/iot/v1/alerts/{alertId}`

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `alertId` | path | `string` | Yesrequired | Identifier of the requested resource. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `200` | The current record. | `Alert` |
| `400` | Request refused: invalid\_request. No change is applied. | `Error` |
| `401` | Request refused: unauthorized. No change is applied. | `Error` |
| `403` | Request refused: forbidden. No change is applied. | `Error` |
| `404` | Request refused: record\_not\_found. No change is applied. | `Error` |
| `429` | Request refused: rate\_limited. No change is applied. | `Error` |
| `503` | Request refused: unavailable. No change is applied. | `Error` |

### Request

curl

```bash
curl "$RDC_BASE_URL/iot/v1/alerts/alert-1" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/iot/v1/alerts/alert-1`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
  },
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'GET',
    f'{os.environ["RDC_BASE_URL"]}/iot/v1/alerts/alert-1',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/iot/v1/alerts/alert-1');
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#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/iot/v1/alerts/alert-1");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `200`

JSON

```json
{
  "id": "alert-1",
  "ruleId": "rule-1",
  "severity": "critical",
  "assetId": "cold-room-2",
  "opened": "2026-11-20T09:03:10Z",
  "state": "open",
  "assignee": null,
  "workOrderId": null,
  "revision": 1
}
```

## Acknowledge an alert

POST `/iot/v1/alerts/{alertId}/acknowledge`

Apply the change once. Reuse the operationId after a timeout; a different payload with the same key is refused.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `alertId` | path | `string` | Yesrequired | Identifier of the requested resource. |

### Request body

| Field | Type | Required | Meaning |
| --- | --- | --- | --- |
| `operationId` | `string (uuid)` | Yesrequired | Caller-selected UUID; reuse only for the same request. |
| `expectedRevision` | `integer` | Yesrequired | Last revision read; zero for creation. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `202` | Accepted for processing; poll the operation for completion. | `OperationResult` |
| `400` | Request refused: invalid\_request. No change is applied. | `Error` |
| `401` | Request refused: unauthorized. No change is applied. | `Error` |
| `403` | Request refused: forbidden. No change is applied. | `Error` |
| `404` | Request refused: record\_not\_found. No change is applied. | `Error` |
| `409` | revision\_conflict when the record changed; operation\_reused when an operationId is reused with different content. | `Error` |
| `422` | Request refused: INVALID\_TRANSITION. No change is applied. | `Error` |
| `429` | Request refused: rate\_limited. No change is applied. | `Error` |
| `503` | Request refused: unavailable. No change is applied. | `Error` |

### Request

curl

```bash
curl -X POST "$RDC_BASE_URL/iot/v1/alerts/alert-1/acknowledge" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "a1000000-0000-4000-8000-000000000010",
  "expectedRevision": 1
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/iot/v1/alerts/alert-1/acknowledge`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "a1000000-0000-4000-8000-000000000010",
    "expectedRevision": 1
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/iot/v1/alerts/alert-1/acknowledge',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': 'a1000000-0000-4000-8000-000000000010',
        'expectedRevision': 1,
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "a1000000-0000-4000-8000-000000000010",
  "expectedRevision": 1
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/iot/v1/alerts/alert-1/acknowledge');
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#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/iot/v1/alerts/alert-1/acknowledge");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "a1000000-0000-4000-8000-000000000010",
  "expectedRevision": 1
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "a1000000-0000-4000-8000-000000000010",
  "status": "accepted",
  "aggregateRevision": 2
}
```

## Resolve an acknowledged alert

POST `/iot/v1/alerts/{alertId}/resolve`

Apply the change once. Reuse the operationId after a timeout; a different payload with the same key is refused.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `alertId` | path | `string` | Yesrequired | Identifier of the requested resource. |

### Request body

| Field | Type | Required | Meaning |
| --- | --- | --- | --- |
| `operationId` | `string (uuid)` | Yesrequired | Caller-selected UUID; reuse only for the same request. |
| `expectedRevision` | `integer` | Yesrequired | Last revision read; zero for creation. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `202` | Accepted for processing; poll the operation for completion. | `OperationResult` |
| `400` | Request refused: invalid\_request. No change is applied. | `Error` |
| `401` | Request refused: unauthorized. No change is applied. | `Error` |
| `403` | Request refused: forbidden. No change is applied. | `Error` |
| `404` | Request refused: record\_not\_found. No change is applied. | `Error` |
| `409` | revision\_conflict when the record changed; operation\_reused when an operationId is reused with different content. | `Error` |
| `422` | Request refused: INVALID\_TRANSITION. No change is applied. | `Error` |
| `429` | Request refused: rate\_limited. No change is applied. | `Error` |
| `503` | Request refused: unavailable. No change is applied. | `Error` |

### Request

curl

```bash
curl -X POST "$RDC_BASE_URL/iot/v1/alerts/alert-1/resolve" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "a1000000-0000-4000-8000-000000000013",
  "expectedRevision": 3
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/iot/v1/alerts/alert-1/resolve`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "a1000000-0000-4000-8000-000000000013",
    "expectedRevision": 3
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/iot/v1/alerts/alert-1/resolve',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': 'a1000000-0000-4000-8000-000000000013',
        'expectedRevision': 3,
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "a1000000-0000-4000-8000-000000000013",
  "expectedRevision": 3
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/iot/v1/alerts/alert-1/resolve');
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#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/iot/v1/alerts/alert-1/resolve");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "a1000000-0000-4000-8000-000000000013",
  "expectedRevision": 3
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "a1000000-0000-4000-8000-000000000013",
  "status": "accepted",
  "aggregateRevision": 4
}
```

## Create an ERP work order

POST `/iot/v1/alerts/{alertId}/work-order`

Apply the change once. Reuse the operationId after a timeout; a different payload with the same key is refused.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `alertId` | path | `string` | Yesrequired | Identifier of the requested resource. |

### Request body

| Field | Type | Required | Meaning |
| --- | --- | --- | --- |
| `operationId` | `string (uuid)` | Yesrequired | Caller-selected UUID; reuse only for the same request. |
| `expectedRevision` | `integer` | Yesrequired | Last revision read; zero for creation. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `202` | Accepted for processing; poll the operation for completion. | `OperationResult` |
| `400` | Request refused: invalid\_request. No change is applied. | `Error` |
| `401` | Request refused: unauthorized. No change is applied. | `Error` |
| `403` | Request refused: forbidden. No change is applied. | `Error` |
| `404` | Request refused: record\_not\_found. No change is applied. | `Error` |
| `409` | revision\_conflict when the record changed; operation\_reused when an operationId is reused with different content. | `Error` |
| `422` | Request refused: INVALID\_TRANSITION. No change is applied. | `Error` |
| `429` | Request refused: rate\_limited. No change is applied. | `Error` |
| `503` | Request refused: unavailable. No change is applied. | `Error` |

### Request

curl

```bash
curl -X POST "$RDC_BASE_URL/iot/v1/alerts/alert-1/work-order" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "a1000000-0000-4000-8000-000000000012",
  "expectedRevision": 3
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/iot/v1/alerts/alert-1/work-order`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "a1000000-0000-4000-8000-000000000012",
    "expectedRevision": 3
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/iot/v1/alerts/alert-1/work-order',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': 'a1000000-0000-4000-8000-000000000012',
        'expectedRevision': 3,
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "a1000000-0000-4000-8000-000000000012",
  "expectedRevision": 3
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/iot/v1/alerts/alert-1/work-order');
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#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/iot/v1/alerts/alert-1/work-order");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "a1000000-0000-4000-8000-000000000012",
  "expectedRevision": 3
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "a1000000-0000-4000-8000-000000000012",
  "status": "accepted",
  "aggregateRevision": 4
}
```

## Assign an alert

POST `/iot/v1/alerts/{alertId}/assign`

Apply the change once. Reuse the operationId after a timeout; a different payload with the same key is refused.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `alertId` | path | `string` | Yesrequired | Identifier of the requested resource. |

### Request body

| Field | Type | Required | Meaning |
| --- | --- | --- | --- |
| `operationId` | `string (uuid)` | Yesrequired | Caller-selected UUID; reuse only for the same request. |
| `expectedRevision` | `integer` | Yesrequired | Last revision read; zero for creation. |
| `assignee` | `string` | Yesrequired | Existing account member identifier. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `202` | Accepted for processing; poll the operation for completion. | `OperationResult` |
| `400` | Request refused: invalid\_request. No change is applied. | `Error` |
| `401` | Request refused: unauthorized. No change is applied. | `Error` |
| `403` | Request refused: forbidden. No change is applied. | `Error` |
| `404` | Request refused: record\_not\_found. No change is applied. | `Error` |
| `409` | revision\_conflict when the record changed; operation\_reused when an operationId is reused with different content. | `Error` |
| `422` | Request refused: INVALID\_TRANSITION. No change is applied. | `Error` |
| `429` | Request refused: rate\_limited. No change is applied. | `Error` |
| `503` | Request refused: unavailable. No change is applied. | `Error` |

### Request

curl

```bash
curl -X POST "$RDC_BASE_URL/iot/v1/alerts/alert-1/assign" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "a1000000-0000-4000-8000-000000000011",
  "expectedRevision": 2,
  "assignee": "mihai-stan"
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/iot/v1/alerts/alert-1/assign`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "a1000000-0000-4000-8000-000000000011",
    "expectedRevision": 2,
    "assignee": "mihai-stan"
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/iot/v1/alerts/alert-1/assign',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': 'a1000000-0000-4000-8000-000000000011',
        'expectedRevision': 2,
        'assignee': 'mihai-stan',
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "a1000000-0000-4000-8000-000000000011",
  "expectedRevision": 2,
  "assignee": "mihai-stan"
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/iot/v1/alerts/alert-1/assign');
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#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/iot/v1/alerts/alert-1/assign");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "a1000000-0000-4000-8000-000000000011",
  "expectedRevision": 2,
  "assignee": "mihai-stan"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "a1000000-0000-4000-8000-000000000011",
  "status": "accepted",
  "aggregateRevision": 3
}
```
