Skip to content
Help

Public API

Read your customers, instruments, calibrations, certificates, standards and work orders from your own software, with an API key.

Customers, jobs and billing

Who can do this: Admins and developers

What it is

The public API lets a program read your company’s records over HTTPS: a report, a spreadsheet that refreshes itself, your ERP or quality system. It is read only. Nothing can be created, changed or deleted through it.

  • Customers, assets (instruments, with due date and status), calibrations (every point’s reference, as found, as left and verdict, and the standards used), certificates (details and the PDF), standards and work orders.
  • Each has a list and a single record by id, under /public/v1 on your Probatus API address.
  • A key reads only your company’s records. Backflow tests are not in version 1, and deleted records are not reported.
  • The full description, for code generators and tools such as Postman, is served at /public/v1/openapi.json.

Make a key

  1. Step 1: Open Settings, then API & data export. Under API keys, type a Key name that says what will use it.
  2. Step 2: Choose who the key Acts as. The key sees what that team member sees.
  3. Step 3: Leave Read data ticked and tap Create key. Copy the key straight away: it is shown once.
  4. Step 4: Keep the key out of your code. Read it from an environment variable or a secrets store, and revoke it if it may have leaked.
Keys made for the calibrator and automation link cannot read data, and keys that read data cannot use the link. A key can have both if you tick both.

Try it

Send the key in the X-API-Key header (or as Authorization: Bearer). The API address is shown under Settings, API & data export, API keys.

export PROBATUS_API=https://your-api-address
export PROBATUS_KEY=pbk_...

# Check the key
curl -H "X-API-Key: $PROBATUS_KEY" "$PROBATUS_API/public/v1/ping"

# Instruments with their due date and status, 100 at a time
curl -H "X-API-Key: $PROBATUS_KEY" "$PROBATUS_API/public/v1/assets?limit=100"

# One customer's approved calibrations in March, with their readings
curl -H "X-API-Key: $PROBATUS_KEY" \
  "$PROBATUS_API/public/v1/calibrations?customer_id=<id>&status=approved&performed_from=2026-03-01&performed_to=2026-03-31"

# A certificate's PDF
curl -H "X-API-Key: $PROBATUS_KEY" -o certificate.pdf "$PROBATUS_API/public/v1/certificates/<id>/pdf"

Pages and changes

  • A list answers { "data": [...], "next_cursor": "..." }. Send next_cursor back as cursor for the next page; it is null on the last page. limit is 50 by default, at most 200.
  • Lists are in the order records last changed, oldest first. To copy only what changed, keep the latest updated_at you saw and send it as updated_since next time, a few minutes earlier to be safe. A record may come twice; none is missed.
  • Field names are fixed for version 1. New fields may be added; none is renamed or removed.
# Everything changed since your last run, page by page
curl -H "X-API-Key: $PROBATUS_KEY" \
  "$PROBATUS_API/public/v1/calibrations?updated_since=2026-03-01T00:00:00Z&limit=200"
# ...then the same with &cursor=<next_cursor> until next_cursor is null

Export everything at once

An admin can export a date range, for all customers or one, under Settings, API & data export, Export your data: a ZIP of every certificate PDF issued for calibrations in the range, with CSV files of the customers, instruments, calibrations, every measurement point and the standards. It is made in the background; the card shows how far it has got and offers the download when it is ready. A large export comes in parts of about 20 MB, each a ZIP of its own. Exports are kept for 14 days.

# The same with a key that reads data: start it...
curl -H "X-API-Key: $PROBATUS_KEY" -H "Content-Type: application/json" \
  -d '{"from":"2026-01-01","to":"2026-06-30"}' "$PROBATUS_API/public/v1/exports"
# ...ask until "status" is "done", then download each of "parts"
curl -H "X-API-Key: $PROBATUS_KEY" "$PROBATUS_API/public/v1/exports/<id>"
curl -H "X-API-Key: $PROBATUS_KEY" -o export-part-1.zip "$PROBATUS_API/public/v1/exports/<id>/parts/1"

Limits and errors

  • Each key may make 300 requests a minute, in bursts of up to 60. Past that the answer is 429 with Retry-After: wait that many seconds.
  • Every error is JSON with an error sentence. 400: a parameter is wrong. 401: no key, or it was revoked, or its team member was deactivated. 403: the key cannot read data. 404: no such record in your company.
  • A certificate PDF is the one the app downloads. If the certificate service is busy the answer is 503 with Retry-After.

Not what you were looking for? Search all help articles