Overview
Subscribers can be managed through the API as well as through the Web interface and Slack. Use it to grant access from a script or an internal tool — onboarding a security reviewer onto every SEV0, for instance, without a human clicking through a dialog. Private incident access is additive: a user can see a private incident if their role grants private incident read access, or if they are on that incident’s subscriber list. See Private Incidents for how the two interact.Subscribers You Did Not Add
The subscriber list does not only contain people someone added deliberately. Rootly subscribes users automatically in several situations, and because subscription grants read access on a private incident, each of these is also an access grant. Automatically subscribed:- The incident’s creator.
- Anyone assigned an incident role.
- Users on a team attached to the incident.
- Owners of an attached service or functionality.
- Responders on an alert attached to the incident.
- Anyone who joins the incident’s Slack channel. Leaving the channel unsubscribes them again.
This is not only a declaration-time sweep. Attaching a team, service, or functionality to an incident later subscribes that group’s users then — so the list grows as the incident’s scope grows, which is usually what you want and occasionally is not.
remove_users_with_no_private_incident_access below to sweep anyone who should not be there.
Adding Subscribers
POST /v1/incidents/{id}/add_subscribers
array of user IDs
The users to add to the incident’s subscriber list.
boolean
default:"false"
When
true, users who lack role-based read permission for private incidents are removed from the subscriber list.Removing Subscribers
DELETE /v1/incidents/{id}/remove_subscribers
POST, removing is a DELETE that carries a body.
Removing a subscriber from a private incident revokes the access that subscription granted — not any access they hold through their role. If Slack permissions allow, they are also removed from the incident’s Slack channel — see Manage Access via Slack for the cases where Slack rejects the removal.
Paths, headers, and request shapes on this page are reproduced for convenience. The generated API Reference is the source of truth — if the two ever disagree, believe the reference.
Sweeping Unauthorized Subscribers
Both endpoints acceptremove_users_with_no_private_incident_access. Set to true, it strips every subscriber who does not independently hold role-based private incident read permission.