Skip to content

Arm

POST
/v1/{alarmId}/arm
curl --request POST \
--url https://api.openalarm.io/v1/k7m3x9q2f8d4w1b5/arm \
--header 'X-API-Key: <X-API-Key>'

Arm the alarm to the default mode (Away) and store it. The stored mode is what a bare trigger fires. Arming is an optimisation for stateful sources (Home Assistant); it is never required for a trigger to fire.

alarmId
required
string

The alarm’s identifier. The API key gates the call; this names which alarm it acts on.

Example
k7m3x9q2f8d4w1b5

The API key is missing or invalid.

Unauthorized.

Alarm ID not found.

The event was accepted. Pre-release: the exact success status code and response body are being finalized and are not documented yet.