SuiteCRM entry points for webhooks and file streams

Teams that need SuiteCRM to accept webhooks or stream custom exports need an endpoint that is registered correctly, reachable through a clean URL, and locked down because it skips the normal login. This page covers the build sequence, the controls, and the failure points.

On this page

How SuiteCRM entry points for webhooks and file streams work

An external system needs to push events into SuiteCRM, or a finance, data or partner system needs to pull a file export out of it. In SuiteCRM 8, both jobs are handled by an entry point: a custom server-side endpoint, exposed under the /ep/ clean URL, that your team registers through the extension framework. The endpoint is code you own, so the routing is simple; what takes the most design time is deciding who is allowed to call it and how each request is verified.

The work follows two patterns. In an inbound webhook, an outside system sends a POST when something happens, such as a payment settling or a partner updating a case, and the entry point validates the sender, parses the payload and writes to SuiteCRM records. In an outbound file stream, a finance, data or partner system requests a file, such as a nightly CSV of accounts, and the entry point streams the content back. Each pattern has different failure modes: webhooks need idempotency and replay handling, while file streams need controls over what data leaves the system and how large responses are served.

Entry points can run without a SuiteCRM user session, so the endpoint itself is the security boundary. Plan shared-secret or signature checks, IP restrictions where the sender's network is known, least-privilege handling of the SuiteCRM objects the code touches, and logging of every call. Before design starts, confirm the registration method, the request handling and the session behavior for the exact SuiteCRM 8 version you run in the SuiteCRM 8 documentation and your own test environment, since the mechanics differ between releases and should not be assumed from older SuiteCRM 7 examples.

What you need in place before building an entry point

An entry point is a public-facing PHP endpoint on a server you already run, so the work starts with the platform, the test copy and the people who decide what may reach it. Each card below is a gate to clear before any code is written, and the release you run sets the exact checks.

Supported SuiteCRM 8 stack

Confirm the instance runs on a stack the compatibility matrix lists for your release: PHP 8.2, 8.3 or 8.4, Apache 2.4, and MariaDB or MySQL on Linux, Unix or macOS. The 8.10 line is the reference here, so if you run another minor, check that version's matrix. Also check the release notes for your exact version, because a bundled entry point behaves differently across releases.

Compatibility matrix

Staging instance that mirrors production

Build a staging copy with the same SuiteCRM version, PHP version, web server configuration and reverse proxy rules as production. Webhooks and file streams depend on headers, request size limits and TLS termination, and those differ easily between environments. Test every entry point on staging before any change reaches production.

Current backup of files and database

Take a fresh backup of both the application files and the database before adding the extension, and confirm you can restore it. Entry points live in the codebase, so a bad change can break the whole instance, not one feature. Record the backup time so incident responders know which data state they are returning to.

Named owner for senders and payloads

Assign an internal owner who approves which external systems may call the endpoint and what each payload must contain. This person signs off on the sender list, field names, data types and rejection rules. Without a named owner, the endpoint tends to accept whatever arrives, and nobody can say later who was meant to call it.

Reverse proxy and TLS in front

Decide how the endpoint is reached: which hostname, which reverse proxy or load balancer terminates TLS, and which paths are exposed. Confirm the proxy passes the request body and headers the handler needs, and that it blocks paths you do not intend to publish. Check certificate renewal before go-live, since a lapsed certificate silently breaks every sender.

Codebase access and a supported extension location

Confirm your team can deploy files into the custom area of the codebase and that deployments are recorded in version control. Extensions must sit in a location SuiteCRM supports, so that upgrades do not overwrite them. Check the developer documentation for your release before choosing the path, and keep core files untouched.

How a webhook and a file export travel through SuiteCRM

The diagram follows two paths that meet the same reverse proxy and application boundary. An inbound webhook leaves the sending system, passes the proxy's TLS termination and source filtering, reaches the /ep/ route, and is checked by its registered entry point before any record is written. An outbound export starts with a consuming system's file request, which the entry point authenticates before building the file from records the integration user may read. Check both boundaries: the proxy-to-application hop and the application-to-database hop.

Inbound webhooks and outbound file exports both pass the proxy and entry point before touching data.

How to build and register the entry point in order

This sequence takes an entry point from an agreed payload contract to a tested, proxy-exposed route that accepts only verified requests and returns output matching the source records. Each step closes with a check the team can run before moving on.

  1. Agree the payload contract and sender list

    Before any code is written, the integration owner and the security reviewer agree which systems may call the endpoint, what each payload contains, the expected content type, the maximum body size, and how retries and duplicate deliveries are handled. Record the sender list with the IP ranges or hostnames each sender uses and the secret or key each one holds. The step is done when both sides sign the contract and every sender has a named owner. Confirm with the sending system's documentation whether it can sign requests and which signature scheme it supports.

  2. Decide the endpoint path and method

    Choose one path and HTTP method per entry point, using a name that describes the business action, such as a webhook for a payment status change or an export for a case list. Keep reads (file streams) and writes (webhooks) on separate entry points so their permissions and logging can differ. Confirm with the team that owns the reverse proxy that the chosen path will be routable under the /ep/ clean URL. The check is a written endpoint record listing path, method, sender, and owner, reviewed by the security team.

  3. Create the extension and register it

    Create the entry point class and its registration file in the extension location SuiteCRM documents for custom code, so the code survives upgrades and stays out of core directories. Register it through the extension framework so the application loads it. The exact registration files and class structure must be confirmed for the SuiteCRM 8 release in use, against the official developer documentation for that version. The check is that the application lists or loads the new entry point after a cache rebuild on a staging instance, and that a request to its path reaches the handler, even if the handler only returns a placeholder.

  4. Implement signature or token verification first

    Add verification as the first thing the handler does, before any database read, record lookup, or business logic runs. For webhooks, compute an HMAC over the raw request body using the shared secret, compare it to the signature header with a constant-time comparison, and reject requests with a stale timestamp if the sender provides one. For file streams, require a token or session check that matches the intended reader. Store secrets outside the web root and load them from the server's secret store, not from source files. The check is that a request carrying a valid signature passes, and a request with a bad or missing signature is rejected with an error and no record is changed.

  5. Map and validate inputs

    After verification, parse the body against the agreed contract. Reject unknown content types, oversized bodies, missing required fields, and values outside allowed lists. Map validated fields to the SuiteCRM records or export columns you intend to touch, and never pass raw payload values into queries or file paths. Log the sender, event identifier, and outcome without writing secrets or full personal data into logs. The check is a set of test payloads covering valid, missing-field, wrong-type, and oversized cases, each returning the expected status code and leaving the data unchanged where it should.

  6. Write or stream the output

    For webhooks, write the mapped changes through the supported application layer so audit trails and workflows fire as they would for a user action, and return a short acknowledgement. For file streams, generate the export row by row or in chunks rather than loading the full dataset in memory, set the content type and filename headers explicitly, and apply the same access rules the reader would meet in the application. Test with a large staging dataset to confirm memory and timeout behavior on your server. The check is a staging export whose row count and sample values match the source records, and a webhook whose resulting record changes match the payload.

  7. Expose the route through the proxy with only the needed paths

    Configure the reverse proxy to forward only the entry point paths the contract lists, under the clean /ep/ URL, and deny all other paths under the entry point area. Limit the allowed HTTP methods per path and, where your network allows, restrict sources to the sender IP ranges. Confirm that the Authorization header and the signature headers reach the application, because proxies often strip them. The checks are that the /ep/ URL resolves for each allowed path, that an unlisted path returns a denial, and that a request from an unlisted source or with an unsupported method is refused before it reaches SuiteCRM.

  8. Retest and record before production

    Repeat the full test set on a staging instance that matches production configuration, including the proxy, then record the results with the contract version and the SuiteCRM release in use. Repeat the signature checks after any SuiteCRM minor upgrade, because extension behavior can change between releases and the upgrade notes must be read for each version. Store the rotation procedure for the shared secrets and confirm who can revoke a sender. The step is complete when the test record is signed off and the production rollout plan names a rollback path.

How webhook fields and export columns map to SuiteCRM records

This illustrative table shows how inbound webhook fields and outbound export columns could line up with SuiteCRM modules and fields, with the direction, validation rule and owner for each. Use it as a starting pattern, then derive the final map from your own data model and role restrictions.

FieldSuiteCRM module and fieldDirection and validationOwner
Inbound: case status change (illustrative external field ticket_status)Cases, statusInbound. Accept only values in the agreed status list; reject and log anything else.Service operations lead
Inbound: contact update (illustrative external field email_address)Contacts, primary email addressInbound. Match on the external contact ID first, then validate format; never create a duplicate contact silently.CRM administrator
Inbound: external event ID (illustrative event_id)Custom table or custom field recording processed event IDsStored for idempotency. Reject repeats with the same ID; keep the record for the agreed retention period.Integration engineer
Inbound: event timestamp (illustrative occurred_at with offset)Audit or custom field storing UTC valueConvert to UTC on receipt. Reject events without a time zone offset.Integration engineer
Outbound: opportunities by owner (illustrative export)Opportunities, amount, sales stage, assigned userOutbound. Export only rows the requesting user can see under role rules; confirm which amount fields are restricted by role.Sales operations lead
Outbound: support case list (illustrative export)Cases, case number, status, priority, assigned userOutbound. Exclude restricted case fields and internal notes unless the export identity is authorized to see them.Service operations lead
Restricted fields by role (to confirm)Fields marked restricted in your role and field permission setupNeither direction by default. Confirm each field's access for the integration user before mapping it.Security and CRM administrator

Controls for unauthenticated endpoints in SuiteCRM

An entry point that accepts requests without a SuiteCRM login is reachable by anyone who can send it a packet, so it needs its own controls at the proxy, the application and the data layer. The cards below cover request authentication, network limits, transport, write permissions, abuse limits, logging and file export scoping, which together decide whether an open endpoint stays a narrow integration point.

Signed webhooks with replay windows

Every webhook should carry an HMAC signature computed over the request body and a timestamp, using a shared secret that only the sending system and SuiteCRM hold. Reject requests whose timestamp falls outside a short window so a captured request cannot be resent later. Confirm with your sender how the signature header is built, and test a replayed request and a request with a tampered body before go-live. The custom entry point code is yours to write, so these checks are part of your build scope, not something SuiteCRM enforces for you.

Network restrictions at the proxy

Where the sending system publishes a fixed set of source addresses, restrict the entry point path at the reverse proxy or load balancer so other addresses receive a refusal before the request reaches PHP. Treat this as a second layer, since source addresses can be shared or spoofed in some paths and senders can change ranges. Ask the sender for its current address list, document who approves changes, and review the list whenever the integration changes.

TLS with client-owned certificates

Serve entry points only over TLS, and redirect or refuse plain HTTP for those paths. Your team owns certificate issuance, renewal, and the chain the sender trusts, so define who renews certificates and how expiry is monitored before the integration depends on it. Confirm with your sender whether it validates the certificate chain or pins a certificate, because a rotation can break an integration silently.

Least-privilege service accounts for writes

An entry point that creates or updates records should run as a dedicated SuiteCRM user with only the module and field permissions the integration needs. Do not reuse an administrator or a person's account, because a leaked secret would then carry that user's rights. Review the role assignment during build and again at each SuiteCRM release, since the security configuration for your release determines what the account can reach.

Rate and request size limits

Set a maximum request body size and a per-source request rate at the proxy, and reject oversized payloads before they are parsed. Agree the limits with the sender based on the largest legitimate payload and its normal peak volume, and test what happens when a limit is hit so retries do not flood the queue. Limits protect the database and worker capacity that the rest of the CRM depends on.

Logging without secrets or personal data

Log every accepted and rejected call with a time, source address, entry point name, result code and request identifier. Do not log signature values, tokens, full bodies or personal data such as names, contact details or case text, because log stores are often read more widely than the CRM. Confirm your log retention period with your compliance owner and check that log access follows your normal review process.

Short-lived tokens for file streams

Custom exports served from an entry point should require a short-lived token or a signed URL that names the file, the requester and an expiry time. Generate the token only for an authorized user session, and make it single-purpose so it cannot be reused to fetch other exports. Test expired and reused tokens during verification.

Role-scoped exports and no unfiltered data

Build each export query from the permissions of the user or service account that requested it, so an export never returns rows or fields that user could not see in the interface. Unauthenticated routes must never return unfiltered data, even for a list that looks harmless, because a single missing filter exposes every record. Verify this with test accounts at different roles before release.

When to use a webhook, a file stream or a scheduled job

Use an inbound webhook when another system must change a SuiteCRM record soon after something happens elsewhere, such as a payment confirmation, a support ticket status change or a form submission. The sending system pushes a request to an entry point in SuiteCRM, and the entry point validates it and writes to the database. Because the caller decides when to send, the design depends heavily on what the sender does when SuiteCRM does not answer.

  • Retries: Confirm whether the sending system retries, how many times, and with what backoff. Your entry point must tolerate duplicate deliveries, so store an event identifier and make writes idempotent.
  • Payload size: Keep payloads small and carry identifiers, not whole record exports. Large bodies tie up PHP workers and slow other users.
  • Database load: Every event is a write during business hours. Test bursts from the sender in staging before go-live.
  • Credential: The sender holds a secret that can write data. Scope it narrowly, rotate it, and store it in your secrets tooling rather than in the sender's configuration files.
  • Failure detection: Failures show up as errors on the sender side and in the SuiteCRM logs. Alert on both, because a silent failure can leave records stale for days.

Confirm retry and timeout behavior with the sending system's documentation and your own load tests, since SuiteCRM does not promise delivery guarantees for custom entry points.

How to test entry points and keep them working through upgrades

Treat every entry point as an unauthenticated or semi-authenticated door that needs its own test set before it goes live. For a webhook receiver, run positive and negative signature tests: a correctly signed request must be accepted, and requests with a missing, altered or stale signature must be rejected without writing anything to the database. Add malformed payload tests (truncated JSON, wrong content types, oversized bodies, unexpected field types) and confirm the endpoint returns a clean error rather than a stack trace. Then send duplicate deliveries of the same event, since most senders retry, and verify that the second delivery creates no duplicate records. For a custom export served through /ep/, run large export tests against a staging copy of the database, watching memory use, runtime and whether the response streams or buffers. Confirm that the output matches the row count you expect from the query.

Permission tests matter most for exports. Create a restricted SuiteCRM user, call the export as that user, and confirm it cannot see rows owned by other teams, even though the same export run as an administrator returns them. Because entry point code runs its own queries, it does not inherit list view restrictions automatically, so this check is the one most likely to catch a real exposure. Add a proxy test that requests the /ep/ path from outside the network and from each allowed network, confirming it is reachable only where intended and that the reverse proxy does not strip headers your signature check depends on. Confirm the exact proxy and rewrite settings with your own environment and the SuiteCRM installation documentation before you rely on them.

Upgrades are where entry points usually break. SuiteCRM 8 minor releases arrive roughly every eight weeks, and patch releases contain only security and bug fixes with no new features or database changes, so retest the endpoints after each minor release and after each patch that touches the framework. Keep the extension in the custom folders registered through the extension framework and out of core files, so a core update does not overwrite it. The 7 to 8 migration needs particular care: the migration documentation warns that it may remove non-core files under the public/legacy folder. Any legacy entry point that lived there must be re-created in the 8 environment and passed through the full test set, not assumed to carry over. Keep the test scripts and sample signed payloads in version control so the retest after each release takes minutes, not a fresh design exercise.

Why entry points fail in SuiteCRM and how to fix them

This table pairs common entry point symptoms with their likely causes and fixes, so you can start from what you observe. Read each row as a first check, not a guaranteed diagnosis. Confirm every fix against the documentation for your exact SuiteCRM 8 release before you change production.

SymptomLikely causeFix
The /ep/ URL returns a 404Entry point not registered through the extension framework, rewrite rule missing for Apache 2.4 or the reverse proxy, or cached routes not clearedConfirm the extension is installed and loaded, check the Apache rewrite configuration passes /ep/ requests to SuiteCRM, then clear the application cache and retest
Endpoint works locally but fails through the proxyProxy strips the Authorization header or rewrites the path, or the public hostname and TLS settings differ from what SuiteCRM expectsCompare the raw request at the proxy and at the application server, pass the required headers through, and confirm the external scheme and host match the site URL
Signature checks fail intermittentlyServer clock skew between sender and SuiteCRM, the body is re-serialized before hashing, or a different signing secret is set in one environmentSync time with NTP on every host, verify the signature over the exact raw bytes received, and compare secret values across staging and production without printing them to logs
Duplicate records appear after the sender retriesNo idempotency key or event identifier is checked before creating records, so each retry creates a new rowStore each incoming event identifier with its result, return the stored result for repeats, and test by replaying the same request twice
Exports return partial dataPagination stops early, or date filters use server time instead of the time zone the consumer expectsPage through results until the end marker, state the time zone in every filter, and compare record counts against a direct database query on a copy
Endpoint works before an upgrade but not afterExtension code was placed in a path the upgrade overwrote, or a file under the legacy or core folders was replaced during migrationKeep custom code only in the supported custom paths, review what the upgrade or migration removes, and rerun the endpoint tests on staging before each release change

Questions teams ask before building SuiteCRM entry points

How long does building SuiteCRM entry points take?

Duration depends on the scope you agree in writing, not on the entry point mechanism itself. The main drivers are the number of webhook event types you must receive, the shape of the export data model, how much security review the unauthenticated endpoints need, and how many environments must be tested before release. A single inbound webhook with a fixed payload is a much smaller job than several event types feeding a file export that finance reads each morning. Ask for a written scope that lists each endpoint, each event type and each environment, and request the timeline against that list.

What does an entry point engagement cost, and what recurs?

Cost follows the written scope, and DeployOpen does not publish a price list. The main components are the build work (receiver logic, the export query, extension registration and testing), security testing of the unauthenticated endpoints, and retesting after each SuiteCRM minor release. SuiteCRM 8 minor releases arrive roughly every eight weeks, and patch releases contain only security and bug fixes, so the recurring part is mostly testing and regression checks rather than rebuilding. Ask the quote to separate one-time build and test costs from any retainer for ongoing retesting.

Can an internal developer build SuiteCRM entry points alone?

Yes, if that developer knows PHP and the SuiteCRM extension framework well enough to keep custom code out of core files. The work usually gets harder at the edges: securing an endpoint that accepts requests without a login, and configuring the reverse proxy and web server so the request reaches SuiteCRM intact. Those tasks need security testing skills and infrastructure skills that many application teams do not have in-house. Many teams build the code internally and bring in a security reviewer for the endpoint and proxy checks before go-live.

What must our team provide before the build starts?

Four things unblock most projects: a written payload contract for each webhook (fields, types, signing method and sample requests), the list of sending systems with their source addresses or identifiers, the secrets or signing keys that the sender will use, and a staging copy of SuiteCRM with realistic data. You also need a named owner who approves the endpoint design, the export fields and the go-live decision. Without that owner, reviews stall after the code is written. Confirm which of these items your sending system can actually provide before you commit to a schedule.

Do unauthenticated SuiteCRM endpoints need a security test before go-live?

Yes. An endpoint that accepts requests without a SuiteCRM login is reachable by anyone who can reach the URL, so it should be tested before it receives production traffic. The test should check how the request is authenticated (for example, a signature or shared secret), how the payload is validated, whether the export can be requested by someone who should not see it, what gets logged, and whether the proxy forwards the headers the code depends on. Retest after each SuiteCRM minor release and after any change to the endpoint or the proxy.

Where does the /ep/ clean URL come from, and why does it matter?

The /ep/ clean URL is the path that SuiteCRM 8 uses to expose entry points, so your sender and your proxy rules must agree on it. If the web server rewrites URLs differently in production than in staging, the sender may reach a page that looks correct but runs the wrong code or fails silently. Confirm the exact path and rewrite configuration in your staging environment against the SuiteCRM documentation for your version, and test the full request path from the sender through the proxy to SuiteCRM.

Will entry points survive a SuiteCRM upgrade?

They can, if the code is registered through the extension framework and kept out of core files, so an upgrade does not overwrite it. Each minor release still needs a regression check, because a change to the framework, the proxy requirements or the PHP version can affect the endpoint. Check the compatibility matrix for supported PHP and database versions before each upgrade, and run the webhook and export tests on staging first.

How DeployOpen works on this

DeployOpen plans, builds, tests, documents and supports SuiteCRM entry points inside your own infrastructure, so webhook receivers and file-stream endpoints are reviewed before they touch live customer or finance data. Work runs under a written, fixed scope, and each endpoint is handed over with the evidence your security and operations teams need to approve it.

How we scope

  • Inventory every webhook sender and file consumer, with the data each entry point would expose or accept.
  • Decide which endpoints need authentication, signature checks, IP restrictions or none, and record the reason.
  • Agree in writing which entry points, extension files, hosting changes and test cases are in the fixed scope.

How we build

  • Register each entry point through the extension framework so custom code stays separate from SuiteCRM core files.
  • Expose the /ep/ clean URL behind your reverse proxy and confirm the web server routes it to SuiteCRM as expected.
  • Validate payload signatures, reject replayed requests and limit file exports to the records the caller is allowed to read.

How we hand over

  • Deliver source, configuration notes and a test plan that shows each endpoint accepting valid calls and refusing invalid ones.
  • Document the sender setup, secret rotation steps and the log entries that show each request was received and handled.
  • Walk your administrators through the endpoint inventory, so they can review it after each SuiteCRM minor release.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after the initial handover.
  • Retest affected entry points when SuiteCRM releases change the entry point or authentication behavior you depend on.
  • Confirm with your team which release line, PHP version and web server you run before any retest is scheduled.

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.