Notifications
Angelcam turns a notable event into a message: an incident, a camera going offline, an Angelcam Connector going offline, an arming, a triggered action. The message is written once, and then sent out through every notification method whose rule matches it — an e-mail, an SMS, a push to the mobile app, a webhook.
Each of those sends is recorded on the message as a delivery. One message, one event; one delivery per attempt to tell somebody about it. That is what this page is about: reading what was sent, checking whether it arrived, and sending it again when it did not.
Reading messages
Section titled “Reading messages”GET /rts/messages/ returns the messages of
the active space, newest first:
curl -H "Authorization: Bearer ACCESS_TOKEN" \ "https://api.angelcam.com/v1/rts/messages/?limit=2"{ "count": 2, "next": "https://api.angelcam.com/v1/rts/messages/?limit=2&last=1738", "previous": null, "results": [ { "id": 1739, "created_at": "2026-11-24T09:12:03Z", "title": "Sensor My Sensor detected motion", "type": "my_incident", "incident": 4821, "short_message": "Your sensor with name My Sensor detected motion.", "long_message": "Your sensor with name My Sensor detected motion. Find out more at <url>.", "is_read": false, "read_at": null, "is_critical": true, "image": null, "action_url": "https://my.angelcam.com/location-view/eyJhbGciOiJIUzI1NiJ9/", "action_label": "Verify the incident", "show_detail": true, "deliveries": [ { "channel": "email", "target": "guard@example.com", "status": "failed", "sent_at": "2026-11-24T09:12:04Z", "error": "SMTP 550 - recipient mailbox unavailable", "response_status_code": null }, { "channel": "http", "target": "hooks.example.com", "status": "delivered", "sent_at": "2026-11-24T09:12:04Z", "error": null, "response_status_code": 200 } ] }, { "id": 1738, "created_at": "2026-11-24T08:02:51Z", "title": "Camera Front door went offline", "type": "camera_status_offline", "incident": null, "short_message": "Your camera Front door went offline.", "long_message": "Your camera Front door went offline at 9:02.", "is_read": true, "read_at": "2026-11-24T08:30:12Z", "is_critical": false, "image": null, "action_url": "https://my.angelcam.com/camera/1/", "action_label": "Check camera", "show_detail": true, "deliveries": [ { "channel": "push_notification", "target": "0f2a9c1e8b", "status": "delivered", "sent_at": "2026-11-24T08:02:52Z", "error": null, "response_status_code": null } ] } ]}A few things to know about this list:
- Paging runs forwards only. Follow the
nextURL, or setlastyourself to theidof the last message you already have.previousis alwaysnull, so keep the pages you have read. countis the size of the page, not a total. Messages live in a store that cannot be counted cheaply, so there is no number of all messages in the space.incidentfilters the list down to the messages of one incident:GET /rts/messages/?incident=4821shows everything that one incident caused.- Messages are kept for 180 days from
created_at. GET /rts/messages/{message_id}/returns the same object for one message, andPUT /rts/messages/{message_id}/with{"is_read": true}marks it read.is_readis the only field a client can change.GET /rts/messages/unread-count/is the number behind a bell or an app icon: unread incidents by default, every unread type with?types=all.
The texts (title, short_message, long_message, action_label) are written for a person and
come back in the language of the user the token belongs to, the same language the e-mail or the
push of that message was written in. Branch on type, never on the text.
Deliveries
Section titled “Deliveries”deliveries is the log of what Angelcam did with the message, oldest attempt first:
| Field | Description |
|---|---|
channel |
The kind of notification method it went through: email, sms, push_notification, http, IFTTT, jablotron_security |
target |
Where it went, as a label for display: the address, the phone number, the host name of the webhook URL, the IFTTT trigger identity, the Jablotron object ID, or a hash of the device token for the mobile app |
status |
delivered or failed |
sent_at |
When the attempt was made |
error |
Why it failed, as the channel reported it; null when it did not |
response_status_code |
The HTTP status your server answered with — http and jablotron_security only, null elsewhere |
One channel in that list needs a word: jablotron_security methods are set up by Angelcam, not
through the notification methods API, so a delivery can name a channel you will not find in
GET /rts/notifications/methods/.
Three details worth building on:
- The array is append-only. Angelcam adds an entry per attempt and never rewrites one, so the
position of an entry is stable. That position is the
delivery_indexthe resend endpoint takes. - One entry per attempt, not per method. A push to the mobile app goes to every device the user has registered, so such a method leaves one entry per device, each with its own status. Count attempts here, never configured methods.
deliveredmeans Angelcam handed it over without an error, nothing more. For a webhook that is a response below400from your server, which is a real confirmation. For e-mail, SMS and push it means the provider accepted it, not that the person saw it.
An empty deliveries array means the message was created but sent to nobody — usually because no
notification rule matched it. That is a rule problem, not a delivery problem: check
GET /rts/notifications/rules/
and the catalog at
GET /rts/notifications/types/.
A method can also sit out a message it does not apply to; an IFTTT applet, for instance, only ever
fires on incidents.
To find what went wrong across a space, read the list and keep the failures:
const failures = messages.flatMap((message) => message.deliveries .map((delivery, index) => ({delivery, index})) .filter(({delivery}) => delivery.status === 'failed') .map(({delivery, index}) => ({ message_id: message.id, delivery_index: index, channel: delivery.channel, target: delivery.target, error: delivery.error, })),);Keep the index, not just the entry — it is what the next step needs.
Resending a failed notification
Section titled “Resending a failed notification”POST /rts/messages/{message_id}/retry-delivery/
sends one failed delivery again, through the notification method it failed on. It takes the
position of the entry in the deliveries array:
curl -X POST "https://api.angelcam.com/v1/rts/messages/1739/retry-delivery/" \ -H "Authorization: Bearer ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{"delivery_index": 0}'It answers 202 Accepted, and the body is the message as it stands now, before the new attempt.
The send is queued, so read the message again a moment later to see how it went. Reading
GET /rts/messages/1739/ once the queue has caught up then shows the attempt appended, with the
failed one still in place:
{ "id": 1739, "deliveries": [ { "channel": "email", "target": "guard@example.com", "status": "failed", "sent_at": "2026-11-24T09:12:04Z", "error": "SMTP 550 - recipient mailbox unavailable", "response_status_code": null }, { "channel": "http", "target": "hooks.example.com", "status": "delivered", "sent_at": "2026-11-24T09:12:04Z", "error": null, "response_status_code": 200 }, { "channel": "email", "target": "guard@example.com", "status": "delivered", "sent_at": "2026-11-24T10:41:19Z", "error": null, "response_status_code": null } ]}So the history of a message is never rewritten: an old failure stays visible next to the retry that worked, and the indexes of the entries you already know stay valid.
| Answer | What it means |
|---|---|
202 Accepted |
Queued. Read the message again to see how the attempt went; it can leave more than one entry, see below. |
400 Bad Request |
delivery_index is missing, out of range, or points at a delivery whose status is delivered. Only failures can be resent. |
409 Conflict |
The notification method is gone: deleted, deactivated, or pointed at a different target since the message was sent. There is nothing to resend through, so fix the method first — and note that a repaired method sends the next message, not this one. |
403 Forbidden |
The token is missing the messages_manage scope. Reading needs messages_access; resending changes something, so it needs messages_manage. |
A resend goes through the same code as the original send, so a webhook gets a fresh signature with
fresh timestamps — see signature verification. Treat
your webhook handler as something that may see the same message twice and key on the message id.
One resend can append several entries
Section titled “One resend can append several entries”For e-mail, SMS, push and IFTTT, a send that fails with a transport error is retried internally up to three more times, about ten seconds apart, and each of those attempts records its own entry. So a resend can take half a minute to settle and can leave up to four new entries, the last of which is the outcome. Do not assume the count grew by exactly one. A webhook is not retried internally: it leaves one entry per resend.
Nothing in the message says whether a queued send has finished, so a read that shows no new entry is
not proof that it has — the next internal attempt may still be ten seconds away. What bounds the
wait is the schedule above: about half a minute after the 202 the attempts have run out, and
whatever stands in deliveries then is the result.
Which method a resend goes through
Section titled “Which method a resend goes through”There is no method ID on a delivery. Angelcam finds the method by the channel and the identifying fields that channel recorded: the address for e-mail, the phone number for SMS, the host name for a webhook, the device for push, the trigger identity for IFTTT, the country and object ID together for Jablotron. The match is therefore only as precise as those fields are, which has two consequences worth planning for.
A webhook is matched by host name alone, not by the full URL. If a space has two webhook methods
on the same host — say https://hooks.example.com/a and https://hooks.example.com/b — both match
the same entry, and the resend goes to whichever Angelcam finds first, which may not be the one that
failed. Give webhooks that must be told apart distinct hosts.
A target of null does not block a resend. target is a label for display, not the key, so a
Jablotron method set up without an object ID shows null there and its failures can still be sent
again.
Before resending
Section titled “Before resending”A resend repeats one attempt; it does not fix what broke it. Read the error first:
response_status_codeof500or a connection error on anhttpdelivery — your endpoint was down. Resend once it is back.- A
4xxfrom your own endpoint — it refused the request. A resend will be refused the same way; look at the payload and the signature first. - An SMTP
550or a bounce onemail— the address is wrong or the mailbox is gone. Fix the address on the notification method; because the target then no longer matches, the old entry answers409and only the next message goes to the new address. - A failed
push_notification— the device token is often simply stale. The app registers a new one on its next start. - Nothing in
deliveriesat all — nothing was sent, so there is nothing to resend. Check the rules.
To watch for this without polling, give a webhook its own notification rule: it tells you about each event as it happens, and the delivery log stays the place where you check, afterwards, whether the other channels got through.