Rocket.Chat incoming and outgoing webhooks for alerts and automation

How to connect monitoring alerts, CI/CD and internal tools to Rocket.Chat with incoming webhooks, and send room events to other systems with outgoing webhooks, scoped to infrastructure you control.

On this page

Rocket.Chat webhooks for alerts and automation: what the integration does

Many teams run alerts in one tool, pipeline results in another and tickets in a third, so the information that needs a response never lands where people are talking. Rocket.Chat can carry those events into rooms and send room activity back out to other systems, and the two supported methods are incoming integrations and outgoing integrations. An incoming integration gives a source system a unique URL that accepts HTTP POST requests and turns each request into a message in a chosen room. An outgoing integration does the reverse: it watches for events such as Message Sent, File Uploaded, Room Created or User Joined Room, then calls an external URL you define with the event data.

The controls around those two methods decide whether the setup is safe to run. Incoming integrations can use scripts, which run in an isolated VM and must define a global Script class, so the script shapes the payload before it reaches the room. Each incoming integration also has a Post as user account, and that account must exist, must belong to the destination channel and must hold the Impersonate Other Users permission. The unique URL and its token act as the credential, so anyone who holds that URL can post into the room, which makes URL storage and rotation part of the design rather than an afterthought.

This page covers how to set up both integration types for monitoring alerts, CI/CD notifications and internal tools, how to write and test scripts, how to manage tokens and the Post as user account, and how to handle failed deliveries and retries from outgoing integrations. It also flags the points to confirm against your Rocket.Chat version and plan, since integration behavior and permissions can change between releases. The official Rocket.Chat integrations documentation is the reference to check each setting against before you build.

What you need before building Rocket.Chat webhooks

Webhook work depends on a few decisions made before any script is written: the release line you run, the plan that covers your features, and the accounts and network paths that carry each event. Confirm these first, because they decide which integration types and permissions are available to you.

Rocket.Chat version and release line

Confirm which release line your workspace runs before building anything. Rocket.Chat 8.9.0 was published on October 5, 2026, and patch releases for older supported lines followed on October 16, 2026. Standard releases are supported for 6 months and LTS releases for 12 months. After end of life, cloud-backed services such as the push notification gateway and Marketplace stop working, so check the release line against the version durability docs before you commit to a design.

Version durability docs

Plan that covers your integration needs

Check that your plan covers the features you intend to use. Core incoming and outgoing webhooks are part of the product, but LDAP and SAML group mapping, audit trails and high availability sit on paid plans. Ask your Rocket.Chat contact or review the plan comparison to confirm which tier covers the workflows you plan. Air-gapped deployments require a paid plan and are not available on the free Starter plan.

Plan comparison

Workspace administrator account

Creating integrations requires an administrator account with permission to manage integrations and users. Use a named administrator rather than a shared login so that changes to scripts, tokens and destination rooms are traceable. Confirm who can edit integration scripts, because a script runs in an isolated VM and can change the message payload before it is posted or sent onward.

Dedicated bot user for Post as user

An incoming integration can post as a specific user, and that user must exist, belong to the destination channel and hold the Impersonate Other Users permission. Create a dedicated bot or service account for each integration domain, such as monitoring or CI/CD, instead of reusing a person's account. Keep its password and sessions under your identity controls so that a leaked token cannot be traced back to a human.

Network path from source systems

Map every system that sends events, such as monitoring servers, CI runners and internal tools, to the Rocket.Chat endpoint. Incoming integrations accept HTTP POST requests at a unique URL, so the source must reach that URL over TLS through your firewall and any proxy or load balancer. Check egress rules and certificate trust on each sender, and record which network zone each source sits in.

Public URL for outgoing targets

Outgoing integrations call external URLs on events such as Message Sent, File Uploaded and User Joined Room, so every receiver must be reachable from the Rocket.Chat server. Confirm the receiver's hostname, certificate and allowed inbound addresses, and decide whether it sits on a public endpoint or inside your private network. Rocket.Chat deployments behind a proxy need the outbound path tested before any production trigger is enabled.

How to configure an incoming webhook step by step

This sequence takes a team from an empty Rocket.Chat workspace to a working incoming webhook that posts alerts into a chosen room, plus an outgoing integration that sends room events to an external system. Each step ends with a check you can repeat before the integration goes near production traffic.

  1. Confirm the workspace and admin access

    An administrator with permission to manage integrations opens the Administration area and confirms the workspace runs a version your team supports, since integrations depend on the server being maintained. Confirm the workspace is reachable at the public address the sending systems will use, and that the sending system can reach it over HTTPS. You know this step is done when you can open the Integrations page under Administration without an access error.

  2. Create the destination channel and service account

    Create a dedicated room for the alert or automation stream, such as an alerts room for monitoring, and create a separate bot-style user that will appear as the author of posted messages. Add that user to the destination room, because the integration's Post as user must be a member of the channel it posts into. You know this step is done when the account appears in the room's member list and the room has the intended visibility.

  3. Grant the Impersonate Other Users permission

    In the permissions settings, an administrator grants the Impersonate Other Users permission to the role that the integration's Post as user belongs to, and keeps it limited to roles that need it. Without this permission the integration cannot post under the chosen identity. You know this step is done when the permission is listed against that role and a test message from the integration later shows the expected author name.

  4. Create the incoming integration and write its script

    In Administration, create a new incoming integration, select the destination channel and the Post as user account, and enable the script option if you need to shape the payload. Write the script in the integration editor, which runs in an isolated VM, and make sure it defines a global Script class with the method the integration expects to call. Keep the script small and validate input from the sending tool before building messages from it. You know this step is done when the editor saves without errors and the integration is enabled.

  5. Store the generated URL in a secrets store

    After saving, Rocket.Chat shows the unique URL for the integration. Treat this URL as a credential, because anyone who holds it can post into the room under the configured identity. Copy it into your secrets manager or the sending system's encrypted configuration, restrict who can read it, and do not paste it into tickets, chat or source control. You know this step is done when the sending system references the secret by name and the URL no longer appears in plain text in shared locations.

  6. Close the incoming step with a test POST

    From a host that will send real alerts, send a test HTTP POST to the stored URL with a small sample payload, using the same content type and fields your monitoring or CI tool produces. Confirm the message appears in the destination room with the expected author and formatting. If it fails, check the response body, the integration's logs and the Post as user membership before changing the script. You know this step is done when the test message appears in the room and a repeated POST produces a second message, confirming the path works end to end.

  7. Configure the outgoing integration

    Create an outgoing integration, select the room or rooms it watches, and choose the trigger events it should react to, such as Message Sent, File Uploaded, Room Created, User Joined Room or other events listed in the integration options. Enter the target URL of the receiving system, which must be reachable from the Rocket.Chat server and should use HTTPS. Add a token or shared secret that the receiver can verify, and set the content format the receiver expects. You know this step is done when the integration is saved with the chosen triggers and the receiving endpoint is listed as the target.

  8. Verify delivery and retry handling on the receiver

    Rocket.Chat sends each event as an HTTP request, so the receiving system must return a success status quickly and handle duplicate or late deliveries itself. Build the receiver to validate the token, store the event ID, and process each event idempotently, then post a message in a test room to trigger the flow. Check the receiver's logs and confirm each expected event arrives exactly once in your own record. You know this step is done when a deliberate test event produces one recorded entry on the receiving side and the failed-request path is tested by stopping the receiver briefly. Confirm the exact retry behavior in the Rocket.Chat integrations documentation and your server version before relying on it.

How alerts and events flow through Rocket.Chat webhooks

The flow starts with a monitoring tool, CI/CD job or internal service sending an HTTP POST to a unique incoming integration URL. That URL is the secret that identifies the integration, so it belongs in your secrets store, not in the sender's code. The integration script runs in its isolated VM and must define a global Script class, then posts the message into the destination room as the configured Post as user. In the other direction, an outgoing integration calls an external receiver when a selected room event such as Message Sent fires. Check where the trust boundary sits, which token each hop uses, and who holds the Impersonate Other Users permission.

Alert and event paths through the incoming and outgoing webhook integrations, with the trust boundary and secrets store.

Choosing between incoming, outgoing and script-driven patterns

Monitoring tools send alerts when a condition fires, so the data flows from an external system into a room. An incoming webhook is the fitting method here: the monitoring tool sends an HTTP POST to a unique URL that Rocket.Chat generates, and Rocket.Chat posts the message into the chosen room. The integration script is where the payload gets shaped. It should read the alert fields, map severity to a readable message, and return the text and room target in the format Rocket.Chat expects, with the script running inside the isolated VM and defining the global Script class.

  • Use the incoming type: alerts originate outside Rocket.Chat and need no reply path, so outgoing events add nothing.
  • Shape the payload in the script: convert raw alert JSON into one short line with the host, check name and state, and drop fields that do not help responders.
  • Pick the room deliberately: route critical and warning alerts to separate rooms so noisy checks do not bury urgent ones.
  • Set Post as user only when identity matters: a dedicated bot user helps responders see which system spoke, and it must belong to the destination room and hold Impersonate Other Users.
  • Keep the endpoint private: the URL is effectively a credential, so store it in the monitoring tool's secret store, not in shared runbooks.

Before go-live, confirm the alert tool can reach the Rocket.Chat address on your network and that a test alert lands in the intended room.

How alert fields and user identities map into rooms

This table compares the source alert fields, the Rocket.Chat message attributes they should land in, and the identity and room settings that control who posts and where. Read it as a checklist: each row names a mapping decision and what the receiver needs to correlate events later. The main takeaway is that the Post as user account must be a real user with Impersonate Other Users, already a member of the destination channel, or incoming posts will fail.

Mapping itemWhat to map or setWhy it matters
SeverityMap to a text label or color in the message attachment, using a fixed set of values from the source toolLets rooms filter or route critical alerts consistently across monitoring systems
Service and hostPlace as attachment fields or a stable prefix in the message textGives responders the component name without parsing free text
Link to sourceInclude the alert or pipeline URL as an attachment title linkConnects the room message to the monitoring or CI/CD system of record
Post as userSet the incoming integration's alias user, which must exist, belong to the destination channel and hold Impersonate Other UsersWithout these three conditions, the integration cannot post under that identity
Destination channelSet the channel on the incoming integration and confirm the Post as user account is a member of itA mismatch between the channel and the posting user is a common cause of silent failures
Outgoing event typeChoose from Message Sent, File Uploaded, Room Archived, Room Created, User Joined Room, User Left Room or User CreatedDetermines which room activity reaches the receiver and which fields it can expect
Correlation fields for the receiverPass the room identifier, message identifier, timestamp and user identifier from the event payloadLets the receiver deduplicate, thread or link events back to the original alert
Identity reviewConfirm with your team which service accounts may post and whether their names reveal the source systemKeeps audit trails clear about which automation produced each message

Securing tokens, scripts and Post as user access

Incoming and outgoing webhooks give a single URL, script or service account the ability to write into rooms or read room events. The cards below cover the credentials, accounts, permissions and receiver checks that decide how far a leaked or misused integration can reach.

Treat integration URLs as credentials

An incoming webhook URL carries the token that lets anyone post messages into the chosen room, so it is a secret, not a configuration value. Store it in your secrets manager, inject it into CI/CD and monitoring tools at runtime, and keep it out of repositories, chat history and ticket comments. Record which system owns each URL so you can rotate it without guessing where it is used. Check that anyone who could view the integration settings in Rocket.Chat also has a legitimate need to see the token.

Rocket.Chat integrations docs

Scope the Post as user account

When an incoming integration posts as a dedicated user, that user must belong to the destination channel. Create a bot account per integration or per team, add it only to the rooms it needs, and avoid reusing a personal or administrator account. Confirm that the account's own permissions are limited, because messages will appear under its name and any extra rights it holds become reachable from the integration.

Review Impersonate Other Users

The Impersonate Other Users permission is what lets an integration post under a name other than the integration owner. Review which roles hold it, and remove it from roles that do not need it. Grant it only to integrations that must show a specific sender, and document the reason in the integration's description. Review this permission whenever you add a new integration, because a single misconfigured post can make an automated alert look like a message from a named employee.

Audit script changes

Integration scripts run in an isolated VM and must define a global Script class, which makes them code that deserves review. Keep scripts in version control, require a second person to approve changes, and compare the deployed script with the reviewed copy on a schedule. Limit who can edit integrations to a small administrator group, and check your Rocket.Chat audit trail for edits to integration settings. Confirm what your paid plan's audit capabilities cover before relying on them for evidence.

Restrict outgoing targets to approved hosts

Outgoing integrations call external URLs whenever events such as Message Sent, File Uploaded or User Joined Room fire. Each target is a path for room content to leave your environment, so maintain an approved list of receiving hosts and block everything else at the network egress layer as well as in the integration settings. Prefer HTTPS endpoints you operate, and review any target that is a third-party SaaS endpoint for what message content it receives.

Protect receivers from replayed payloads

A webhook receiver cannot assume that every request comes from Rocket.Chat or that each request arrives once. Validate the source where your receiving system supports it, reject payloads that do not match the expected schema, and deduplicate events using identifiers in the payload so a retry does not trigger a second deployment or page. Log rejected requests, and test how your receiver handles malformed or oversized content, since room text and file names come from users.

Why Rocket.Chat webhook messages fail to appear

This table lists the failures that most often stop webhook messages or outgoing events from working, with the cause and fix for each. Read it by matching the symptom you see to a row, then check the listed setting before changing anything else. Most failures trace back to identity, permission or script setup rather than to the webhook URL itself.

SymptomLikely causeFix
Incoming message is rejected or posted nowhereThe Post as user account is missing, or it is not a member of the destination channelConfirm the user exists, then add it to the target room. The integration posts only where its user can post.
Message fails when Post as user is set to another accountThe Impersonate Other Users permission is not granted to the role that runs the integrationGrant Impersonate Other Users to the integration owner's role, then resend a test POST and confirm the displayed author.
Script runs with no output or errors on every callThe script does not define the global Script class that Rocket.Chat expectsDefine the global Script class with the required methods in the integration script. Scripts run in an isolated VM, so do not rely on server-side modules.
Outgoing event never reaches the target systemThe Rocket.Chat server cannot route to the target URL, DNS fails, or a firewall or proxy blocks the callTest the target from the Rocket.Chat server or container itself, not from your laptop. Check egress rules, DNS and proxy settings.
Duplicate messages or events appear after a timeoutThe receiving endpoint is slow or returns an error, so Rocket.Chat or your sender retries the same eventMake the receiver idempotent with a stored event identifier, return success quickly, and move slow work to a queue.
Events dropped during an outage of the receiverThe target was unavailable for the attempt window and no durable queue sits between the sources and Rocket.ChatAdd a durable queue or retry layer you control for critical alerts. Confirm how your Rocket.Chat version handles failed outgoing deliveries before relying on it.
Integrations work before an upgrade and fail after itThe new version changed integration behavior, or the running version is out of support, so related features stopCheck the release notes for the target version, retest every integration in a staging copy, and plan upgrades on supported lines.

Questions buyers ask about Rocket.Chat webhook work

Are incoming and outgoing webhooks available on the free Rocket.Chat plans?

Webhooks are a built-in integration feature, and the supplied plan facts do not list them as a paid-only capability, so confirm this against the current plan documentation before you commit. The free Starter plan covers up to 50 users and includes LDAP and Active Directory authentication, single sign-on, multi-factor authentication, end-to-end encryption, retention and read receipts. The free Community workspace allows up to 100 concurrent users with core messaging. Paid plans (Commercial, Government and Defense) are priced by quote, and they add capabilities such as SAML and LDAP user group mapping and tamper-evident audit trails. Ask Rocket.Chat directly which integration features apply to your plan and version, because plan tables change between releases.

What drives the cost of setting up Rocket.Chat webhooks?

The main cost driver is the number of sources and how much logic each one needs. A single monitoring alert that posts a fixed message is a small job, while a CI/CD pipeline that must route events to different rooms, format payloads, and handle failures is larger. Outgoing webhooks that feed other systems add receiver work on the far side, and each receiver needs its own endpoint, authentication and tests. Security review adds time when tokens, Post as user settings and external URLs must be approved. Ask any provider to price each source separately, to state which receiver changes are included, and to list what is one-time (build and testing) and what recurs (script maintenance, token rotation and upgrades).

Can our own engineers build Rocket.Chat webhooks without a partner?

Yes, a team with administrator access to Rocket.Chat and working knowledge of HTTP and JavaScript can build simple incoming webhooks in-house. Incoming integrations accept HTTP POST requests at a unique URL and post messages into rooms, so a single alert source is a reasonable first project. Outgoing integrations call external URLs on events such as Message Sent, Room Created or User Joined Room, and they need careful testing because a misconfigured trigger can flood a receiving system. Integration scripts run in an isolated VM and must define a global Script class, which is a skill your engineers must have. A partner adds value mainly when many sources, strict security review or a shared receiver must be designed together.

What skills and staff time does a webhook project need from our side?

Plan for at least one Rocket.Chat administrator, one engineer who owns each sending system (monitoring, CI/CD or internal tools), and a security reviewer for tokens and external URLs. The Rocket.Chat administrator must create the integration, select the destination channel and confirm the Post as user account. That account must exist, belong to the destination channel and hold the Impersonate Other Users permission, so someone with identity administration rights must be involved. Owners of sending systems must supply payload formats and the events they need. Your team should also decide who receives failure notices and who rotates tokens. Staff time is usually spread across discovery, build, testing and handover rather than concentrated in one week.

What makes a webhook project take longer than expected?

Timing usually slips for reasons outside the Rocket.Chat configuration itself. Common causes include unclear payload requirements from the sending system, receivers that do not yet exist, approval cycles for the security account that posts messages, and retries that were not designed until after go-live. Outgoing webhooks need the receiving endpoint to be reachable and to handle repeated calls, so test scheduling depends on that team. Upgrades can also add work, because Rocket.Chat supports standard releases for 6 months and LTS releases for 12 months, and an integration built on an outdated version must be retested after a move. Confirm your target version and the support window before you set dates.

What security review should webhook tokens and Post as user settings get?

Treat each incoming webhook URL as a credential, because anyone who holds it can post into the room it targets. Limit the Post as user account to the destination channel, since the account must hold the Impersonate Other Users permission and that permission is powerful. Review which external URLs outgoing webhooks call, what message content they send, and whether room events expose sensitive information such as user join or leave activity. Document where tokens are stored, how they are rotated and who can view integration settings. A security review also needs to confirm that scripts run only the logic you approved, since integration scripts execute in an isolated VM but still act with the permissions you grant.

How do we check and operate webhooks after go-live?

Verification should cover each source with a known test message, a failure case such as an unreachable receiver, and a check that messages appear in the intended room under the intended identity. Operationally, you need an owner for each integration, a log of changes to scripts and triggers, and a schedule for reviewing whether each webhook is still needed. Confirm with your provider how retries are handled, what happens when a receiver is down, and how duplicate events are prevented, since these behaviors depend on your scripts and receiver design. Ongoing support, upgrades and continuous testing can be contracted as a retainer, and the scope and fees should be written into the quote.

How DeployOpen scopes and supports Rocket.Chat webhook work

DeployOpen plans, builds, tests and documents Rocket.Chat incoming and outgoing webhooks inside your own infrastructure, so alert and automation traffic stays under your control. We agree the scope in writing before work starts and hand over runbooks your team can operate.

How we scope

  • Written scope lists each alert source, CI/CD job and internal tool that will post into Rocket.Chat, with the target rooms for each.
  • Scope records which outgoing events (such as Message Sent or Room Created) feed external systems and which endpoints receive them.
  • Scope names the Post as user accounts, their room membership and the Impersonate Other Users permission they need, confirmed with your administrators.

How we build

  • We build each incoming integration with its script, token handling and message format, reviewed against the room and user it posts to.
  • Outgoing integrations are configured with trigger words, target URLs and retry behavior, tested with sample events before any production traffic.
  • Scripts run in Rocket.Chat's isolated VM, so we check each script defines the required global Script class and handles failed calls safely.

How we hand over

  • You receive integration inventory, configuration records and a list of tokens and secrets with their owners and rotation steps.
  • Runbooks explain how to add a new alert source, test a webhook, read delivery failures and disable an integration during an incident.
  • Handover includes a verification record showing each integration tested against its agreed scope, with open items listed.

How we support

  • Engagements are fixed-scope, so changes to sources, rooms or event triggers are agreed in writing as a separate change.
  • Ongoing support, upgrades and continuous testing are available as a retainer, including checks after each Rocket.Chat upgrade.
  • Ask any provider to confirm how they test webhook endpoints, handle retries and keep Rocket.Chat versions within vendor support dates.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.