Website Embed and Open API

Put the selection tool on your own company website: visitors can select a pump from your private models, view curves and send enquiries online without registering. You can also use an API key to let your own systems (ERP, MES, CRM, mini-programs, etc.) call the open API: selection, reading quotations and saved selections, and reading and writing pump unit records. Or use “Event push” to send new enquiries, repair requests, alarms and other events to your systems in real time. Settings are in “My Team → Selection portal → Website & API”.

Requirements

Website embed, the open API and event push all belong to the Selection portal feature: you must first open a selection portal, and the portal must be active (not expired, not closed in Settings, and not suspended by the platform). The team owner and members with the “Website embed, open API & webhooks” permission can manage it; see member permissions.

If the team or the portal expires, or the portal is closed or suspended, the embedded widgets and the API stop working immediately and events are no longer pushed (queued pushes are discarded). After renewal or reopening the portal they resume automatically; existing keys and push addresses are kept.

The widget and the API only use the private models of all members of this team; platform curves and external public curves do not appear.

Embed keys

One embed key is used for one purpose (for example “Chinese website”, “English website” or “ERP API”). Each team can have up to 10 embed keys.

Name

For your own reference. It is also shown in the “Source” column of website enquiries.

Allowed websites

The websites that may embed the widget, one per line. Enter only the host name, such as https://www.example.com, without a path. A website not on this list is refused by the browser when embedding, and direct calls to the widget interface are also refused. If left blank, the widget can only be previewed on this platform. Changes take effect within 1 minute.

Models offered

Only the selected private models are offered; if none is selected, all private models are offered. Models that are not offered cannot be found in the widget or the API, and their curves cannot be opened.

Widget title and theme colour

The name shown at the top of the widget and the colour of its buttons. If the title is blank, the site name of the selection portal is used; if the site name is empty, the team name is used. The logo is the logo of the selection portal.

Daily call limit

The total number of selections, curve openings and API calls per day, shared by the widget and the API. The default is 500 and it can be set from 10 to 20000. When the limit is reached, requests for the rest of the day return “Daily usage limit reached, please try again tomorrow”. In addition, each visitor IP address may make at most 300 calls per day, to prevent anyone from bulk-exporting curves through the widget.

Use

“Website widget”: the key may be embedded on the company website.

“Open API”: the key may be used to call the API from your server. The API key is generated the first time this is ticked and saved.

“Allow visitor enquiries”: the widget shows an “Enquire” button.

“Show predicted speed”: results and readings show the pump speed at the duty point. When not ticked, only efficiency and check results are shown.

“Enabled”: when disabled, neither the widget nor the API is available. There is no need to delete the key.

Embed code

Click “Embed code” on the key row, copy the iframe code and paste it where the selection tool should appear on your website. You can set the interface language (Chinese, English and 9 others, 11 languages in total); if not set, the visitor's browser language is used. Click “Preview” to see how it looks on this platform first.

In the widget, visitors can:

Enter flow, head and units, and optionally NPSHa, a model and the flow range as a percentage of the best efficiency point (default 70%–120%), then click “Select”.

See the efficiency, predicted speed (if offered) and check result of each pump in the results. Pumps that meet the requirements are listed first.

Click a row to open the curve: the head curve, efficiency curve, family of speed curves and duty point, together with the readings at the duty point: flow, head, efficiency, shaft power, speed, NPSHr and %BEP.

Click “Enquire”, enter name, company, phone or email, quantity and a message, then submit. The slider check must be completed before submitting. Each IP address may submit at most 10 enquiries per day.

API key

The API key is shown only once, when it is generated or reset. Copy it and save it immediately. The platform stores only a digest of it and cannot show it again. If it is lost or leaked, click “Reset API key”; the old key stops working immediately. The API key must only be kept on your company's servers. Do not put it in web pages or mobile apps.

API data permissions

After you tick “Open API”, “API data permissions” appears in the edit form. The selection interface (model list, selection, curves and duty point readings) is always available. The four items below are all off by default; tick the ones your integration needs:

“Read quotations”: read the team's quotation list and details.

“Read selections”: read summaries of saved selections and project plans.

“Read pump units”: read pump unit records.

“Write pump units”: create or update pump unit records by serial number (ticking this also ticks “Read pump units”). It can only create and update records, not delete them.

Calls for data that has not been authorised return 403 and embed.scope. Every change to these permissions is recorded in the Activity log.

Source IP addresses

“Only allow calls from these IPs”: one IP address or range per line (for example 203.0.113.10 or 203.0.113.0/24; a range cannot be wider than /8). Once filled in, calls from any other address return 403 and embed.ip, and the selection interface is restricted in the same way. Leave it empty for no restriction. We recommend entering your company server's outgoing IP address, so that the API key cannot be used from anywhere else even if it leaks.

Open API

The API path prefix is /api/open/v1. Send the request header Authorization: Bearer API key (or X-Api-Key: API key). Responses are JSON. Each call counts toward the daily limit of the key.

General conventions

Address: https://www.pumpviz.com/api/open/v1/…, HTTPS only.

The API key starts with sk_emb_ and must only be called from your company's server.

Request bodies are JSON; send the request header Content-Type: application/json.

Time: all returned times are in UTC, in the form 2026-11-23T08:30:00Z; the since parameter is also read as UTC (times with a time zone are converted automatically).

Paging: list interfaces return {"total": total, "page": page number, "size": items per page, "items": [...]}, and page starts at 1.

Incremental sync: note the time of your last sync and send since=that time next time to get only records created or changed after it; lists are sorted by update time, newest first, so page through until the end.

Daily limit: every call that passes the key, data permission and source IP checks counts toward the key's “Daily call limit” (10–20000 calls, default 500, resets at 00:00 Beijing time).

Rate limit per minute (counted per source IP): selection 30 calls; model list, curves, duty point readings, quotations, saved selections and reading pump units 60 calls each; writing pump units 120 calls. Requests over the limit return 429, and the Retry-After response header gives the number of seconds to wait.

Example (reading the quotation list):

curl https://www.pumpviz.com/api/open/v1/quotes?since=2026-11-01T00:00:00Z \
  -H "Authorization: Bearer sk_emb_…"

Model list

GET /api/open/v1/models: returns the offered models with their name name, number of curves count and installation positions positions (0 horizontal, 1 vertical, 2 submersible).

Selection

POST /api/open/v1/search, request body:

flow, head: flow and head, required.

units: unit: 1 = L/s, 2 = m³/min, 3 = m³/h (default), 4 = USGPM and ft.

npsha: NPSHa of the installation, optional.

model: select only within this model, optional.

position: installation position, optional.

minBep, maxBep: flow range as a percentage of the best efficiency point, default 70 and 120.

showAll: when true, pumps that fail the checks are also returned.

limit: maximum number of rows returned, default 20, up to 50.

Returns total (the number that meet the requirements) and rows. Each row has the curve ID curveId, model model, size size, curve name curve, efficiency eff (%), predicted speed speed (r/min; null when not offered), highest efficiency bepEff, whether it passes pass, and the reason codes codes for failing: BEP_FAIL outside the %BEP range, NPSHA_FAIL NPSHa insufficient, NPSHR_UNPRED NPSHr cannot be predicted.

Curve

GET /api/open/v1/curves/{curveId}: returns the curve data in m³/h, m and kW. main is the main curve points [flow, head, efficiency, shaft power, NPSHr]; speeds is the family of speed (or impeller diameter) curves; effs are the iso-efficiency lines; envelope is the operating range; axis is the axis range. It also gives speed, impeller diameter, number of vanes, inlet and outlet sizes and the minimum passage.

Duty point readings

GET /api/open/v1/curves/{curveId}/duty?flow=280&head=27: flow in m³/h and head in m. Returns the flow, head, efficiency, shaft power, speed, NPSHr and %BEP at this duty point.

Quotations

Requires the “Read quotations” permission.

GET /api/open/v1/quotes: quotation list, sorted by update time, newest first. Parameters: since (ISO time; returns only quotations updated after this time, for incremental sync), status (draft = draft, sent = sent, won = won, lost = lost), page, size (up to 100 per page). Each item has id, quotation number quoteNo, customer customer, project name projectName, currency currency, status status, total total, revision revision and timestamps.

GET /api/open/v1/quotes/{id}: quotation details. id can be the quotation ID or the quotation number. Also returns the contact person, tax rate, whether prices include tax, discount, validity in days, payment and delivery terms, subtotal, discount amount, tax amount, total excluding tax, and line items items (category, tag number, name, model, size, description, unit, quantity, unit price, line discount, amount). Internal notes are not returned.

Saved selections

Requires the “Read selections” permission. GET /api/open/v1/selections: summaries of saved selections and project plans; parameters since, page and size (up to 100 per page). Each item has id, kind kind (selection for a saved selection, project for a project plan), name, tag number, whether it is the preferred plan, pump pump, summary summary (duty point, efficiency, speed, etc.), and the project it belongs to project (project ID, name, equipment name, tag number). Complete selection parameters are not returned.

Pump unit records

GET /api/open/v1/units: list of records (requires “Read pump units”). Parameters: q (search by serial number, model or customer), since, page, size (up to 200 per page).

GET /api/open/v1/units/{serial}: a single record. Returns the scan code code, serial number, model, size, customer, installation location, ship date, flow, head, speed, impeller diameter, motor power, medium, materials, seal, motor, public notes, service phone, whether in service active, and whether scan repair requests are allowed. Internal notes and linked curves are not returned.

POST /api/open/v1/units: create or update records by serial number (requires “Write pump units”). The request body is an array, up to 200 units at a time, with the same fields as above (serial is required). If the serial number already exists the record is updated, otherwise it is created. When updating, only the fields given in the request are changed; fields not given stay as they are. Internal notes, linked curves and the scan code cannot be changed. Returns the number created created, the number updated updated, and the result for each unit results (created, updated, or error together with an error code). A new record belongs to the member who created this API key (or to the team owner if that member has left the team), and counts toward that owner's record limit.

Pump unit fields

Field · Meaning · Rules

serial · Serial number · Required, up to 64 characters; unique within the same team

model, size · Model, size · Up to 128 characters each

customer · Customer · Up to 128 characters

site · Installation location · Up to 200 characters

shipDate · Ship date · YYYY-MM-DD

flow, head · Rated flow, head · m³/h, m; must be greater than 0

speed · Speed · r/min

impellerDia · Impeller diameter · mm

motorKw · Motor power · kW

medium, seal, motor · Medium, seal, motor · Up to 200 characters each

materials · Materials · Up to 300 characters

publicNote · Public note (shown on the scan page) · Up to 1000 characters

servicePhone · Service phone · Up to 64 characters

allowRequest · Allow repair requests by scanning · true / false

Read-only fields (returned when reading, ignored when writing): scan code code, in use active, createdAt, updatedAt. If a numeric value given is not positive or is out of range, or a date is in the wrong format, that field is saved as empty.

Write example:

POST /api/open/v1/units
[
  {"serial": "SN2026-0001", "model": "FX-100", "customer": "Beiling Mining", "flow": 280, "head": 27, "shipDate": "2026-11-20"},
  {"serial": "SN2026-0002", "servicePhone": "400-000-0000"}
]

Response:

{"created": 1, "updated": 1, "results": [
  {"serial": "SN2026-0001", "result": "created", "code": "scan code"},
  {"serial": "SN2026-0002", "result": "updated", "code": "scan code"}
]}

Error codes per unit: unit.err.serial the serial number is empty, open.err.dupInBatch the serial number is duplicated within the same batch, open.err.permission the member who created the key has no permission to create or change this record, unit.err.quota the record limit has been reached (5000 per person). A unit with an error is not saved; the others are saved as usual.

Errors

On error, the matching HTTP status code and {"code": "error code"} are returned:

Status · Error code · Meaning

400 · embed.err.duty · Flow or head in the duty point reading is invalid

400 · open.err.batch · The pump unit write request is empty or has more than 200 units

401 · embed.noKey · No API key sent

401 · embed.badKey · The API key is wrong or has been reset

403 · embed.apiOff · This key does not have “Open API” ticked

403 · embed.disabled · The key is disabled

403 · embed.adminDisabled · The key was disabled by the platform

403 · embed.expired · The team has expired or been suspended

403 · embed.portal · The selection portal is not opened, has expired, is closed, or is suspended

403 · embed.off · The platform has not yet opened this feature

403 · embed.scope · The data is not authorised, see API data permissions

403 · embed.ip · The source IP is not on the allow list, see Source IP addresses

404 · embed.err.curve · The curve does not exist, or its model is not offered

404 · open.err.notFound · The quotation or pump unit record does not exist

429 · embed.quota · Today's calls have reached the daily limit for this key

429 · (none) · Requests are too frequent; wait as indicated by the Retry-After response header, then try again

Website enquiries

Enquiries submitted through the widget are viewed under “Website & API → Website enquiries”. They show the contact, model and duty point, the message, the web page where it was sent and the source key. After handling an enquiry, click “Mark handled” and optionally add a note. If enquiry alerts (a group robot or a notification email) are set up in the Selection portal, website enquiries are sent in the same way; if event push is set up, an enquiry.created event is also pushed.

Event push

Under “Website & API → Event push”, when one of the events below happens, the platform immediately sends a JSON message (POST) to the addresses your company has registered. Your system processes it automatically on receipt, so there is no need to poll. Up to 5 addresses can be registered, and each address can choose which events to receive.

Events you can receive

Event · When it is sent · Contents

enquiry.created New enquiry (portal / website) · A customer submits an enquiry on the selection portal or the website widget · Source, model and duty point, quantity, contact person, company, phone, email, message

portal.customer.pending New portal customer awaiting approval · A portal that requires approval receives a new customer application · Portal, name, email, company

unit.request.created Pump unit repair request · A repair request is submitted by scanning a pump unit on site · Serial number, model, size, customer, installation location, reporter, phone, description

monitor.alert Monitoring alert · Vibration or bearing temperature rises from normal to caution or alarm, or from caution to alarm (each level is pushed only once) · Level, serial number, model, items over limit and their values

bench.test.finished Bench test finished · A test bench push ends · Test ID, serial number, model, test bench, number of test points, pass or fail, highest efficiency

quote.status.changed Quotation status changed · A quotation changes to sent, won or lost · Quotation ID, quotation number, customer, amount, old and new status

Event data fields

Fields in each event's data (a field may be null when empty):

Event · data fields

enquiry.created · source (portal for the selection portal / embed for the website), id, label model / size / curve, duty duty point, quantity, name, company, phone, email, message, curveId, createdAt; website enquiries also have key (key name) and page (the web page where the enquiry was submitted)

portal.customer.pending · portal (portal URL suffix), name, email, company, createdAt

unit.request.created · id, unit (serial, model, size, customer, site, code), name (reporter), phone, message, createdAt

monitor.alert · level (warn caution / bad alarm), unit (serial, model, size, customer, site), findings (each item has code: vibration or bearingTemp (bearing temperature), value current value, limit the limit exceeded; vibration also has zone C / D), at data time

bench.test.finished · id test ID, serial, model, bench test bench, operator, points number of test points, pass pass or fail, bepEff highest efficiency, finishedAt

quote.status.changed · id, quoteNo, customer, projectName, currency, total, status new status, from previous status (draft / sent / won / lost), revision version

Push example (repair request):

POST https://erp.example.com/pumpviz/hook
X-Pumpviz-Event: unit.request.created
X-Pumpviz-Delivery: evt_3f2a…
X-Pumpviz-Signature: t=1795400000,v1=9b1c…
{"id": "evt_3f2a…", "event": "unit.request.created", "createdAt": "2026-11-23T08:30:00Z", "test": false,
 "data": {"id": "ur-128", "unit": {"serial": "SN2026-0001", "model": "FX-100", "size": "100", "customer": "Beiling Mining", "site": "Ore dressing workshop 2", "code": "scan code"},
          "name": "Engineer Zhang", "phone": "138…", "message": "Bearing noise", "createdAt": "2026-11-23T08:30:00Z"}}

Endpoint addresses

The “Endpoint URL” must be a public https:// address (port 443). IP addresses, localhost, internal domain names and addresses containing a username or password are not supported. Before each delivery the platform resolves the domain name again and refuses to send if it resolves to an internal address. Redirects are not followed.

Push format

Request body: {"id": "evt_…", "event": "event name", "createdAt": "time", "test": false, "data": {…}}. Request headers:

X-Pumpviz-Event: the event name.

X-Pumpviz-Delivery: the event ID. The same event may be delivered more than once because of retries, so de-duplicate by event ID.

X-Pumpviz-Signature: t=timestamp,v1=signature.

Signing secret and verification

After you add an address, the signing secret (starting with whsec_) is shown once. Copy it and store it on the receiving side. If it is lost, click “Reset signing secret”; the old secret stops working immediately. Signature = HMAC-SHA256(signing secret, timestamp + "." + raw request body), in lowercase hexadecimal. The receiver should verify the signature first, and reject requests whose timestamp is more than 5 minutes old, to prevent forgery and replay. The page has example code under “How to verify the signature”.

Retries and disabling

The receiver returns 2xx to confirm receipt. For any other status, a timeout (5 seconds) or a failed connection, the platform retries after 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours, six times in total. If the same address fails 20 times in a row, it is disabled automatically and its status shows “Disabled after repeated failures”. After you fix the receiver, click “Edit”, tick “Enabled” and save to resume.

Testing and delivery log

“Send test” sends one ping test push (test is true; data contains message and the endpoint name endpoint); it is not retried and counts toward the daily push count. Each team can push at most 5000 events per day; pushes beyond that are not sent that day. The “Delivery log” below keeps records for 30 days, showing the time, endpoint, event, result (Delivered, Pending / retrying, Failed or Dropped), HTTP status, number of attempts and duration. Click “Payload” to view the JSON pushed, or click “Redeliver” to send it again.

API call log

Under “Website & API → API call log”, every call to the open API (including rejected calls) is kept for 30 days. The log shows the time, key, request path, result, rejection reason, source IP and duration. You can filter by key, or show only rejected calls. Only the path and result are recorded, never the request content.

Loading... If the page does not appear, please make sure JavaScript is enabled in your browser.