Skip to the page
Docs menu

Docs Tools and reference

Changelog

Changes to the Timbereye API, SDKs and these docs.

Reference for all three steps.

Changes within v1 are additive. Ignore unknown fields and unknown enum values. Breaking changes need a new major version in the path.

29 November 2026: each log's volume on the item, a time window on the event feed, SDK and CLI 0.2.0#

  • volume on every item (new, optional): { rule, rule_version, m3 }, the log's JAS volume from its effective measurement and length, the same m3 as GET /items/{id}/volume; null while the log has no measurement. A page of GET /groups/{id}/items now gives every log's volume with no call per log.
  • created_after and created_before on GET /events (new, optional, ISO 8601; created_after inclusive): the event feed in a time window, to catch up after downtime.
  • TypeScript SDK and CLI 0.2.0 on npm: everything in the API up to today, including the 0.1.1 changes below that were never published (TIMBEREYE_API_URL, generateTestHeaders, photoRef, the tally's logs and photos, webhooks listen --forward-to). events.list({ createdAfter }), item.volume, and timbereye events list --created-after.

29 November 2026: measured board sizes and trimbacks with a lumber tally#

  • vision_count.sizes and vision_count.trimbacks (new, optional, method: model with a proposal) on POST /groups/{id}/tally: what a phone with depth measured on the proposed boxes (width, thickness, setback, each reading by box index) and the trimbacks (the lengths proposed from the setbacks and the lengths the operator marked). Stored with the tally and returned in submission.vision_count. They are proposals kept for comparison: the tally's lines remain the confirmed sizes and lengths, and billing reads neither. A reading or a mark that names no proposed box is 400 parameter_invalid. See Lumber and panels.

28 November 2026: a board-count box that overhangs the photo no longer refuses the tally#

  • vision_count on POST /groups/{id}/tally: a detector's box at the picture's edge can start a pixel or two outside it (y: -0.004, x + width: 1.003). Coordinates from -0.05 to 1.05 in proposal.boxes, proposal.area, area and corrections.added (and a score up to 1.05) are now accepted and clipped to the photo; boxes are never dropped, so corrections.removed indices hold. Further out, or not a number, is still 400 parameter_invalid. Before, one such number refused the whole tally (Invalid vision_count.proposal.boxes.157.y: must be >= 0.).
  • The Swift and Kotlin SDKs clip the board counter's boxes to the photo before they are stored, and the Swift SDK puts every coordinate on the photo as a tally is sent. A tally refused for its count's own numbers is kept on the phone and sent again by itself; it is no longer handed back to the worker to fix.

28 November 2026: each log's detector confidence and photo reference; a Done button in the iOS scanner#

  • detection_confidence (new, optional, 0 to 1): the on-device log detector's score for the box the phone measured the log in. Sent by the SDKs as quality.detection_confidence on POST /scans/{id}/items; returned in the measurement's quality, on the item (from its newest device estimate, kept when the log is refined or overridden) and on GET /scans/{id}/items. Null where the client sent none. It is not an accuracy: see Accuracy and limits.
  • photo_ref (new, optional) on items and on GET /scans/{id}/items: { image_id, region }, the photo the measurement was made on and the log end's box in it. Read the image with GET /images/{id}; only the organisation that owns the log can (Read logs, volume and photos).
  • group.measured for a log group now carries logs (at most 1,000, each with item_id, client_id, tag, detection_confidence and photo_ref) and logs_has_more. Earlier events have neither.
  • The Swift and Kotlin SDKs: ScannedLog.confidence and ScannedLog.photoReference. The Swift scanner: ScannerOptions.exitButton (.done or .cancel, off by default) and TimbereyeScanner.onExit(_:).
  • New guide: Set up your organisation for the SDK.

28 November 2026: the segmentation outline, its state, and real segmentation in test mode#

  • outline on every log (new): GET /items/{id}, each log of GET /scans/{id}/items and item.updated carry the segmentation model's outline of the log end with its state: status (pending, ready, failed, not_available), reason, points (50 points normalised to the log's photo, when ready), measurement_id and segmenter. See A log's photo with its outline.
  • provenance.diameter_source on measurements (new): segmentation_outline, device, simulator, assigned or manual. GET /scans/{id}/items now returns each measurement's provenance (simulated, diameter_source, detector, segmenter), so a phone can tell practice values from the server's.
  • group.measured carries outlines: the group's logs counted by outline status, and how many are simulated.
  • Test mode segments real photos with the real model (changed): up to 50 logs per organisation per UTC day, never billed; past the cap the phone's values stand with outline.reason: test_limit_reached. The simulator now answers only scans made with POST /test/scans/simulate.
  • outline.reason for a failed outline also names photo_link_unsigned, photo_link_refused and segmentation_unavailable (new values) instead of the catch-all segmentation_error.

25 November 2026: shipping details on a group, printed on the packing list#

  • shipping on a group (new, optional): the parties (seller, buyer, consignee, notify_party), order, contract, booking and bill of lading numbers, carrier, vessel, voyage, ports of loading and discharge, place of delivery, incoterm, HS code, country of origin and a container's seal number. Set with POST /groups, POST /groups/open (when it creates the group) and PATCH /groups/{id} (each field sent replaces that field, null removes it, "shipping": null removes all), by a secret or restricted key or the console; a publishable key, a capture token or a phone signed in to the app gets 403. Returned on the group and in group.created and group.updated; not on capture_group. Timbereye prints them as given and does not issue, validate or file shipping documents. See Create groups.
  • The packing list PDF prints them in its header (the parties side by side, then the other fields that are set), a container takes its shipment's details for any field it does not have, and a shipment's summary and each container's heading show the container's seal. A group with none prints as before.
  • The TypeScript SDK's GroupShipping and GroupShippingInput types; the CLI's --shipping @file.json on groups create and groups update; the console's Edit shipping details on a group's page.

25 November 2026: docs corrections; one name for each sawlog mode#

  • The four sawlog capture modes have one name each, everywhere: Scale with QR tag (qr_scale), AR scale (ar_scale), Count QR tags (qr_count) and Count from a photo (photo_count), as the apps show them. The guide "Count tagged logs" is now "Count QR tags" (same address). No API change.
  • Plywood and particle board: their pages said there was nothing to test; the panel API, the test-mode simulator, the TypeScript SDK and the CLI work in test mode, as What is available says.
  • On a real iPhone: the Timbereye app signs in to the development environment and downloads the log detector. Scanning is not run on a phone.
  • The audit log is read in the console only; API keys get 403 session_required (Audit log).
  • REST API lists every ID prefix and the units the API uses.
  • GET /groups/{id}/packing_list?format=pdf returns the packing list as a PDF (application/pdf), made from the group's data on every request and never cached: your organisation's logo or name, the logs, bundles and units with their figures, a summary page and a section per container for a shipment, the totals per product. paper=a4|letter and detail=tally (each bundle's tally lines). Test mode marks it "Test mode". The TypeScript SDK's groups.packingList(id, { format: "pdf" }) resolves to { data, contentType, fileName }; the CLI has timbereye groups packing-list <id> --pdf <file> and packing-list get --pdf.
  • Logs on the packing list. New fields on packing_list: logs (each log as stored: tag, species, grade, length, small-end diameters, JAS volume, in_group), logs_has_more, totals_by_product.sawlog, weight (the group's weighbridge net weight) and weight on each entry of groups; each bundle row has lengths.
  • Your organisation's logo: PUT /account/logo, GET /account/logo, DELETE /account/logo, and logo on GET /account. PNG or JPEG, at most 256 KB. The SDK's account.logo, the CLI's timbereye account logo.

25 November 2026: a worker's phone may move a scanned log into its group, once the worker confirms#

  • allow_move (new, additive) on POST /scans/{id}/items items and POST /scans/{id}/observations observations. A phone signed in to the Timbereye app (device sign-in) that scans a tag whose log is in another group of the account is refused as before (409 item_move_not_allowed), now with error.details (new, additive): the tag, the log's group (id, name, external_ref, kind) and logs, every such log of the request. Sent again with allow_move: true, the log moves: it keeps its measurements and history, item.updated is sent, the group it left gets its next group.measured (log_removed), and the audit log records item.moved (new action). Never across accounts or modes (another account's or mode's tag is a new log there), never with a bare publishable key, and a log is billed once wherever it moves. Moves by secret and restricted keys and capture tokens now also send item.updated and the old group's group.measured, as the office's move does.
  • The apps: "This log is recorded in Container 9. Move it here?" with Move it here, Leave it out (drops only that log from the upload) and "Move all N here".

25 November 2026: a refused species has its own code; the apps have a way out of three more refusals#

  • 400 species_unknown (new, additive) for a species code that is not on the account's species list, or that the office archived after a phone chose it, on POST /groups, POST /groups/open, PATCH /groups/{id} (param defaults.species), POST /scans/{id}/items (items.N.species, or defaults.species for a log that takes the group's), POST /scans/{id}/observations and the item writes. It was 400 parameter_invalid with the same message. Not stored under the Idempotency-Key. A log sent again with another species may carry the original choice in its metadata (the apps send species_replaced).
  • A test-mode device sign-in never writes to the live account (now covered by a test): after the organisation goes live it may still upload what it captured, into test mode, and 403 organisation_now_live refuses it new groups and the list. The apps sign in again for live and keep the rest on the phone as "Made in test mode", never uploaded live.
  • The apps' new ways out: a group the office deleted after the phone started on it (404) goes to a new group with the same reference (POST /groups/open, existing: new) with everything still on the phone; a species taken off the list is replaced by another on the logs still on the phone.

24 November 2026: counted tags new to the account wait for a diameter class, not for ever#

  • 422 assignment_required is no longer stored under the Idempotency-Key. POST /scans/{id}/observations on a qr_count add with tags the account does not know, in a group whose spec has no diameter class, is refused as before; give the group a diameter class (PATCH /groups/{id} defaults.diameter_class_m) and send the same observations with the same key again: they go in. Earlier, the same key replayed the refusal. The apps say "New tags need a diameter class" on the group's screen and, after one choice, upload the count.

24 November 2026: the lumber board-end counter and the counting area#

  • GET /models/board-end-counter?platform=ios|android[&variant=m|s] offers the on-device lumber board-end counter (timbereye-board-end-counter 0.9.0) in the detector's shape plus tiling and count (the counting recipe). 503 model_unavailable where an environment has none. Its count is a proposal the operator corrects.
  • vision_count on POST /groups/{id}/tally takes proposed_pieces and area (both optional): the model's own count before correction, and the rectangle {x, y, width, height} (0 to 1) the pieces were counted in. They are kept and returned with the submission; billing is unchanged (on the tally's lines, never on a model's count).

24 November 2026: one product per group in the apps; logs need a species and a length up front#

  • holds on a group. New optional field on group, capture_group and capture_group_summary: what the Timbereye apps scan into the group (sawlog, lumber, panel), or null when nobody chose. Set it with POST /groups, POST /groups/open (on a group the call creates, and on the group it continues when that has none) or PATCH /groups/{id}; a phone may send holds without spec: write. Recorded, never enforced: any group still takes any product. The apps keep one product per group and show a group that holds more than one as it is.
  • 400 spec_required. A scanned log with no species or no length, in a group whose spec has neither, was refused as 400 parameter_invalid; it is now 400 spec_required, param naming the item's missing field (items.0.species). The refusal is not stored under the Idempotency-Key: set the group's spec and send the same batch again. The apps ask for the species and length before scanning logs, and a phone holding logs refused this way sets them in one step ("Set species and length") and uploads them.

24 November 2026: US board-foot rules; named board-foot methods#

  • Hardwood tallied board by board defaults to the NHLA board measure. A bundle that names no rule follows the NHLA board measure rule: each board's surface measure is its full width × its length in whole feet ÷ 12, rounded to the nearest whole foot, an exact half alternately up and down in tally order (the first in a bundle up); board feet are the bundle's surface measure × thickness, with two decimals at 5/4 and 6/4 (board_feet: 82.5). See Board-foot methods.
  • board_foot_method names a method. GET /account and PATCH /account/lumber take nhla_board_measure (the default), nominal_piece_tally, width_length_tally, exact or mill_half_foot_down. The old values are renamed: per_board is mill_half_foot_down and bundle_total is exact; an organisation that had stored one keeps its behaviour under the new name, and one that never chose gets the NHLA board measure.
  • Every bundle records its method. rule.method names the method a bundle's rule follows (null for a policy mix of your own). Bundles already tallied keep the rule and the figures they were computed with; the setting changes only bundles created afterwards. A request that names sm_round gets the rest of that method's policies.
  • lumber_bf_surface_measure defaults and a new policy. The rule's defaults are now width_step: none and sm_round: nearest_whole; bf_places (auto or 0) sets the decimals of the reported board feet. lumber_bf_nominal also takes boards tallied one by one (per_piece) for the nominal piece tally.

24 November 2026: a packing list is a document read from a group; one packing list for a shipment#

  • GET /groups/{id}/packing_list covers the groups inside the group. The bundles and units of the containers (or truck loads, stacks) inside a group are rows of its packing list too, at any depth, grouped by container. Each row has in_group ({ group_id, kind, name, external_ref }, or null for a row directly in the group), and groups gives each inner group's totals_by_product. The printable page heads each container's rows with its totals. So a shipment, a group of yours with its containers inside it, has one packing list. A group's own packing list is otherwise unchanged; group.measured is unchanged (its children gain in_group: null).
  • The packing list is a document, not a kind of group. The docs, the apps and the console put bundles and units into a container, truck load or stack and read the packing list from it; New group in the apps and the console no longer offers "Packing list". kind: packing_list stays valid: groups of that kind keep working and displaying.

24 November 2026: lumber and panel photos optional; organisation names need not be unique#

  • Photos of lumber bundles and panel units are optional by default. GET /account lumber.photos_required is now false unless your organisation chose true (PATCH /account/lumber); turn it on to require them. With it off, a bundle or unit created without photos requires none, a tally without a photo is accepted (no `409

photos_required), and its photos says so: required: [], waived: false, no_photo: true. photos.no_photo is now true whenever a group has no photo, not only when the requirement was waived. A group created with its own photos ({}` for the product's default kinds, or a list) keeps its requirement. The printable tally sheet has a Photos line ("No photo" when there is none).

  • Organisation names need not be unique. Any number of organisations may share a name, as on Stripe; an organisation is identified by its id. Sign-up and renaming no longer answer 409 name_taken.

24 November 2026: the log detector download#

  • GET /models/detector answers. It serves log detector 1.0.0 (id timbereye-log-detector, Apache-2.0, input 960 x 960) for platform=ios (a ZIP of the Core ML package) and platform=android (a .tflite file), with size_bytes, sha256 and a download URL that works for 15 minutes. variant=640 asks for the smaller fallback (timbereye-log-detector-640). New fields, all additive: variant, preprocessing (letterbox: scale to fit, centre on grey 114), thresholds (nms_confidence 0.25, nms_iou 0.45, recommended_confidence 0.5) and, on Android, layout. Where an environment does not hold the model file it answers 503 model_unavailable (it used to answer 501 not_implemented). Unit-tested; not run on a phone.
  • iPhone and Android SDKs: the detector downloads once with progress (DetectorStatus.downloading), is checked and kept; Timbereye.retryDetector() tries again after a failure; Timbereye.detectorModel gives its version and size. Frames are letterboxed for the model, and the centre-log confidence gate is 0.50 for this model (it was 0.55 for the earlier one). Each scan records models.detector as before. AR scale and Scale with QR tag turn on once the detector is on the phone; they are not run on phones.
  • Lumber on the iPhone: a tally retried later is the same request (a photo that uploads in between no longer makes the server answer 409 idempotency_key_reused); a bundle refused with product_not_enabled is opened again by itself after 15 minutes; a tally refused with photos_required is sent again once a photo is added.
  • TypeScript SDK and CLI: models.retrieveDetector({ platform, variant }), `timbereye models detector

--variant 640, and timbereye explain model_unavailable`.

24 November 2026: one group, several products#

  • A group can hold logs, lumber bundles and panel units together, the bundles and units as groups inside it, as the Timbereye app makes them. summary.products on every group gives each product's figures apart (sawlog, lumber, panel). summary.pieces is now given only while a group holds one product; a group holding several has no piece count across them.
  • group.measured for a group holding bundles or units: its next revision as each one is tallied or revised (reason: "child_tallied"), with products and children. Its pieces and volume stay its logs'. A group of logs only sends exactly what it did.
  • Packing lists of any group: rows have product and kind; totals_by_product; totals is the list's own product's, and null for a group without a product that holds both lumber and panels (in the TypeScript SDK, totals and totalsAlternative are now nullable: write list.totals?.m3).
  • GET /groups/{id}/images?include_children=true adds the bundles' and units' photos.
  • Retrying a refused tally or open: 409 photos_required and 403 product_not_enabled are no longer stored under the idempotency key, so the same request succeeds once the photo is there or the product is on.
  • Test mode: POST /test/packing_lists/simulate takes group_id (CLI --group) to put bundles or units into a group you have.

24 November 2026: group.measured for every product, SDK and CLI 0.1.1#

  • A lumber or panel group.measured has volume: null. It used to carry a sawlog volume block of zeros beside its real figures in totals, which a handler reading volume.m3 took as 0 m³. The same goes for a lumber or panel group's summary.volume in GET /groups/{id}. A handler that reads totals first, then volume (tally.totals?.m3 ?? tally.volume?.m3), is correct for every product. Sawlog figures are unchanged.
  • A sawlog group.measured has a photo count, as lumber's had: photos with count, by_kind and ids, the group's uploaded photos when the revision settled. The other fields are unchanged.
  • TypeScript SDK 0.1.1. new Timbereye() reads TIMBEREYE_API_URL (an explicit baseUrl wins), as the CLI does. webhooks.generateTestHeaders (and generateTestWebhookHeaders) signs a test delivery that verify and handler accept. The volume types are now nullable, so TypeScript flags a bare tally.volume.m3: write tally.volume?.m3. photos.byKind keeps the API's kind names as keys (load_face). See TypeScript SDK.
  • CLI 0.1.1. timbereye webhooks listen --forward-to <url> posts each of your account's events, signed, to a route on your machine: no tunnel, no public URL, no webhook endpoint. See CLI and Stay in sync.

24 November 2026: team invitations are emailed#

Inviting someone on the console's Team page (POST /team/invitations) now emails them the invitation: who invited them, to which organisation, the role in plain words and one link, valid for 7 days. Resending (POST /team/invitations/{id}/resend) emails a new link and the old one stops working.

  • Invitation gains emailed: true when that create or resend emailed it, false when it could not (mail not configured, as on a local stack), null in every other response.
  • New: GET /team/invitations/{id}/link (team.invitations.retrieveLink) returns a pending invitation with its current token, so an owner can send the link themselves. Nothing is emailed and the link does not change.
  • An organisation may send 20 invitations an hour, creates and resends together (429 rate_limited).

23 November 2026: groups have no end state#

A group is never closed; nothing marks it done. group.measured is sent when a group's tally settles (a submitted scan's logs are all refined, failed or estimate-only, and no other scan of the group is in progress), and again as the next revision whenever a later scan, a correction or a removal changes it. Handle it on group_id and revision and keep the highest. See Stay in sync.

  • A reference may have many groups (a container number comes back). POST /groups always creates a new group. POST /groups/open takes existing (auto, the default, continues the group last active within 12 hours; continue; new) and started_at. New: GET /groups/lookup (groups.lookup, timbereye groups lookup) shows the group a reference has and the suggested choice. See Create groups.
  • A lumber or panel tally is final when submitted; a re-tally or correction is its next revision.
  • Gone with the end state: the close call and its events, a group's status, the finish options and the SDKs' finish call. A publishable key's group_access is any (the default) or opened_only. On POST /test/scans/simulate, refine: true refines at once.

23 November 2026: photos and weights on any group; a log's photo#

  • New: phones may list a group's photos (GET /groups/{id}/images, also with kind), and anyone may remove a group photo (DELETE /images/{id}: soft, with removed_at and removed_by; a phone only its own). include_removed=true lists removed ones for your server. See Photos and weights.
  • New on weights: ticket_image_id (the ticket's photo), entered_by, entered_at; DELETE /groups/{id}/weight; the phone's capture_group carries weight.
  • New: expand[]=photo on logs (the photo of the log end its measurement was made on, with a download URL); measurement.diameter_lines now also for server-refined measurements (the lines its diameters were taken along, as stored); perimeter and diameter_lines on GET /scans/{id}/items.
  • TypeScript SDK: groups.clearWeight, images.remove. CLI: groups images list (was groups images), groups images add, groups images remove, groups clear-weight, groups set-weight --ticket-image.
  • The scanner's outlier warning says "…doesn't belong in this group" (was "container").

23 November 2026: board-foot rules checked against published tables#

Open volume-rule library only (@timbereye/volume-rules, unpublished); no API change. The server still computes jas only.

  • doyle, international_quarter and the new scribner_decimal_c are verified: each reproduces published USDA Forest Service or extension tables cell for cell (see the library README). Verified means the library reproduces the table; it is not a claim that a figure is accepted for settlement in any jurisdiction.
  • New: scribner_decimal_c, the Forest Service Scribner Decimal C table (FSH 2409.11 Appendix 2), 6-40 in and 4-20 ft. Use it for Scribner.
  • New: scribner_formula, the Bruce and Schumacher approximation scribner returned before, still unverified. scribner keeps returning exactly that and is deprecated.
  • Changed: international_quarter returns the published table (FSH 2409.11 Appendix 8, multiples of 5 board feet) instead of the formula rounded to a whole board foot, for example 95 instead of 97 for 12 in by 16 ft. It takes whole inches (6-40) and whole feet (4-20); other inputs are an error.
  • Changed: doyle rounds an exact half board foot up instead of to even (9 in by 8 ft is 13, not 12).
  • New: { rounding: "none" } on volume and volumeImperial returns the unrounded formula; scalingDiameterIn rounds a measured diameter the Forest Service way; error code unsupported_option.
  • CLI: volume calc no longer prints the UNVERIFIED warning for the three verified rules.

23 November 2026: forest products in the docs#

Docs only; no API change.

  • New: What is available says what each product type, SDK and tool does, and the price.
  • The general noun is now piece: a log for sawlogs, a board or a sheet for lumber and panels. The API object stays item. See the Glossary.
  • The menu is grouped by product type: Platform, Sawlogs, and Lumber and panels. No page changed address. Mill intake is now Mill log intake.

23 November 2026: search groups and places#

Additive.

  • GET /groups and GET /places take q: an id (grp_…, plc_…) finds that record; any other text is found, ignoring case, anywhere in the name or the external reference. It combines with the other filters and with pagination. The TypeScript SDK passes it as q in groups.list and places.list.

23 November 2026: deleting groups and places#

Additive.

  • DELETE /groups/{id} deletes a group that never held anything; anything else is refused with 409 group_not_empty or 409 group_billed, and the group stays as the record. In test mode, cascade=true deletes a group with everything in it. See Create groups.
  • DELETE /places/{id} deletes a place no group uses as its origin (409 place_in_use); in test mode, detach=true clears their origin first.
  • New events group.deleted and place.deleted, and audit log actions of the same names.
  • TypeScript SDK: groups.delete(id, { cascade }) and places.delete(id, { detach }). CLI: groups delete and places delete.

23 November 2026: print tags#

Additive.

  • Tag batches and label templates: POST /tag_batches, GET /tag_batches/{id}/tags, GET /tag_batches/{id}/print_file (ZPL for Zebra printers, or PDF) and /label_templates. A tag's payload is a UUID whose last five characters are the short id printed on it. The code always prints at 62 mm. Free. Restricted keys need items:read or items:write. The TypeScript SDK has tagBatches.* and labelTemplates.*; the CLI has timbereye tags. See Print tags.
  • Batches and templates belong to the organisation, not to a mode: test and live keys see the same ones, and tag_batch, label_template and print_file have no livemode. item_id, group_id and seen_count follow the key's mode.

23 November 2026: keys can be shown again, and your keys are always there#

Additive.

  • Every organisation has a default secret key and publishable key, in test mode from sign-up and in live mode from the moment live mode is on. Home shows them, ready to copy; nobody has to create a key first. ApiKey gains is_default. Keys made earlier keep working and stay listed.
  • Secret, restricted and publishable keys, test and live, can be revealed and copied in the console at any time: by owners and developers, and a live secret key by owners only. Live secret and restricted keys made before this change cannot be shown (they keep working). See Showing a key again.
  • ApiKey gains last4, revealable and publishable_key (a publishable key in full, in the list, for owners and developers). New dashboard-only POST /api_keys/{id}/reveal; the TypeScript SDK has apiKeys.reveal. New audit action api_key.revealed.
  • PATCH /api_keys/{id} renames a secret or restricted key (name only).

23 November 2026: going live and billing without writing to us#

Additive.

  • An owner turns live mode on in the console under Billing: accept the terms, add a card. Live usage is invoiced monthly and charged to the card. See Pricing and billing.
  • GET /account gains live_writes and, for secret and restricted keys, billing (this month's refined m³ and estimated charge).
  • New 402 errors on the calls that start new live work: payment_overdue and spend_cap_reached. Reads and scans already started are never refused for billing.
  • New dashboard-only routes under /billing; the TypeScript SDK has billing.*. There is no CLI command for them.

22 November 2026: code samples in tabs, checked in tests#

Docs only; the API did not change.

  • Code that runs on the phone is shown in Swift and Kotlin; code that runs on your server in TypeScript, curl and the CLI (where a command exists), each followed by the response. Your choice of language is remembered across blocks and pages, on the docs and on the home page.
  • The API reference gains a CLI tab for every operation a command makes, and says which calls the phone SDKs make for you.
  • Every TypeScript sample is typechecked against the SDK and every CLI line is parsed by the CLI in the docs tests, so a renamed method, field or flag fails the build.

22 November 2026: the Swift front door#

  • import Timbereye, Timbereye.configure(publishableKey:) and the drop-in TimbereyeScanner(groupId:) or TimbereyeScanner(reference:kind:name:) are in the Swift SDK; tested off the phone, not run on one, not published. See Scan in your app.

22 November 2026: publishable keys, open by reference, group.created and group.measured#

  • Publishable keys (te_test_pk_…, te_live_pk_…), created in the console, go in your own app. They authenticate directly, capture only, with daily limits, group_access, spec and optional app ids; every request sends Timbereye-Installation-Id. See Keys.
  • Open by reference. POST /groups/open (timbereye.groups.open, timbereye groups open) returns a group for a kind and reference, or creates it. See Create groups.
  • group.created is sent when a group is created through the API, with data.created_by. group.measured is sent with the group's tally. Stay in sync now leads with a group.measured handler and holds the full event catalogue; the separate Events page is folded into it.
  • The TypeScript client reads TIMBEREYE_SECRET_KEY (and TIMBEREYE_WEBHOOK_SECRET) from the environment with new Timbereye(), and timbereye.webhooks.verify(req) takes the request.
  • The CLI reads TIMBEREYE_SECRET_KEY, the same variable as the SDK. The older TIMBEREYE_API_KEY is still read when TIMBEREYE_SECRET_KEY is not set.

22 November 2026: docs restructured around Create → Scan → Sync#

Docs only; the API did not change.

  • The docs follow the three steps of an integration: your backend creates a group for its own record, a worker scans into it, and your backend syncs from events. New pages: Create groups, Scan with the Timbereye app, Scan in your app, Stay in sync, Read logs, volume and photos, Keys, Going live and the REST API overview, plus use-case guides.
  • Renamed: Webhooks is now Stay in sync, Concepts is now Read logs, volume and photos, SDKs is now TypeScript SDK (the Swift and Kotlin material moved to Scan in your app), Authentication is now Keys, Groups and weights is now Create groups. Integration patterns was folded into How an integration works. The old URLs redirect.
  • The Quickstart runs all three steps in test mode with the simulator, and ends with your own record updated.
  • Vocabulary: a group and its logs are the two nouns; the API's item is a log; a scan is the record of one sitting of scanning. The reference recommended for a group is your own unique record id, with the container number as the group's name.
  • Stay in sync has a catalogue of every event.

v1#

The first version of the API.

API#

  • REST API v1 at https://api.timbereye.com/v1, described by an OpenAPI 3.1 document under the Apache-2.0 licence.
  • Resources: groups, items, measurements, scans, images, places, species, events, webhook endpoints, capture tokens, usage, volume rules, the detector model and the account.
  • Bearer authentication with secret keys, restricted keys with scopes, and capture tokens. Test and live accounts are separate.
  • Idempotency keys, cursor pagination, a Request-Id on every response, and per-account rate limits.
  • Standard Webhooks signatures and the event types listed in the OpenAPI document.
  • The jas volume rule.
  • Events group.created (a group was created through the API, with data.created_by, the credential that created it) and group.measured (the group's tally). See Stay in sync.
  • Publishable keys (te_live_pk_..., te_test_pk_...): safe to embed in a mobile app, capture only, with limits (limits), an optional allowed_app_ids list, group_access and spec, and the required header Timbereye-Installation-Id. A publishable key captures into any group whose id the app presents and may GET and PATCH that group (defaults only), as a capture_group. Manage them with POST /api_keys (kind: "publishable"), PATCH /api_keys/{id} and POST /api_keys/{id}/void_records. New errors: publishable_key_not_allowed, installation_id_required, app_not_allowed, daily_cap_reached, and item_move_not_allowed.
  • POST /groups/open gets or creates a group for a kind and external_ref (and sets name). GET /groups?external_ref= trims and ignores case.
  • GET /groups filters by your own metadata (metadata[booking]=B123, up to five keys), by origin_place_id and by a created_after / created_before range.
  • Test mode has a simulator: POST /test/scans/simulate creates a scan of synthetic, tagged logs and POST /test/refinements/run resolves the pending refinements at once. Simulated measurements carry provenance.simulated: true. A live key is refused with 403 test_mode_only; nothing simulated exists in a live account and nothing simulated is billed.

Mobile capture contract#

Additive changes that make the offline queue safe to sync, specified in the sync protocol:

  • The order of a capture is create scan, group images, item batches, item images, submit. An item image needs its item, so item images follow the batches.
  • client_id is a durable identity. GET /scans?client_id= is open to capture tokens (within their groups). Creating a scan or image with an existing client_id returns the existing record when its identity fields match and is 409 client_id_conflict when they do not. Items and measurements are idempotent by scan and client_id, observations by tag.
  • POST /images/{id}/session opens a new upload session, and GET /images/{id} reports upload_session. upload_incomplete and upload_hash_mismatch are repairable: new session, upload again, complete under a new Idempotency-Key.
  • POST /scans/{id}/images (multipart) carries sha256, width, height, location, region, source_image_id, item_id or item_client_id, client_id, captured_at and detections.
  • Submitting a scan again returns it (200); submit takes an optional ended_at.
  • POST /scans/{id}/items returns one entry per input, in order, with client_id and created.
  • ProvenanceInput (every field optional, no actor), app_version on scan create, tag_corners, diameter_lines and measured_rect on measurements, perimeter of three or more points from a device, documented length.source values and Quality.rejection_gates keys, sightings on observations.
  • GET /models/detector takes platform (ios or android); its description says what download_url serves.
  • In local development the upload session URI is an http:// endpoint of the API itself.

Routes that return 501#

  • GET /models/detector

The item write routes (items/add, items/remove, bulk_update, PATCH /items/{id} and DELETE /items/{id}) are built.

Not built#

  • Server-side photo counting. photo_count scans report the number of detections supplied with the photos, end at estimated and never send scan.refined.
  • A distributed Capture app. Reference apps for iOS and Android are in the repository, built from source.
  • Proof on phones of the Swift and Kotlin camera screens and device layers. They exist and are tested off the phone.
  • The single Timbereye module and the drop-in TimbereyeScanner for Android. (Swift: merged on 22 November 2026, see above; not run on a phone.)
  • Hosted image storage in the cloud environment. Uploads there answer 503 service_unavailable.
  • An email or an event when a webhook endpoint is disabled. Poll GET /webhook_endpoints for status.
  • Test-mode sample images.

Consistency pass#

  • unit_ambiguous, group_cycle and group_depth_exceeded answer 422. New 422 codes: weight_inconsistent and area_ha_not_allowed.
  • entered.net on a group weight is null when net was derived.
  • A group summary counts assigned items apart (assigned_count) and measured excludes them.
  • The origin export has empty and unattributed, and counts only places you can see. An empty export is never valid.
  • Places take a stated area_ha for a Point or no geometry.
  • The response headers RateLimit-Limit, RateLimit-Remaining and Idempotent-Replayed are documented.

SDKs#

  • TypeScript SDK 0.1.0, unpublished, with ES module and CommonJS builds.
  • TypeScript SDK: new Timbereye() reads TIMBEREYE_SECRET_KEY (and TIMBEREYE_WEBHOOK_SECRET for webhooks) from the environment; webhooks.verify(req) takes the request itself (a Fetch Request, or a Node request with its raw body) and refuses an already-parsed body with raw_body_required.
  • TypeScript SDK and CLI: groups.open / groups open, and apiKeys.update and apiKeys.voidRecords.
  • Swift capture engine and offline journal.
  • Kotlin capture engine and offline journal, for the JVM.
  • Swift device layer (TimbereyeCaptureKit) and SwiftUI camera screens (TimbereyeCaptureUI); Kotlin Android layer (CameraX, ML Kit, WorkManager, location) and Compose screens; reference Capture apps for iOS and Android. Tested off the phone, not proven on phones.
  • Volume-rule library with JAS, Smalian, Huber, Newton, and unverified Doyle, International 1/4-inch and Scribner rules.
  • TypeScript SDK: list results keep paging when returned from an async function, onResponse exposes response headers (request id, Idempotent-Replayed, rate limit), and te.testMode calls the simulator.

CLI#

  • groups describe, groups find, groups diff, groups reconcile, items find and items describe answer a question about a load, container or log in one call.
  • Every command that changes data takes --dry-run, sends an idempotency key it prints, and prints what changed; destructive or bulk commands need --yes without a terminal. Results carry livemode.
  • --fields, --summary and --output json|ndjson|table|csv.
  • import items (tally CSV, validated first, resumable) and export group (csv, json, geojson).
  • volume calc, volume rules and units convert work offline. explain, open and completion.
  • simulate scan and simulate refine (test mode only), and mcp serve.

Docs#

  • First version of these developer docs.
  • The first quickstart started from the scanner in your app and the tally in your records, then ran the same loop with the simulator. A glossary explains the terms.