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#
volumeon every item (new, optional):{ rule, rule_version, m3 }, the log's JAS volume from its effective measurement and length, the samem3asGET /items/{id}/volume; null while the log has no measurement. A page ofGET /groups/{id}/itemsnow gives every log's volume with no call per log.created_afterandcreated_beforeonGET /events(new, optional, ISO 8601;created_afterinclusive): 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'slogsandphotos,webhooks listen --forward-to).events.list({ createdAfter }),item.volume, andtimbereye events list --created-after.
29 November 2026: measured board sizes and trimbacks with a lumber tally#
vision_count.sizesandvision_count.trimbacks(new, optional,method: modelwith aproposal) onPOST /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 insubmission.vision_count. They are proposals kept for comparison: the tally'slinesremain the confirmed sizes and lengths, and billing reads neither. A reading or a mark that names no proposed box is 400parameter_invalid. See Lumber and panels.
28 November 2026: a board-count box that overhangs the photo no longer refuses the tally#
vision_countonPOST /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 inproposal.boxes,proposal.area,areaandcorrections.added(and ascoreup to 1.05) are now accepted and clipped to the photo; boxes are never dropped, socorrections.removedindices hold. Further out, or not a number, is still 400parameter_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 asquality.detection_confidenceonPOST /scans/{id}/items; returned in the measurement'squality, on the item (from its newest device estimate, kept when the log is refined or overridden) and onGET /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 onGET /scans/{id}/items:{ image_id, region }, the photo the measurement was made on and the log end's box in it. Read the image withGET /images/{id}; only the organisation that owns the log can (Read logs, volume and photos).group.measuredfor a log group now carrieslogs(at most 1,000, each withitem_id,client_id,tag,detection_confidenceandphoto_ref) andlogs_has_more. Earlier events have neither.- The Swift and Kotlin SDKs:
ScannedLog.confidenceandScannedLog.photoReference. The Swift scanner:ScannerOptions.exitButton(.doneor.cancel, off by default) andTimbereyeScanner.onExit(_:). - New guide: Set up your organisation for the SDK.
28 November 2026: the segmentation outline, its state, and real segmentation in test mode#
outlineon every log (new):GET /items/{id}, each log ofGET /scans/{id}/itemsanditem.updatedcarry 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, whenready),measurement_idandsegmenter. See A log's photo with its outline.provenance.diameter_sourceon measurements (new):segmentation_outline,device,simulator,assignedormanual.GET /scans/{id}/itemsnow returns each measurement'sprovenance(simulated,diameter_source,detector,segmenter), so a phone can tell practice values from the server's.group.measuredcarriesoutlines: 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 withPOST /test/scans/simulate. outline.reasonfor a failed outline also namesphoto_link_unsigned,photo_link_refusedandsegmentation_unavailable(new values) instead of the catch-allsegmentation_error.
25 November 2026: shipping details on a group, printed on the packing list#
shippingon 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 withPOST /groups,POST /groups/open(when it creates the group) andPATCH /groups/{id}(each field sent replaces that field,nullremoves it,"shipping": nullremoves all), by a secret or restricted key or the console; a publishable key, a capture token or a phone signed in to the app gets403. Returned on the group and ingroup.createdandgroup.updated; not oncapture_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
GroupShippingandGroupShippingInputtypes; the CLI's--shipping @file.jsonongroups createandgroups 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.
25 November 2026: the packing list as a PDF, logs on the packing list, your logo#
GET /groups/{id}/packing_list?format=pdfreturns 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|letteranddetail=tally(each bundle's tally lines). Test mode marks it "Test mode". The TypeScript SDK'sgroups.packingList(id, { format: "pdf" })resolves to{ data, contentType, fileName }; the CLI hastimbereye groups packing-list <id> --pdf <file>andpacking-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) andweighton each entry ofgroups; each bundle row haslengths. - Your organisation's logo:
PUT /account/logo,GET /account/logo,DELETE /account/logo, andlogoonGET /account. PNG or JPEG, at most 256 KB. The SDK'saccount.logo, the CLI'stimbereye 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) onPOST /scans/{id}/itemsitems andPOST /scans/{id}/observationsobservations. 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 witherror.details(new, additive): thetag, the log'sgroup(id,name,external_ref,kind) andlogs, every such log of the request. Sent again withallow_move: true, the log moves: it keeps its measurements and history,item.updatedis sent, the group it left gets its nextgroup.measured(log_removed), and the audit log recordsitem.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 senditem.updatedand the old group'sgroup.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, onPOST /groups,POST /groups/open,PATCH /groups/{id}(paramdefaults.species),POST /scans/{id}/items(items.N.species, ordefaults.speciesfor a log that takes the group's),POST /scans/{id}/observationsand the item writes. It was400 parameter_invalidwith the same message. Not stored under theIdempotency-Key. A log sent again with another species may carry the original choice in itsmetadata(the apps sendspecies_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_liverefuses 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_requiredis no longer stored under theIdempotency-Key.POST /scans/{id}/observationson aqr_countadd 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-counter0.9.0) in the detector's shape plustilingandcount(the counting recipe). 503model_unavailablewhere an environment has none. Its count is a proposal the operator corrects.vision_countonPOST /groups/{id}/tallytakesproposed_piecesandarea(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#
holdson a group. New optional field ongroup,capture_groupandcapture_group_summary: what the Timbereye apps scan into the group (sawlog,lumber,panel), ornullwhen nobody chose. Set it withPOST /groups,POST /groups/open(on a group the call creates, and on the group it continues when that has none) orPATCH /groups/{id}; a phone may sendholdswithoutspec: 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 as400 parameter_invalid; it is now400 spec_required,paramnaming the item's missing field (items.0.species). The refusal is not stored under theIdempotency-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_methodnames a method.GET /accountandPATCH /account/lumbertakenhla_board_measure(the default),nominal_piece_tally,width_length_tally,exactormill_half_foot_down. The old values are renamed:per_boardismill_half_foot_downandbundle_totalisexact; 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.methodnames 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 namessm_roundgets the rest of that method's policies. lumber_bf_surface_measuredefaults and a new policy. The rule's defaults are nowwidth_step: noneandsm_round: nearest_whole;bf_places(autoor0) sets the decimals of the reported board feet.lumber_bf_nominalalso 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_listcovers 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 hasin_group({ group_id, kind, name, external_ref }, ornullfor a row directly in the group), andgroupsgives each inner group'stotals_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.measuredis unchanged (itschildrengainin_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_liststays 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 /accountlumber.photos_requiredis nowfalseunless your organisation chosetrue(PATCH /account/lumber); turn it on to require them. With it off, a bundle or unit created withoutphotosrequires 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/detectoranswers. It serves log detector 1.0.0 (idtimbereye-log-detector, Apache-2.0, input 960 x 960) forplatform=ios(a ZIP of the Core ML package) andplatform=android(a.tflitefile), withsize_bytes,sha256and a download URL that works for 15 minutes.variant=640asks for the smaller fallback (timbereye-log-detector-640). New fields, all additive:variant,preprocessing(letterbox: scale to fit, centre on grey 114),thresholds(nms_confidence0.25,nms_iou0.45,recommended_confidence0.5) and, on Android,layout. Where an environment does not hold the model file it answers503 model_unavailable(it used to answer501 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.detectorModelgives 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 recordsmodels.detectoras 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 withproduct_not_enabledis opened again by itself after 15 minutes; a tally refused withphotos_requiredis 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.productson every group gives each product's figures apart (sawlog,lumber,panel).summary.piecesis now given only while a group holds one product; a group holding several has no piece count across them. group.measuredfor a group holding bundles or units: its next revision as each one is tallied or revised (reason: "child_tallied"), withproductsandchildren. Itspiecesandvolumestay its logs'. A group of logs only sends exactly what it did.- Packing lists of any group: rows have
productandkind;totals_by_product;totalsis the list's own product's, andnullfor a group without a product that holds both lumber and panels (in the TypeScript SDK,totalsandtotalsAlternativeare now nullable: writelist.totals?.m3). GET /groups/{id}/images?include_children=trueadds the bundles' and units' photos.- Retrying a refused tally or open: 409
photos_requiredand 403product_not_enabledare 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/simulatetakesgroup_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.measuredhasvolume: null. It used to carry a sawlog volume block of zeros beside its real figures intotals, which a handler readingvolume.m3took as 0 m³. The same goes for a lumber or panel group'ssummary.volumeinGET /groups/{id}. A handler that readstotalsfirst, thenvolume(tally.totals?.m3 ?? tally.volume?.m3), is correct for every product. Sawlog figures are unchanged. - A sawlog
group.measuredhas a photo count, as lumber's had:photoswithcount,by_kindandids, the group's uploaded photos when the revision settled. The other fields are unchanged. - TypeScript SDK 0.1.1.
new Timbereye()readsTIMBEREYE_API_URL(an explicitbaseUrlwins), as the CLI does.webhooks.generateTestHeaders(andgenerateTestWebhookHeaders) signs a test delivery thatverifyandhandleraccept. Thevolumetypes are now nullable, so TypeScript flags a baretally.volume.m3: writetally.volume?.m3.photos.byKindkeeps 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.
Invitationgainsemailed:truewhen that create or resend emailed it,falsewhen it could not (mail not configured, as on a local stack),nullin every other response.- New:
GET /team/invitations/{id}/link(team.invitations.retrieveLink) returns a pending invitation with its currenttoken, 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 /groupsalways creates a new group.POST /groups/opentakesexisting(auto, the default, continues the group last active within 12 hours;continue;new) andstarted_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, thefinishoptions and the SDKs' finish call. A publishable key'sgroup_accessisany(the default) oropened_only. OnPOST /test/scans/simulate,refine: truerefines 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 withkind), and anyone may remove a group photo (DELETE /images/{id}: soft, withremoved_atandremoved_by; a phone only its own).include_removed=truelists 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'scapture_groupcarriesweight. - New:
expand[]=photoon logs (the photo of the log end its measurement was made on, with a download URL);measurement.diameter_linesnow also for server-refined measurements (the lines its diameters were taken along, as stored);perimeteranddiameter_linesonGET /scans/{id}/items. - TypeScript SDK:
groups.clearWeight,images.remove. CLI:groups images list(wasgroups 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_quarterand the newscribner_decimal_care 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 approximationscribnerreturned before, still unverified.scribnerkeeps returning exactly that and is deprecated. - Changed:
international_quarterreturns 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:
doylerounds an exact half board foot up instead of to even (9 in by 8 ft is 13, not 12). - New:
{ rounding: "none" }onvolumeandvolumeImperialreturns the unrounded formula;scalingDiameterInrounds a measured diameter the Forest Service way; error codeunsupported_option. - CLI:
volume calcno longer prints theUNVERIFIEDwarning 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 /groupsandGET /placestakeq: 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 asqingroups.listandplaces.list.
23 November 2026: deleting groups and places#
Additive.
DELETE /groups/{id}deletes a group that never held anything; anything else is refused with409 group_not_emptyor409 group_billed, and the group stays as the record. In test mode,cascade=truedeletes 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=trueclears their origin first.- New events
group.deletedandplace.deleted, and audit log actions of the same names. - TypeScript SDK:
groups.delete(id, { cascade })andplaces.delete(id, { detach }). CLI:groups deleteandplaces 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 needitems:readoritems:write. The TypeScript SDK hastagBatches.*andlabelTemplates.*; the CLI hastimbereye 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_templateandprint_filehave nolivemode.item_id,group_idandseen_countfollow 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.
ApiKeygainsis_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.
ApiKeygainslast4,revealableandpublishable_key(a publishable key in full, in the list, for owners and developers). New dashboard-onlyPOST /api_keys/{id}/reveal; the TypeScript SDK hasapiKeys.reveal. New audit actionapi_key.revealed.PATCH /api_keys/{id}renames a secret or restricted key (nameonly).
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 /accountgainslive_writesand, for secret and restricted keys,billing(this month's refined m³ and estimated charge).- New
402errors on the calls that start new live work:payment_overdueandspend_cap_reached. Reads and scans already started are never refused for billing. - New dashboard-only routes under
/billing; the TypeScript SDK hasbilling.*. 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-inTimbereyeScanner(groupId:)orTimbereyeScanner(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,specand optional app ids; every request sendsTimbereye-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.createdis sent when a group is created through the API, withdata.created_by.group.measuredis sent with the group's tally. Stay in sync now leads with agroup.measuredhandler and holds the full event catalogue; the separate Events page is folded into it.- The TypeScript client reads
TIMBEREYE_SECRET_KEY(andTIMBEREYE_WEBHOOK_SECRET) from the environment withnew Timbereye(), andtimbereye.webhooks.verify(req)takes the request. - The CLI reads
TIMBEREYE_SECRET_KEY, the same variable as the SDK. The olderTIMBEREYE_API_KEYis still read whenTIMBEREYE_SECRET_KEYis 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
itemis 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-Idon every response, and per-account rate limits. - Standard Webhooks signatures and the event types listed in the OpenAPI document.
- The
jasvolume rule. - Events
group.created(a group was created through the API, withdata.created_by, the credential that created it) andgroup.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 optionalallowed_app_idslist,group_accessandspec, and the required headerTimbereye-Installation-Id. A publishable key captures into any group whose id the app presents and mayGETandPATCHthat group (defaultsonly), as acapture_group. Manage them withPOST /api_keys(kind: "publishable"),PATCH /api_keys/{id}andPOST /api_keys/{id}/void_records. New errors:publishable_key_not_allowed,installation_id_required,app_not_allowed,daily_cap_reached, anditem_move_not_allowed. POST /groups/opengets or creates a group for akindandexternal_ref(and setsname).GET /groups?external_ref=trims and ignores case.GET /groupsfilters by your own metadata (metadata[booking]=B123, up to five keys), byorigin_place_idand by acreated_after/created_beforerange.- Test mode has a simulator:
POST /test/scans/simulatecreates a scan of synthetic, tagged logs andPOST /test/refinements/runresolves the pending refinements at once. Simulated measurements carryprovenance.simulated: true. A live key is refused with403 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_idis a durable identity.GET /scans?client_id=is open to capture tokens (within their groups). Creating a scan or image with an existingclient_idreturns the existing record when its identity fields match and is409 client_id_conflictwhen they do not. Items and measurements are idempotent by scan andclient_id, observations by tag.POST /images/{id}/sessionopens a new upload session, andGET /images/{id}reportsupload_session.upload_incompleteandupload_hash_mismatchare repairable: new session, upload again, complete under a newIdempotency-Key.POST /scans/{id}/images(multipart) carriessha256,width,height,location,region,source_image_id,item_idoritem_client_id,client_id,captured_atanddetections.- Submitting a scan again returns it (200); submit takes an optional
ended_at. POST /scans/{id}/itemsreturns one entry per input, in order, withclient_idandcreated.ProvenanceInput(every field optional, noactor),app_versionon scan create,tag_corners,diameter_linesandmeasured_recton measurements,perimeterof three or more points from a device, documentedlength.sourcevalues andQuality.rejection_gateskeys,sightingson observations.GET /models/detectortakesplatform(iosorandroid); its description says whatdownload_urlserves.- 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_countscans report the number of detections supplied with the photos, end atestimatedand never sendscan.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
Timbereyemodule and the drop-inTimbereyeScannerfor 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_endpointsforstatus. - Test-mode sample images.
Consistency pass#
unit_ambiguous,group_cycleandgroup_depth_exceededanswer 422. New 422 codes:weight_inconsistentandarea_ha_not_allowed.entered.neton a group weight is null when net was derived.- A group summary counts
assigneditems apart (assigned_count) andmeasuredexcludes them. - The origin export has
emptyandunattributed, and counts only places you can see. An empty export is never valid. - Places take a stated
area_hafor a Point or no geometry. - The response headers
RateLimit-Limit,RateLimit-RemainingandIdempotent-Replayedare documented.
SDKs#
- TypeScript SDK 0.1.0, unpublished, with ES module and CommonJS builds.
- TypeScript SDK:
new Timbereye()readsTIMBEREYE_SECRET_KEY(andTIMBEREYE_WEBHOOK_SECRETfor webhooks) from the environment;webhooks.verify(req)takes the request itself (a FetchRequest, or a Node request with its raw body) and refuses an already-parsed body withraw_body_required. - TypeScript SDK and CLI:
groups.open/groups open, andapiKeys.updateandapiKeys.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
asyncfunction,onResponseexposes response headers (request id,Idempotent-Replayed, rate limit), andte.testModecalls the simulator.
CLI#
groups describe,groups find,groups diff,groups reconcile,items findanditems describeanswer 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--yeswithout a terminal. Results carrylivemode. --fields,--summaryand--output json|ndjson|table|csv.import items(tally CSV, validated first, resumable) andexport group(csv, json, geojson).volume calc,volume rulesandunits convertwork offline.explain,openandcompletion.simulate scanandsimulate refine(test mode only), andmcp 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.