Skip to main content
This is a public API!
All command messages must be published to the queue resource/commands with a valid JWT token.
Responses are delivered on secom/mobileapp/<app-unique-id>. Use a unique correlationId to pair requests and responses.
Transport: MQTT (pub/sub). The alarm panel publishes commands to broker queues.

Message Envelope (Common Schema)

Command Request (Envelope)

  • Publish to: resource/commands
  • Security: jwtToken must be valid; sensitive fields (e.g., pinCode) must be AES‑256 encrypted inside parameters.

Command Response (Envelope)

  • Result codes
    • success – command accepted and processed; see data.
    • failed – command delivered but panel or backend reported failure.
    • not send – validation/authz failed; command not sent to panel.
    • send_no_ack – published but no ACK from panel within timeout.
    • unauthorized – JWT invalid/expired or user lacks access.

Error Response Templates (Examples)

Missing User / Access Check Skipped
Unauthorized
Panel Disabled
Panel Not Found
Command Failed
Command Not Permitted
Generic Error
Command Not Found
Transmission Failed
Partition Not Found
User Not Allowed

Command - Response Pairs

Below are command-specific requests and their successful responses. For failures, refer to the Error Response Templates above.

1. Arm

Arms the alarm panel for a given partition.

Request

Success Response


2. Stay Arm

Arms the alarm panel in Stay/Indoor mode.

Request

Success Response


3. Sleep Arm

Arms the alarm panel in Sleep/Night mode.

Request

Success Response


4. Disarm

Disarms the alarm panel for a given partition.

Request

Success Response


5. Arm Zone

Arms a specific zone.

Request

Success Response

Spesific Error Response


6. Disarm Zone

Disarms a specific zone.

Request

Success Response

Spesific Error Response


7. Zone Bypass

Bypasses (ignores) a zone.

Request

Success Response


8. Zone Unbypass

Removes bypass state from a zone.

Request

Success Response


9. Set Output

Controls panel outputs (e.g., relays, DOs).

Request

Success Response


10. Get Status

Retrieves the status of the alarm panel.

Request

Success Response 1

All properties don’t have any true value

Success Response 2

All properties have at least one true value

11. Get Failures

Retrieves active failures reported by the panel.

Request

Success Response


12. Initiate Connection

Instructs the panel to initiate a fresh connection.

Request

Success Response

Spesific Error Response


13. Set Pin Code

Updates the pin code for future operations.

Request

Success Response

Keep error handling DRY: implement a shared mapper from result + reason to user‑facing messages.