Cumulocity Alarms API

The Alarms API from Cumulocity — 2 operation(s) for alarms.

Business capability
IT Operations Management BC-600.40

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /alarm/alarms Raise a new alarm for a device · Create an alarm #
Ask an LLM
“How can I raise an alarm against a device from my own code?”
“What fields are required when creating a new alarm, like severity and text?”
Tell an agent
Raise a {severity} alarm of type {type} on device {source} saying "{text}" at {time}.
Create a new {status} alarm for device {source} with message {text}.
GET /alarm/alarms List alarms raised on devices · Retrieve all alarms #
Ask an LLM
“Which alarms are currently active on my Cumulocity devices?”
“Can I filter the alarm list by severity, such as only critical ones?”
Tell an agent
List active alarms for device {source}.
Show all {severity} alarms raised since {dateFrom}.
PUT /alarm/alarms Update many alarms at once by filter · Update alarm collections #
Ask an LLM
“How do I acknowledge every active alarm on a device in one call?”
“Can I change the status of all alarms matching a filter at once?”
Tell an agent
Set every {status} alarm on device {source} to ACKNOWLEDGED in bulk.
Bulk-clear all alarms raised by device {source}.
DELETE /alarm/alarms Delete alarms matching a filter · Remove alarm collections #
Ask an LLM
“Is there a way to purge a whole batch of old alarms by filter?”
“Can I wipe out many alarms in one request instead of one at a time?”
Tell an agent destructive · confirm first
Delete all alarms matching the current filter.
Purge the alarm collection by filter in a single request.
GET /alarm/alarms/{id} Look up a single alarm by ID · Retrieve a specific alarm #
Ask an LLM
“How do I fetch the full details of one alarm by its ID?”
“What severity and status does a specific alarm have right now?”
Tell an agent
Show me alarm {id}.
Get the severity, count and first occurrence time of alarm {id}.
PUT /alarm/alarms/{id} Change the status or text of one alarm · Update a specific alarm #
Ask an LLM
“How do I acknowledge or clear one specific alarm?”
“Can I change the severity of an alarm I already raised?”
Tell an agent
Set the status of alarm {id} to {status}.
Change alarm {id} to severity {severity} with text {text}.
POST /alarm/alarms/upsert Create or update an alarm #
GET /alarm/alarms/count Retrieve the total number of alarms #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cumulocity:cumulocity-alarms-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cumulocity-alarms-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: Latest
  title: Cumulocity Alarms API
  x-logo:
    url: https://www.cumulocity.com/docs/images/logo-platform.svg
    backgroundColor: '#F8F8F8'
    altText: Cumulocity
    href: https://www.cumulocity.com/api
  description: '# REST implementation


    This section describes the aspects common to all REST-based interfaces of Cumulocity. The interfaces are based on the Hypertext Transfer Protocol 1.1 using HTTPS. ## HTTP usage


    ### Application management


    Cumulocity uses a so-called "application key" to distinguish requests coming from devices and traffic from applications. If you write an application, pass the following header as part of all requests:


    ```markup

    X-Cumulocity-Application-Key:

    ```


    For example, if you registered your application in the Cumulocity Administration application with the key "myapp", your requests should contain the header:


    ```markup

    X-Cumulocity-Application-Key: myapp

    ```


    This makes your application subscribable and billable. If you implement a device, do not pass the key. > **ⓘ Info:** Make sure that you pass the key in **all** requests coming from an application. If you leave out the key,

    > the request will be considered as a device request, and the corresponding device will be marked as "available". ### Limited HTTP clients


    If you use an HTTP client that can only perform GET and POST methods in HTTP, you can emulate the other methods through an additional "X-HTTP-METHOD" header. Simply issue a POST request and add the header, specifying the actual REST method to be executed. For example, to emulate the "PUT" (modify) method, you can use:


    ```http

    POST ... X-HTTP-METHOD: PUT

    ```


    ### Processing mode


    Every update request (PUT, POST, DELETE) executes with a so-called *processing mode*. The processing modes are as follows:


    |Processing mode|Description|

    |---|---|

    |PERSISTENT (default)|Stores data in the Cumulocity database and sends data to the Streaming Analytics engine. Afterwards, Cumulocity returns the result of the request. This is the default mode.|

    |TRANSIENT|Sends data to the Streaming Analytics engine and immediately returns the results asynchronously but does not store data in Cumulocity’s database. This mode saves storage and processing costs and is useful for example when tracking devices in real time without requiring data to be stored.|

    |QUIESCENT|Behaves similar to the persistent mode with the exception that no real-time notifications will be sent.|

    |CEP|Behaves like the transient mode with the exception that no real-time notifications are sent.|


    To explicitly control the processing mode of an update request, you can use the "X-Cumulocity-Processing-Mode" header with a value of either "PERSISTENT", "TRANSIENT", "QUIESCENT" or "CEP":


    ```markup

    X-Cumulocity-Processing-Mode: PERSISTENT

    ```


    > **ⓘ Info:** Events are always delivered to CEP/Apama for all processing modes. This is independent from real-time notifications. ### Authorization


    All requests issued to Cumulocity are subject to authorization. To determine the required permissions, see the "Required role" entries for the individual requests. To learn more about the different permissions and the concept of ownership in Cumulocity, see Getting started > Technical concepts > Security aspects > Access control > Managing roles and assigning permissions in the Cumulocity user documentation. > **⚠️ Important:** In the Cumulocity API, each granular permission is identified by a unique “permission” string, which is prefixed with ROLE_ (for example, ROLE_ALARM_READ, ROLE_INVENTORY_ADMIN). Therefore, permissions are frequently referred to as “roles” throughout the API as well as in the configuration files. For example, the microservice manifest includes a requiredRoles field, which actually expects a permission string. See also the Glossary of the Cumulocity user documentation for the usage of the terms “permission” and “role” in the Cumulocity context. ### Media types


    Each type of data is associated with an own media type. The general format of media types is:


    ```markup

    application/vnd.com.nsn.cumulocity.+json;ver=;charset=UTF-8

    ```


    Each media type contains a parameter `ver` indicating the version of the type.'
servers:
- description: Cumulocity tenant
  url: https://<TENANT_DOMAIN>
security:
- Basic: []
- OAI-Secure: []
- SSO: []
- JWT-IAM: []
tags:


# --- truncated at 32 KB (62 KB total) ---
# Full source: https://artifacts.apis.io/cumulocity/openapi/cumulocity-alarms-api-openapi.yml