Building Zammad webhooks for external systems

A planning guide to sending Zammad ticket events to ERP, CRM and in-house services, covering payloads, signatures, authentication, delivery behavior, retries and logs.

On this page

Building Zammad webhooks for external systems: when your helpdesk must talk to other systems

A Zammad webhook sends a ticket event, such as a ticket being created or updated, from Zammad to an HTTP endpoint in another system, so an ERP, CRM or in-house service can act on that event without an agent copying data by hand. It is the right tool when the receiving system needs to know about a support event in close to real time and can accept an HTTP request, for example to open a billing case when a refund is requested, update a customer account when a ticket escalates, or record a service incident against an asset. If the other system only needs to be read on a schedule, or needs to change Zammad data in bulk, a different approach is usually a better fit, and the scheduler and API pages in the automation group cover those cases.

This page walks through the decisions behind that integration: deciding which events should leave Zammad and what the payload must contain, choosing bearer or basic authentication and HMAC signatures, deciding whether SSL verification can be relaxed for an internal endpoint (it should not be relaxed without a documented reason), and planning for delivery order, delays and retries. It also covers where to look when a payload does not arrive, including the logs Zammad keeps for outgoing calls. Your receiving system's own endpoint design, its idempotency handling and its queueing are outside this page, as are the trigger conditions that decide when an event fires. Those are covered in the trigger and routing pages of this group.

Before you start, confirm three things with your own team: which system owns each piece of ticket data, whether that system's API can accept a payload from Zammad without a gateway in between, and who in your organization is accountable for the receiving endpoint when it fails. Check the exact webhook options in the Zammad release you run, because the configuration screens and fields can differ between versions, and confirm them against the documentation for your installed release before writing any integration code. A short list of target events and their owners at this stage prevents most of the rework that appears later.

The building blocks of a Zammad webhook integration

A Zammad webhook integration has five parts that a team has to decide on before writing code. Two are configured inside Zammad, and three are built or run on the receiving side. Settling each one early keeps the sending and receiving teams from discovering mismatched assumptions during testing.

The webhook endpoint

The endpoint is the URL on the ERP, CRM or in-house service that Zammad calls. Confirm that the receiving service is reachable from the Zammad application server over the network path you intend to use, and that it accepts the HTTP method and content type Zammad sends. Decide whether the endpoint lives on the public internet, behind a VPN or inside a private segment, since that choice affects firewall rules, DNS and certificate management. The endpoint is configured in Zammad, but the service behind it is built by your team.

The triggering event

A webhook fires when a Zammad trigger matches a ticket change, such as a ticket being created, updated or escalated. Each trigger is configured in Zammad, so the conditions decide which events reach the external system at all. Narrow conditions reduce noise and API load on the receiver, while broad conditions can send internal-only changes to systems that should not see them. Document which events matter to each downstream system before you configure anything.

The payload

The payload is the body Zammad sends, and it defines the contract between the two systems. Zammad can send its default ticket representation or a custom payload built from ticket attributes, so the receiving team needs to list every field it reads and check that each one is included. Ticket content may contain customer personal data, so decide which fields leave Zammad at all and whether the receiver should store them. Changing the payload later breaks consumers, so version it from the start.

The authentication method

Zammad can sign outgoing requests with an HMAC signature or send a bearer or basic authentication credential, depending on what the receiver supports. The receiver must verify the chosen method on every request and reject calls that fail verification. Store the shared secret or token in a secrets manager on both sides, plan a rotation process, and confirm which field or header carries the signature so the receiving code checks the same bytes Zammad signed. Authentication is set in Zammad, and verification is written on the receiving side.

The receiving service

The receiving service accepts the request, verifies it, stores or queues it, and returns a success status that tells Zammad the delivery worked. Its response time, idempotency handling and failure behavior decide whether Zammad's retries cause duplicate records in the ERP or CRM. Design the receiver to accept a repeated delivery of the same event without creating a second record, and log each received event with enough detail to match it back to a ticket. This component is entirely built and operated by your team or partner.

How a ticket event travels from Zammad to an external system

A ticket change in Zammad fires a webhook trigger, and the webhook sends a signed or authenticated payload across the trust boundary to the receiving service. The receiving system checks the signature or credentials, then returns a response. Zammad retries failed deliveries a fixed number of times and records each attempt in its logs. Check the signature handling, the response codes your service returns, and the delivery log first when troubleshooting.

Ticket event flow from Zammad to a receiving system, with the trust boundary between the two networks.

Which webhook configuration fits which integration

This table compares the main Zammad webhook settings against the integrations they usually suit, with the trade-off each one brings. Read each row as a question: what kind of receiver are you calling, and what does that receiver need to trust and handle. The main takeaway is that authentication and SSL verification should follow the network boundary the request crosses, not the convenience of the setup.

Configuration optionWhen it fitsTrade-off
Default payloadReceiver is an in-house service that can parse Zammad's standard ticket data and you want the fastest setupLess control over field names and structure, so any change on the receiver side needs more testing
Custom payloadERP or CRM expects a fixed schema, such as specific field names, nested objects or only selected ticket attributesPayload template must be maintained whenever the receiver changes, and mistakes show up only in delivery logs
HMAC signatureReceiver can compute a keyed hash of the body and verify it, and you need proof the payload came from your Zammad and was not alteredShared secret must be stored and rotated on both sides, and the receiver must hash the exact raw body
Bearer or basic authenticationReceiver is a SaaS or API that issues tokens or credentials and expects them in the request headerCredential sits in Zammad configuration, so access to admin settings must be tightly limited and rotated
SSL verification onReceiver has a certificate from a trusted or internal certificate authority that Zammad can validate, including most ERP and CRM endpointsCertificate renewal or a changed internal CA can stop deliveries until the trust chain is fixed
SSL verification offOnly for a short test against a receiver with a self-signed certificate on a network you fully controlTraffic can be intercepted or spoofed, so this should not carry business or personal data across any boundary
Internal service on a private networkService sits inside the same network zone as Zammad, with no traffic leaving the boundarySimpler auth may be acceptable, but an HMAC check still protects against other hosts that can reach the service
ERP or CRM across a boundaryReceiver sits in another zone, partner network or cloud account, so the request crosses a firewall or proxyNeeds verified TLS, signed payloads, egress rules and an agreed retry and failure procedure with the receiving team
Synchronous deliveryReceiver must confirm an action before the agent continues, and a short wait is acceptableA slow or unavailable receiver can delay ticket actions, so keep receivers responsive and confirm the timeout behavior in your version
Delayed deliveryNotifications or syncs can arrive later, and you want ticket work to continue without waiting on the receiverEvents can arrive out of order, so the receiver should handle duplicates and use ticket IDs and timestamps to sequence updates

Choosing payloads and authentication by receiving system

ERP systems usually need a small set of stable, structured facts: a ticket reference, the customer or account number held in the ERP, the service or product involved, and status changes that affect billing, contracts or stock. They rarely need free-text ticket bodies or attachments. Verification usually sits in middleware or an API gateway in front of the ERP, because that layer can check a signature or token before the payload reaches business logic.

  • Account key only: send the ERP account number in a custom field instead of the full customer profile.
  • Billable status changes: send events such as a ticket closing with a billable category, not every article posted.
  • Omit message bodies and attachments: ticket text often contains personal data, so keep it in Zammad unless a documented finance process needs it.
  • Verify at the adapter: if the ERP cannot verify an HMAC signature itself, place a small adapter that holds the shared secret in front of it.
  • Idempotency fields: include the ticket number and event time so a retried delivery does not create duplicate postings.

Confirm with the ERP owner which fields feed invoices or inventory, and test the mapping with a non-production ERP tenant before go-live.

How to set up a Zammad webhook step by step

This sequence takes a Zammad ticket event from a clear business need to a verified, logged delivery to an external system. Each step closes with a check so the receiving team can confirm the integration works before it touches production data.

  1. Confirm the event and trigger scope

    Decide which ticket events the external system needs, such as ticket creation, state changes or article additions, and which groups, customers or ticket attributes should qualify. Write this down with the owner of the receiving system, because every extra event adds traffic and every broad condition sends data that may not be needed. The step is done when the owner signs off a short list of events and conditions and you can explain why each one is included.

  2. Define the payload and its fields

    Agree the exact JSON the receiver will parse, including field names, ticket identifiers, timestamps and any customer data. Limit the fields to what the receiver uses, and mark which ones are personal data so the privacy and retention owners can review them. Check the planned payload against a sample ticket in a test instance. The step is done when both teams hold the same written field list and a sample payload matches it.

  3. Configure authentication and SSL verification

    In Zammad, set up the webhook with the authentication method the receiver supports, such as a bearer token, basic authentication or an HMAC signature over the body, and keep SSL certificate verification enabled for any HTTPS endpoint. Store the secret in the receiver's secret store and confirm which Zammad administrators can read or change it. The step is done when the configuration saves and a reviewer confirms the secret is not visible to general agents.

  4. Build signature verification on the receiver

    On the receiving service, recompute the HMAC signature from the raw request body using the shared secret and compare it with the signature header in constant time. Reject requests that fail the check and log the rejection without writing the secret or full payload to logs. Confirm the exact header name, algorithm and encoding against your Zammad version's webhook documentation before coding. The step is done when unit tests pass for valid and invalid signatures.

  5. Test with a non-production endpoint

    Point the webhook at a non-production receiver, such as a request inspection service or a staging endpoint you control, and create a test ticket that matches the trigger scope. Then update its state and add an article to confirm each event fires once and carries the expected data. Use an illustrative test ticket with dummy customer data only. The step is done when each planned event produces one delivery with the agreed payload.

  6. Check the delivery log and the rejection path

    Open the webhook delivery log in Zammad and confirm that the test ticket produced an entry with the expected status. Then send a deliberately wrong signature or token to the receiver and confirm it returns a rejection and nothing is processed. Review how Zammad records failed deliveries and what retry behavior applies, and confirm those details in the current documentation for your version. The step is done when a successful delivery and a rejected request both appear as expected and the team knows where to look when a delivery fails.

  7. Switch to production with a monitored rollout

    Point the webhook at the production endpoint only after the earlier checks pass, and agree who receives alerts when deliveries fail or signatures are rejected. Watch the first real events in both the Zammad log and the receiver's log, and confirm no personal data appears where it should not. Record the final configuration, secret owner and rollback steps in your runbook. The step is done when production deliveries match the test results and the owners have accepted the runbook.

How delivery order, delays and the four retries affect your data

Your receiver has to assume that webhook events can arrive late, arrive out of order and arrive more than once. A ticket can be updated twice in quick succession, and the second update can reach your ERP or CRM before the first. Zammad retries a failed delivery four times, so a receiver that is briefly down or slow can also see the same event again after it has already processed it. Design for this from the start: every event must be safe to apply twice and must not be trusted to arrive in sequence. Confirm the exact retry timing and any ordering guarantees in the current Zammad documentation before you build around them, because they are not guaranteed by the pattern alone and may change between releases.

Idempotency is the main control. Store the identifier of each processed event, or a combination of ticket ID and an update marker such as the ticket's updated_at value, and skip anything you have already applied. Compare the incoming ticket state with your stored state before writing, and ignore a payload whose timestamp is older than the record you hold. For ERP or accounting targets, make sure a repeated create call cannot produce a second invoice, order or customer record, and use an upsert keyed on the Zammad ticket number where the target system supports it. Write the receiver's handling of duplicates into your test plan as explicit cases, not as an afterthought.

Plan a reconciliation job for the gaps that idempotency cannot close. If a receiver is offline longer than the retries cover, events are lost from its point of view, so schedule a periodic comparison between Zammad (through its API) and the target system, and define who resolves mismatches. Record the time of the last successful reconciliation and alert when it falls behind. Ask your delivery partner or internal team to document which events are authoritative in Zammad and which are copies, so that a conflict has a clear owner. An illustrative example: if a ticket is closed in Zammad while your CRM is down for an hour, the reconciliation run should correct the CRM record rather than leave it open.

Securing webhook traffic to ERP, CRM and internal services

A Zammad webhook sends ticket data out of the helpdesk and into systems that hold their own sensitive records. The controls below cover the shared secret, signature checks, data minimization, transport security, network reach and credential rotation, and each one should be confirmed in your own environment before the webhook goes live.

Protect the shared secret

The shared secret used to sign payloads is the single value that proves a request came from your Zammad instance. Store it in your secrets manager or a restricted file readable only by the Zammad service account, not in a trigger description, a shared spreadsheet or a ticket. Confirm which roles in Zammad can view or edit the webhook configuration, because anyone who can read it can forge valid requests to the receiving system. Check that the secret never appears in exported configuration or support bundles.

Verify HMAC signatures in constant time

The receiving service should recompute the HMAC over the exact raw request body and compare it with the signature header. Use a constant-time comparison function so response timing does not reveal how many leading characters matched. Reject the request before any parsing or database write when the signature fails. Test this with a deliberately altered payload to confirm the endpoint refuses it.

Send only the fields the receiver needs

A ticket payload can carry customer names, email addresses, phone numbers and free-text message bodies. Build the custom payload so it includes only the identifiers and attributes the ERP or CRM needs to act, such as a ticket number, state and customer account reference. Ask the receiving team which fields they will store and for how long, and remove anything that is only convenient for debugging. Record that decision as part of the data processing documentation for the integration.

Enforce TLS and certificate verification

Point the webhook only at HTTPS endpoints and keep SSL verification enabled so Zammad checks the receiver's certificate chain and hostname. Disabling verification to get a test endpoint working is a common cause of production exposure, so use a private certificate authority trusted by the Zammad host when the receiver is internal. Confirm the certificate renewal date is monitored, because an expired certificate will stop deliveries as well.

Restrict the receiver by network path

Allow inbound connections to the receiving service only from the Zammad application servers, using firewall rules, security groups or a reverse proxy allowlist. Keep the endpoint off public DNS if it is only meant for internal systems. Check that the Zammad hosts can reach the receiver through the intended route and nowhere else. A network restriction supplements the signature check; it does not replace it, because traffic from inside the network can still be forged.

Rotate credentials on a schedule

Plan rotation for the shared secret and for any bearer token or basic authentication password used by the webhook. Set up the new credential on the receiver first, accept both old and new values during a short overlap if your receiver supports it, then update the Zammad configuration and revoke the old value. Record who owns each credential and when it was last changed, and confirm that a rotation test is part of the change process.

Using delivery logs to troubleshoot failed webhook calls

Start with the question the logs can answer: was the request sent at all? Before you touch the receiver, confirm in Zammad's webhook delivery records that an attempt exists for the ticket event you expected, with the matching object and trigger. If there is no attempt, the problem is upstream of the receiver, usually a trigger whose conditions did not match, a webhook that is inactive, or an event that fired on a different object than you assumed. Only when an attempt is recorded does it make sense to examine the response. Where the logs live, what they are called and how entries are formatted differ between package, Docker Compose and Kubernetes installs, so confirm the log location and format in your installed version before writing any parsing or alerting rules around them.

Once an attempt is recorded, read the HTTP status code and response body the receiver returned. A 4xx response usually means the receiver rejected the request: an authentication header that does not match, a signature check that failed, or a path that does not exist. A 5xx response or a timeout points to the receiver itself or to the network path to it. Compare the request body Zammad sent with the schema your receiver expects, paying attention to field names, nesting, data types and any custom payload template you built. Failures in SSL verification and authentication often show up as connection errors rather than HTTP responses, so check for certificate chain or hostname errors when no status code is recorded at all, and verify that the bearer token or basic credentials match the receiver's configuration exactly.

Set up a repeatable diagnosis routine instead of debugging live production events. Create a dedicated test ticket in a non-production group, trigger the webhook with a known change, and record the logged request and response. Then replay the same event against a staging receiver that logs every incoming header and body, so you can compare what arrived with what you expected. Change one variable at a time, such as the signature secret, the payload template or the certificate bundle, and re-run the test ticket after each change. Keep a short record of each test, its outcome and the fix, so the same failure is not rediagnosed later. Ask your integration owner and your Zammad administrator to agree on who can read delivery logs, because those entries can contain ticket data.

Questions teams ask before building Zammad webhooks

Can our team build a Zammad webhook integration without a partner?

In many cases, yes. An engineering team that already builds and runs internal web services can usually build one, because a Zammad trigger calls an external endpoint and the receiving side is ordinary HTTP code. The work has three parts: deciding which ticket events matter, shaping the payload the receiver expects, and making the receiver safe to call. The difficult parts are rarely the request itself. They tend to be verifying signatures correctly, handling duplicate or late deliveries, and reading logs when a delivery fails outside business hours. Teams without an owner for each receiving system, or without anyone who has run Zammad in production, usually find those parts slow. A partner is one option, and a support subscription is another if you want vendor responses during the build. Confirm the webhook options in your Zammad version before you design around them.

What drives the effort of a Zammad webhook integration?

Effort follows the number of receiving systems, the event types you send and the contract each receiver expects. The main drivers are:

  • Number of targets: an ERP, a CRM and an in-house service each have their own authentication, data model and error behavior.
  • Payload mapping: ticket fields, customer and organization data, article content and custom attributes all need a defined shape.
  • Authentication: bearer tokens, basic authentication and signed requests each need configuration on both sides.
  • Delivery expectations: whether a receiver must respond quickly, and whether it can safely process a repeated event, changes the design.
  • Data sensitivity: deciding which fields may leave Zammad, and how tickets containing personal data are handled, often takes more time than the configuration itself.
What do we need to provide for the build?

Most of the input comes from your side, so confirm these before work starts. You need an API owner for each receiving system who can confirm the endpoint, authentication method, payload schema, rate limits and change process. You need a receiver developer who can change or review the receiving code. You also need a non-production Zammad instance and a non-production receiver to test against, plus test agent and customer accounts. Logging access on both the Zammad and receiver sides matters, because troubleshooting depends on it. Finally, you need a decision maker who signs off which events trigger calls and which fields are included. Missing any of these usually shows up as waiting time during the build.

How long does it take to scope a Zammad webhook project?

No fixed duration applies, because scoping depends on the receivers, the events and how well their contracts are documented. A project with one receiver and a published API schema can be scoped much faster than one where several receivers have undocumented payloads or shared credentials. Scoping normally covers the event list, the payload for each receiver, the authentication and certificate approach, test environments, failure handling and the operating model after go-live. Ask for a written scope that lists deliverables and a timeline before any build starts. DeployOpen agrees scope, deliverables and timelines in writing before most engagements begin, so the quote follows from that written scope.

What recurring work follows a Zammad webhook integration after go-live?

Webhooks need ongoing attention because both ends of the connection keep changing. Recurring work includes watching delivery failures and reviewing logs, updating payload mappings when a receiver changes its schema, rotating credentials and signing secrets on a schedule, and reviewing triggers and integration settings after each Zammad upgrade. Each upgrade also calls for a retest of the integration against the receivers. Some teams handle this internally with a named owner and a runbook. Others use a retainer for ongoing support, upgrades and continuous testing. Decide the owner for each receiver before go-live, because unowned integrations tend to fail silently.

Does a Zammad support subscription cover webhook build questions?

A Zammad support subscription supports the self-hosted product, and it is an optional path rather than a requirement. Self-hosted Zammad has no license fee. Zammad's pricing page lists the self-hosted support subscriptions as Business at 2,999 EUR per year with a 6-hour response time, Enterprise at 5,999 EUR per year with a 4-hour response time, and Corporation at 9,999 EUR per year with a 2-hour response time. Before you buy, confirm in writing whether support covers questions about custom webhook payloads and your own receiving services, and whether it covers the build work itself. Your receiving systems and their code stay with your own team or your implementation partner.

What usually breaks in production Zammad webhook deliveries?

Most production failures come from a short list of causes. The receiver returns an error or responds too slowly, so Zammad records a failed delivery. Certificate verification fails when the receiver uses an internal certificate authority that Zammad does not trust. Credentials are rotated on one side but not the other. A schema change on the receiver breaks the payload mapping without any warning. The receiver processes the same event twice because it was not designed to handle repeats. Start troubleshooting with the logs on both ends, compare the request that was sent with the request the receiver expected, and check the time of the first failure against any recent change on either side.

Should Zammad webhooks use signatures and SSL verification in production?

Yes, for production, signed requests and certificate verification should stay on. An HMAC signature lets the receiver confirm that a request came from Zammad and that the body was not altered in transit. The receiver should verify that signature on every request before it does any work. SSL verification confirms that Zammad is talking to the endpoint it expects. Disabling verification may be tempting during testing because of a self-signed or internal certificate, but that setting should not move into production unchanged. Fix the certificate chain instead. Confirm the exact configuration options and how the signing secret is stored in your Zammad version, and record who owns the secret and how it is rotated.

Who owns what when Zammad sends data to another system

The Zammad administrator owns the webhook configuration itself: the endpoint URL, the payload template, the authentication method and the trigger or event that starts each delivery. That person should also own the decision about which ticket fields leave Zammad, because a custom payload is the point where customer names, contact details and free-text notes are copied into another system. The owner of the receiving system, typically the ERP, CRM or in-house service team, owns the endpoint, the validation of incoming requests, the HMAC signature check and any bearer or basic credentials on their side. Agree in writing who issues each credential, how it is rotated and which environment (test or production) it belongs to before anything is connected.

Security reviewers should approve the data set before go-live, not after. Their review covers which fields are sent, whether the destination is allowed to receive them under your data handling rules, whether the endpoint uses SSL verification, and where delivery logs will be kept, since those logs can also contain ticket content. Secrets such as signing keys and passwords should be held in your approved secrets store and never pasted into a shared ticket or a wiki page. Confirm with your security team which person can read and change them, and who is notified when one is rotated.

When a delivery fails, someone must own the response, and the answer should be written down before the first incident. In most setups the Zammad administrator checks the delivery logs and the trigger or webhook settings, while the receiving system owner confirms whether the endpoint was up and whether it rejected the signature or credentials. The implementation partner, if one is engaged, typically helps design the logging, the troubleshooting runbook and the handover, and works from the written scope agreed for the engagement. Ask the partner to state which of these tasks are included in the scope and which are ongoing support, because that split determines who is paid to act when a retry is exhausted.

How DeployOpen scopes, builds and supports Zammad webhook integrations

DeployOpen plans, builds and documents Zammad webhook integrations inside the infrastructure you control, so the event flow to your ERP, CRM or in-house services can be reviewed before it goes live. Each engagement starts from a written scope that names the events, receiving systems, authentication and failure handling.

How we scope

  • Inventory the ticket events each receiving system needs, and which ones it must never see.
  • Record the authentication method, HMAC signing approach and SSL verification requirements for each receiving endpoint.
  • Agree in writing how retries, delivery order and log retention will be handled before any build starts.

How we build

  • Configure webhook objects and trigger conditions in a staging Zammad instance before touching production.
  • Build custom payloads and receiving code, then verify signatures and retry behavior with test deliveries.
  • Test failure paths, including unreachable endpoints and rejected signatures, and record the results.

How we hand over

  • Deliver documentation covering payload formats, signature checks, retry behavior and log locations.
  • Walk your engineers through the troubleshooting steps using the Zammad logs and the receiving system logs.
  • Provide a checklist for adding new events or receiving systems so changes follow the same review path.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retesting of webhook flows after Zammad upgrades or changes to the receiving systems can be included in scope.
  • Ask any provider to confirm response times and how upgrades are tested against your integrations.

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.