Batch records

A brew, a kiln load, a smoke, a drying run, a heat treatment: when a customer or an inspector asks what happened during batch 2041, a batch record answers. It gives each tag's minimum, maximum and average between the batch's start and end, and says whether the tag stayed within the limits you set.

A record is frozen when it is issued and carries a fingerprint that anyone can check, without an account. On Pro, Pro XL and Business.

Last updated

A batch

Open Batches in the Explorer's menu and choose New batch. A batch has:

  • A name or number and, if you like, the product or recipe.
  • Tags: up to 20, stored or computed.
  • Limits, optional, per tag: a low value, a high value or both. A kiln that must stay between 60 and 70 gets 60 and 70. A value on a limit is within it.
  • A start and an end. Start it now and press End now when it is done, or enter a batch that has already been, with its start and end. A batch covers at most 31 days: one left running for longer can still be ended, and then ends 31 days after its start.

An account keeps up to 1,000 batches. A batch can be edited at any time; records already issued are not changed by it. A start or an end you do not change in the editor stays exactly as it was, seconds included.

The record

When the batch has ended, choose Issue record. For each tag the record gives the minimum, the maximum, the average, the number of readings and, where the tag has limits, whether it stayed within them. It comes three ways:

  • A page to print. Open the downloaded page and print it, or save it as PDF from the print dialog.
  • An Excel sheet, with the batch and its certificate on one sheet and a row per tag on another.
  • The record file (.json): the record itself, which the certificate is about.

A record can be issued two minutes after the batch ends, so that readings sent just before the end have arrived. A batch with a tag read from hourly values (see below) waits until its last hour has been summarised, some minutes after the hour ends. The Batches page says from when.

Where the figures come from

Each tag's row in the record says which of the two it is.

  • From readings, when the batch lies in your plan's full-resolution window (14 days on Free, 1 year on Pro and 2 years on Pro XL and Business), with a day to spare. Every stored reading in the batch counts. A reading holds until the next one, so the average is weighted by time, and the time outside the limits is given in minutes, below and above. Time in which no value was in force is given as time without data.
  • From hourly values, for an older batch, for a computed tag, and for a tag with more than 200,000 readings in the batch. The figures then cover the whole hours the batch touches, which the record names, so they can reach a little outside the batch. An hour's lowest and highest value do not say for how long a limit was crossed, so the record gives the number of hours in which the tag was outside at some point, never minutes.

Times are shown on your account's clock with the UTC offset each had, and in UTC. A batch that runs across a clock change shows both offsets and its true length.

Frozen when issued

A record is computed once and kept as it was. If you later correct the data, rename or delete a tag, or edit the batch, the record you issued still says what it said: it is the data as it was stored when it was issued, and it says so.

Issuing again makes a new version (2, 3, up to 5 per batch) with its own fingerprint. The earlier versions stay, and the list says when a new version has exactly the same figures as an earlier one.

The certificate

Every record has a fingerprint: the SHA-256 of its record file, 64 characters, printed on the page and the sheet. Anyone can check it at app.taghistorian.com/verify, by pasting the fingerprint or by choosing the record file. The file is fingerprinted in their browser and is not uploaded.

What a match proves: Tag Historian issued a record with exactly that content at the time shown. If the record file matches, nothing in it has been changed since: no figure, limit, time or name.

What it does not prove:

  • That the sensors measured correctly, or that the readings sent to Tag Historian were right.
  • That the data was not corrected before the record was issued. A record is the data as it was then.
  • Anything about a printout or an Excel sheet on its own. A fingerprint can be copied onto a changed page. Hand over the record file with the printout, so the two can be compared.
  • Anything without Tag Historian. It is not a digital signature that can be checked offline: the check asks our registry. If you delete the batch or close the account, its records no longer verify.

The verification page answers only that a record with the fingerprint was issued, and when. It shows your account's name only if you ticked that for the record, which you can change afterwards. It never shows the batch, a tag or a figure, and a fingerprint cannot be guessed from what a batch contained. Checks are limited to 30 a minute per network address.

The same page checks Excel reports, which carry a verification code and are checked by their file.

Who can do what

  • Everyone on the team sees the batches and can download the records.
  • An Editor or Admin, or an API key with write access, starts, ends, edits and issues.
  • Deleting a batch that has issued records takes an Admin, because their fingerprints stop verifying.

From the API

A control system can run batches by itself. Start one (startedAt left out means now), end it, and issue the record:

bash
curl -X POST https://api.taghistorian.com/api/batches \
  -H "X-Api-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Batch 2041",
    "product": "Smoked ham",
    "tags": [{ "tag": "Kiln.Temp", "low": 60, "high": 70 }]
  }'

curl -X POST https://api.taghistorian.com/api/batches/<id>/end -H "X-Api-Key: <your-api-key>"

curl -X POST https://api.taghistorian.com/api/batches/<id>/records \
  -H "X-Api-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{ "showAccountName": false }'

To enter a batch that has already been, send startedAt and endedAt as instants with their UTC offset, such as 2026-11-03T08:00:00+01:00. GET /api/batches lists the batches with their records. GET /api/batches/{id}/records/{version} is the record file; add /html for the page to print or /excel for the sheet, and ?language=sv, de, es, fr or pt for either in Swedish, German, Spanish, French or Portuguese (the record file itself has no language). Issuing answers 409 with not_ready and a readyAt time until the batch's data is in.

POST /api/verify with { "hash": "..." } needs no key and answers match, and for a match issuedAt and, where the account chose it, accountName.

Common questions

Which plans have batch records?
Pro, Pro XL and Business, the plans with Excel reports. On another plan, batches and records you already have stay listed, and the records can still be downloaded and verified.
Can a batch record be changed after it is issued?
No. A record is computed once, when you issue it, and kept as it is. Correcting the data, renaming a tag or editing the batch afterwards changes nothing in it. Issue the record again to get a new version with its own fingerprint; the earlier versions stay.
What does the certificate prove?
That the record file is exactly what Tag Historian issued at the time shown. It does not prove that the sensors measured correctly, and it is not a signature: verification asks Tag Historian.
What can somebody see on the verification page?
Only that a record with that fingerprint was issued and when, and your account’s name if you chose to show it for that record. Never the batch, a tag or a figure.
Is it a PDF?
The record comes as a page to print, an Excel sheet and the record file. Save the page as PDF from your browser’s print dialog.
Can my control system start and end batches?
Yes. An API key with write access can start, end and issue through the API.

Try it on the free plan

5 tags, 50,000 readings a day, 14 days at full resolution and ten years of hourly summaries. €0, no card.