AdminMute alarm push notifications for one device

Mute alarm push notifications for one device

Stops alarm push notifications for a single device without affecting any other device. Use when a faulty or flapping sensor is flooding users — a sensor toggling every second generates a notification every second, and nothing else on the path limits that. Muted alarms are still recorded in the notification log with outcome "muted", so the device stays explainable. A reason is required. Re-muting updates the existing mute in place. Requires dual auth: X-Admin-API-Key + JWT.

curl -X PUT "https://api.spkey.co/admin/devices/example_string/notification-mute" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "reason": "example_string",
  "expiresAt": "2024-12-25T10:00:00Z"
}'
{
  "success": true,
  "mute": {
    "deviceId": "example_string",
    "reason": "example_string",
    "mutedBy": "example_string",
    "expiresAt": "null",
    "createdAt": "example_string",
    "expired": true
  }
}
PUT
/admin/devices/{deviceId}/notification-mute
PUT
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (JWT)
Bearer Tokenstring
Required

JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.

JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.
API Key (header: X-API-Key)
X-API-Keystring
Required

API key for B2B organization access. Provided during organization onboarding.

API key for B2B organization access. Provided during organization onboarding.
path
deviceIdstring
Required

MatterDevice UUID (= AWS IoT thingName) to mute or unmute.

Min length: 1
Content-Typestring
Required

The media type of the request body

Options: application/json
reasonstring
Required

Why this device is muted. REQUIRED — an unexplained mute becomes permanent, because nobody later knows whether lifting it is safe.

Min length: 3 • Max length: 500
expiresAtstring

ISO-8601 instant after which the mute stops applying. Omit for an indefinite mute. Expiry is evaluated on read, so it cannot fail open.

Format: date-time
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.

header
X-API-Keystring
Required

API Key for authentication. API key for B2B organization access. Provided during organization onboarding.

Path Parameters

deviceIdstring
Required

MatterDevice UUID (= AWS IoT thingName) to mute or unmute.

Body

application/json
reasonstring
Required

Why this device is muted. REQUIRED — an unexplained mute becomes permanent, because nobody later knows whether lifting it is safe.

expiresAtstring

ISO-8601 instant after which the mute stops applying. Omit for an indefinite mute. Expiry is evaluated on read, so it cannot fail open.

Responses

successboolean
Required
Allowed values:true
muteobject
Required