Integrations
Connect Food Safety Inspection Router to your systems
Each integration Food Safety Inspection Router supports: what flows, how fields map, and the steps to set it up.
Applies to Food Safety Inspection Router as it works today. Moraph updates the platform continuously, and this page is reviewed when it changes.
On this page
How Food Safety Inspection Router connects to your other systems. Every connection is confirmed during discovery and specified in the design before it is built.
Facility registry
Facility identifiers, addresses, coordinates and facility types from your agency's registry, sent through the Work API by your registry team.
- What flows: In: facility records and status changes.
- Mapping: Registry records map to Facility records: facility_identifier, address, territory, facility_type, risk_category, latitude, longitude and required_frequency_days.
Steps to set it up
Create a Work API key with records:write for the registry integration.
Send facilities with POST /records, type Facility, and update them with PATCH /records/<ref>.
Map registry identifiers to facility_identifier and your registry’s districts to territory.
Load a sample and check addresses, coordinates and facility types.
Inspection and enforcement history
Past inspections, findings and enforcement actions from your existing systems, mapped during implementation.
- What flows: In: historical inspections, findings and actions.
- Mapping: The most recent routine inspection date and result per facility map to last_inspection_date and last_result. Earlier history can be loaded as completed Inspection records if you want it on the facility.
Steps to set it up
Export the last routine inspection date and result for each facility from your existing system.
Send them as last_inspection_date and last_result on the Facility records.
Check the due list against your current schedule for a sample of facilities.
Laboratory results
Laboratory results your staff should act on, recorded as signals by staff or sent through the Work API by your laboratory team, linked to the facility and sample identifier.
- What flows: In: signals with the facility, sample identifier and a summary; no analytes or result values are stored.
- Mapping: The Router stores no analytes or results data and takes no feed itself. A result becomes a Signal record (facility, signal_type, received_on, source_reference, sample_identifier, raises_priority, summary).
Steps to set it up
Create a Work API key with records:write for the laboratory integration.
Send each result your staff should see as a Signal record (POST /records, type Signal) with signal_type Laboratory result, the facility, received_on and sample_identifier.
Mark raises_priority for results that should weigh more in the facility’s risk score.
Recalls and complaints
Recall notices and consumer complaints recorded as signals by staff, or sent through the Work API from the agency's intake systems.
- What flows: In: recall and complaint records with the facilities they name.
- Mapping: Each recall or complaint becomes a Signal record (facility, signal_type Recall or Complaint, received_on, source_reference, summary). Open signals add to the facility’s risk score with the weights in the risk model.
Steps to set it up
Send recalls and complaints from your intake systems as Signal records through the Work API, or have staff record them.
Review them on the Signals page: request a visit, or record why no action is needed.
Agency devices
Inspectors use the Router in the browser on agency devices, so your own device policies apply; there is no separate mobile app to deploy.
- What flows: Out: field sheets and JSON assignment packages for your agency's own mobile tools.
- Mapping: There is no mobile app and no offline mode: recording results, checklists and signatures needs a connection.
Steps to set it up
Inspectors use Moraph Apps in the browser on agency devices; there is no separate mobile app to deploy.
Print the field sheet, or download the JSON assignment package for your agency’s own mobile tools, before inspectors leave coverage.
Sign-in
Staff sign in with their Moraph account, using email and password and, optionally, two-step verification. Sign-in through your own identity provider (SAML or OpenID Connect) is not offered.
- What flows: None: accounts are kept in Moraph
- Mapping: People sign in to Moraph Apps with their Moraph account; product roles are Viewer, User and Product administrator.
Steps to set it up
Your organization administrator invites each person in the Moraph Portal under People and access.
Give each person the product role that matches their work.
Work API
Scores, plans, findings and follow-up status available to your data warehouse and reporting tools through the Moraph Work API.
- What flows: Out: risk scores, assignments, findings and outcomes.
- Mapping: Facility, Inspector, Inspection, Violation, Enforcement action, Signal and Plan records map to rows in your data warehouse. Facilities include risk_score, risk_band, risk_model_version and risk_scored_on (from the daily score); inspections include signed, signed_at, findings_review, operator_acknowledged_at and, when scoring is on, inspection_score and inspection_grade; violations the operator reports as corrected include operator_reported_corrected_on.
Steps to set it up
Create a key in Settings, Work API keys, with records:read.
Store the key in your secret store.
Read changes with GET /records and the updated filters.
Check recent calls in Settings after the first run.
Using the Work API
Systems that aren't covered above can read and write Food Safety Inspection Router records through the Sign in to read Work API. For example, to create a facility:
POST https://apps.moraph.com/api/v1/records
Authorization: Bearer mrph_…
Content-Type: application/json
Idempotency-Key: 7f3c2a90-example
{ "type": "facility", "title": "Example title", "fields": { "facility_identifier": "…" } }Field keys are listed in the Sign in to read workspace reference. Request formats, paging and errors are in the Sign in to read Work API reference.
Was this page helpful?
Report a problem with this page
Need help with your own setup rather than this page? Raise a support ticket.