Logs (items)
Individual pieces: logs, boards and sheets.
The item object#
One physical log. Untagged logs have tag: null. Fields you can request through expand[]: group, scan, photo.
| Field | Description |
|---|---|
idstring | Unique identifier, prefixed itm_. |
objectitem | String representing the object type. Always item. |
livemodeboolean | true for objects in the live account, false for objects in the test account. Test and live data never mix. |
client_idstring, nullable | Caller-chosen identifier, unique per account and resource type. The SDKs set it so records created offline reconcile when they sync. Retrying a create with the same client_id returns the existing record instead of a duplicate. |
typelog | Always log in v1. |
group_idstring, nullable | Current group, or null when detached. |
tagTag, nullable | A physical tag on the log end. Payloads are unique within your account among active items. |
tag.payloadstring | The text encoded in the QR tag. |
tag.symbologyqr | Always qr in v1. |
tag.side_mmnumber, nullable | Printed side length of the QR tag in millimetres. Used as the scale reference. |
speciesstring, nullable | Species code from your catalogue. |
lengthItemLength, nullable | Log length. |
length.value_mnumber | Length in metres. |
length.sourceenum (operator, group_default, bulk, measured) | Where the length came from. operator is a manual edit, group_default the group spec, bulk a bulk update, measured the capture. |
length.enteredLengthEntered, nullable | The length exactly as it was entered. Returned beside the canonical metre value so a value entered in feet reads back as written. |
gradestring, nullable | Grade from your catalogue. |
weightItemWeight, nullable | Weight of one item. |
weight.value_kgnumber | Weight in kg. |
weight.sourceallocated \| measured | allocated is the item's share of the group's net weight, in proportion to its volume. measured means the item was weighed individually and is excluded from allocation. |
measurementMeasurement, nullable | The effective measurement. |
detection_confidencenumber, nullable | From the log's newest device estimate that carries one (kept when the log is refined or overridden): The log detector's own score, 0 to 1, for the box the phone measured the log in (the centre-log box of its last detection before measuring). How sure the detector was that the box is a log end: use it to rank logs or flag low ones for a look. It is not an accuracy of the diameters, not the probability that the measurement is right, and not comparable across detector versions (provenance.detector). Null when the phone sent none (counted tags, logs from app builds that did not send it, other clients). |
photo_refPhotoRef, nullable | The photo the effective measurement was made on and where the log is in it. Null when it has no photo. |
photo_ref.image_idstring | The item image (log_end) the measurement was made on. |
photo_ref.regionany | The log end's box in the image, normalised, origin top left, in the image as stored (the space of perimeter and diameter_lines): the bounding box of the outline when there is one, else of the two diameter lines. |
refinementobject, nullable | Server refinement state; null when no refinement was ever queued for the item (legacy items, tag-only items). |
refinement.statusenum (queued, running, succeeded, failed) | State of server refinement for this item. After five failed attempts the status is failed, the device estimate stays effective, and item.refinement_failed is emitted. |
outlineOutline | The log end's outline traced by the segmentation model on its photo, with its state. Kept when an office edit follows the refinement. |
outline.statuspending \| ready \| failed \| not_available | ready: points holds the outline. pending: the photo is awaited or the segmentation is queued or running (usually under two minutes after upload). failed: no outline, for good; the phone's values stand. not_available: this log is not measured from a photo (assigned or entered values), or its values are the simulator's. |
outline.reasonawaiting_photo \| segmentation_queued \| segmentation_running \| test_mode_practice \| test_limit_reached \| test_segmentation_off \| not_measured_from_photo \| segmentation_not_configured \| no_outline_found \| photo_unavailable \| photo_link_unsigned \| photo_link_refused \| segmentation_unavailable \| log_removed \| segmentation_error \| null, nullable | Why it is not ready; null when it is. test_limit_reached: the organisation's test-mode segmentations for the day are used up (50 a day by default), so the phone's values stand. test_mode_practice: values from the simulator, which traces nothing. photo_link_unsigned: the server could not sign a read link to the photo. photo_link_refused: the segmentation service refused the photo's link. segmentation_unavailable: the segmentation service was busy or unreachable on every attempt. New reasons may be added: treat an unknown one as segmentation_error. |
outline.sourcesegmentation \| null, nullable | segmentation when ready. |
outline.pointsPerimeter, nullable | The outline (50 points), when ready. |
outline.measurement_idstring, nullable | The server_refined measurement the outline belongs to. |
outline.segmenterModelRef, nullable | A model and its version. Recorded on every measurement as id@version. |
statusenum (active, removed) | removed items are kept for the record but excluded from group counts and volume. |
scan_idstring, nullable | Scan that created the item. Null for items created before the platform. |
originobject, nullable | Where the log was harvested, traced through its load: the origin of the first group it was measured into (or of a group enclosing that one), else of the group it is in now (or one enclosing it). Changes when a load is tied to a tract later. |
origin.place_idstring | The tract. |
origin.group_idstring | The group whose origin this is (usually the log's load). |
measuredobject, nullable | Where and when the log's scan was taken, as the device sent it, and the known place it lies inside (a yard, a landing). Not the origin: wood is often measured far from where it grew. |
measured.scan_idstring | |
measured.locationLocation, nullable | A device location fix. The API never infers a location; the field is null when permission was denied. |
measured.place_idstring, nullable | |
volumeItemVolume, nullable | The log's volume under the JAS rule (v1's only log rule), from its effective measurement and length: the m3 that GET /items/{id}/volume returns, so a list of items needs no call per log. Null while the log has no measurement. |
volume.rulestring | Rule applied, one of the id values of GET /volume_rules. |
volume.rule_versionstring | Rule version. |
volume.m3number | Volume in cubic metres, rounded as the rule rounds (JAS, 0.001). |
metadataMetadata | Free-form string map for your own data (an ERP booking number, a yard row). At most 50 keys; keys up to 40 characters; values up to 500 characters. Use this instead of asking for customer-specific fields. On update, supplied keys are merged into the existing map and a key set to an empty string is removed. |
created_atstring | Creation time. |
groupGroup, nullable | Present only when expand[]=group was requested. |
scanScan, nullable | Present only when expand[]=scan was requested. |
photoItemPhoto, nullable | Present only when expand[]=photo was requested: the photo of the log's end its measurement was made on, with a 15-minute download_url; null when there is none. Draw the measurement's perimeter (the outline), diameter_lines and tag_corners over it: they are normalised to this photo. |
photo.image_idstring | |
photo.widthinteger, nullable | |
photo.heightinteger, nullable | |
photo.download_urlstring, nullable | Valid for 15 minutes; null when the bytes are gone (retention) or not uploaded. |
photo.source_image_idstring, nullable | The scene photo the log end was cropped from, when the phone sent it. |
photo.boxNormalizedBox, nullable | Where the log end sits in that scene photo (the detection box), normalised to it. |
{
"id": "itm_5Lw2Nc",
"object": "item",
"livemode": true,
"client_id": null,
"type": "log",
"group_id": "grp_7QxV3m",
"tag": { "payload": "DEMO-0001", "symbology": "qr", "side_mm": 62 },
"species": "PINE_TAEDA",
"length": {
"value_m": 5.8,
"source": "operator",
"entered": { "value": 5.8, "unit": "m" }
},
"grade": null,
"weight": null,
"measurement": {
"id": "msr_8Rt4Vb",
"object": "measurement",
"livemode": true,
"item_id": "itm_5Lw2Nc",
"stage": "server_refined",
"method": "qr_scale",
"diameter_short_m": 0.477,
"diameter_long_m": 0.492,
"adjustments": [],
"effective_short_m": 0.477,
"effective_long_m": 0.492,
"perimeter": [
[0.21, 0.5],
[0.5, 0.2],
[0.8, 0.5],
[0.5, 0.81]
],
"scale": {
"source": "qr_tag",
"side_mm": 62,
"m_per_unit_x": 0.81,
"m_per_unit_y": 0.8
},
"quality": {
"confidence": 0.94,
"rejection_gates": {}
},
"provenance": {
"detector": {
"id": "log-detector",
"version": "2.1.0"
},
"segmenter": {
"id": "log-segmenter",
"version": "1.3.0"
},
"sdk_version": "timbereye-ios 1.4.0",
"app_version": "3.2.1",
"device_model": "iPhone15,3",
"os": "iOS 18.2",
"actor": {
"type": "system",
"id": null
}
},
"reason": null,
"image_id": "img_K3s9",
"scan_id": "scn_9a2Lk",
"created_at": "2027-02-03T14:40:52Z"
},
"refinement": { "status": "succeeded" },
"outline": {
"status": "ready",
"reason": null,
"source": "segmentation",
"points": [
[0.21, 0.5],
[0.5, 0.17],
[0.79, 0.5],
[0.5, 0.83]
],
"measurement_id": "msr_8Rt4Vb",
"segmenter": {
"id": "vertex-sawlog-segmentation",
"version": "unknown"
}
},
"status": "active",
"scan_id": "scn_9a2Lk",
"origin": null,
"measured": null,
"metadata": {},
"created_at": "2027-02-03T14:12:40Z"
}List items#
GET/v1/items
Returns items across groups, newest first.
Keys: secret key; restricted key with items:read.
Parameters
| Field | Description |
|---|---|
group_idstring, query | Only items currently in this group. |
statusactive \| removed, query | Filter by status. |
speciesstring, query | Filter by species code. |
scan_idstring, query | Only items created by this scan. |
tagstring, query | Only the item with this tag payload. |
client_idstring, query | Only the item with this client id. |
limitinteger, query | Page size, 1 to 100. |
starting_afterstring, query | Opaque cursor: pass the next_cursor of the previous page. Results are ordered by (created_at, id). |
expand[]array of string, query | Replace an id field with the full object, e.g. expand[]=origin_place. Allowed values are listed on each resource. |
Request
for await (const log of timbereye.items.list()) {
// every page, one at a time
}curl https://api.timbereye.com/v1/items \
-H "Authorization: Bearer $TIMBEREYE_SECRET_KEY"timbereye items list --jsonResponse
// 200
{
"object": "list",
"data": [
{
"id": "itm_5Lw2Nc",
"object": "item",
"livemode": true,
"client_id": null,
"type": "log",
"group_id": "grp_7QxV3m",
"tag": {
"payload": "DEMO-0001",
"symbology": "qr",
"side_mm": 62
},
"species": "PINE_TAEDA",
"length": {
"value_m": 5.8,
"source": "operator",
"entered": { "value": 5.8, "unit": "m" }
},
"grade": null,
"weight": null,
"measurement": {
"id": "msr_8Rt4Vb",
"object": "measurement",
"livemode": true,
"item_id": "itm_5Lw2Nc",
"stage": "server_refined",
"method": "qr_scale",
"diameter_short_m": 0.477,
"diameter_long_m": 0.492,
"adjustments": [],
"effective_short_m": 0.477,
"effective_long_m": 0.492,
"perimeter": [
[0.21, 0.5],
[0.5, 0.2],
[0.8, 0.5],
[0.5, 0.81]
],
"scale": {
"source": "qr_tag",
"side_mm": 62,
"m_per_unit_x": 0.81,
"m_per_unit_y": 0.8
},
"quality": {
"confidence": 0.94,
"rejection_gates": {}
},
"provenance": {
"detector": {
"id": "log-detector",
"version": "2.1.0"
},
"segmenter": {
"id": "log-segmenter",
"version": "1.3.0"
},
"sdk_version": "timbereye-ios 1.4.0",
"app_version": "3.2.1",
"device_model": "iPhone15,3",
"os": "iOS 18.2",
"actor": {
"type": "system",
"id": null
}
},
"reason": null,
"image_id": "img_K3s9",
"scan_id": "scn_9a2Lk",
"created_at": "2027-02-03T14:40:52Z"
},
"refinement": { "status": "succeeded" },
"outline": {
"status": "ready",
"reason": null,
"source": "segmentation",
"points": [
[0.21, 0.5],
[0.5, 0.17],
[0.79, 0.5],
[0.5, 0.83]
],
"measurement_id": "msr_8Rt4Vb",
"segmenter": {
"id": "vertex-sawlog-segmentation",
"version": "unknown"
}
},
"status": "active",
"scan_id": "scn_9a2Lk",
"origin": null,
"measured": null,
"metadata": {},
"created_at": "2027-02-03T14:12:40Z"
}
],
"has_more": false,
"next_cursor": null
}Errors
| Status | When |
|---|---|
400 | invalid_request_error: the request was malformed or a field was invalid. |
401 | authentication_error: missing, malformed, expired or revoked key. |
403 | permission_error: the key lacks the scope, the capture token is limited to other groups, or the resource is read-only to you. |
404 | invalid_request_error, resource_missing: no such object. Objects in another account are also reported as 404. |
429 | rate_limit_error: slow down and retry after the Retry-After delay. |
500 | api_error: something went wrong on our side. Safe to retry with the same Idempotency-Key. |
503 | api_error: isolation_unavailable (the resource's account isolation is not in place), service_unavailable (for example image storage not available in this environment) or model_unavailable (no on-device detector to offer in this environment). Retry later. |
Retrieve an item#
GET/v1/items/{id}
Returns an item with its effective measurement.
Keys: secret key; restricted key with items:read.
Parameters
| Field | Description |
|---|---|
id requiredstring, path | Item id. |
expand[]array of string, query | Replace an id field with the full object, e.g. expand[]=origin_place. Allowed values are listed on each resource. |
Request
const result = await timbereye.items.retrieve("itm_5Lw2Nc")curl https://api.timbereye.com/v1/items/itm_5Lw2Nc \
-H "Authorization: Bearer $TIMBEREYE_SECRET_KEY"timbereye items get itm_5Lw2Nc --jsonResponse
// 200
{
"id": "itm_5Lw2Nc",
"object": "item",
"livemode": true,
"client_id": null,
"type": "log",
"group_id": "grp_7QxV3m",
"tag": { "payload": "DEMO-0001", "symbology": "qr", "side_mm": 62 },
"species": "PINE_TAEDA",
"length": {
"value_m": 5.8,
"source": "operator",
"entered": { "value": 5.8, "unit": "m" }
},
"grade": null,
"weight": null,
"measurement": {
"id": "msr_8Rt4Vb",
"object": "measurement",
"livemode": true,
"item_id": "itm_5Lw2Nc",
"stage": "server_refined",
"method": "qr_scale",
"diameter_short_m": 0.477,
"diameter_long_m": 0.492,
"adjustments": [],
"effective_short_m": 0.477,
"effective_long_m": 0.492,
"perimeter": [
[0.21, 0.5],
[0.5, 0.2],
[0.8, 0.5],
[0.5, 0.81]
],
"scale": {
"source": "qr_tag",
"side_mm": 62,
"m_per_unit_x": 0.81,
"m_per_unit_y": 0.8
},
"quality": {
"confidence": 0.94,
"rejection_gates": {}
},
"provenance": {
"detector": {
"id": "log-detector",
"version": "2.1.0"
},
"segmenter": {
"id": "log-segmenter",
"version": "1.3.0"
},
"sdk_version": "timbereye-ios 1.4.0",
"app_version": "3.2.1",
"device_model": "iPhone15,3",
"os": "iOS 18.2",
"actor": {
"type": "system",
"id": null
}
},
"reason": null,
"image_id": "img_K3s9",
"scan_id": "scn_9a2Lk",
"created_at": "2027-02-03T14:40:52Z"
},
"refinement": { "status": "succeeded" },
"outline": {
"status": "ready",
"reason": null,
"source": "segmentation",
"points": [
[0.21, 0.5],
[0.5, 0.17],
[0.79, 0.5],
[0.5, 0.83]
],
"measurement_id": "msr_8Rt4Vb",
"segmenter": {
"id": "vertex-sawlog-segmentation",
"version": "unknown"
}
},
"status": "active",
"scan_id": "scn_9a2Lk",
"origin": null,
"measured": null,
"metadata": {},
"created_at": "2027-02-03T14:12:40Z"
}Errors
| Status | When |
|---|---|
400 | invalid_request_error: the request was malformed or a field was invalid. |
401 | authentication_error: missing, malformed, expired or revoked key. |
403 | permission_error: the key lacks the scope, the capture token is limited to other groups, or the resource is read-only to you. |
404 | invalid_request_error, resource_missing: no such object. Objects in another account are also reported as 404. |
429 | rate_limit_error: slow down and retry after the Retry-After delay. |
500 | api_error: something went wrong on our side. Safe to retry with the same Idempotency-Key. |
503 | api_error: isolation_unavailable (the resource's account isolation is not in place), service_unavailable (for example image storage not available in this environment) or model_unavailable (no on-device detector to offer in this environment). Retry later. |
Update an item#
PATCH/v1/items/{id}
Edits species, length, grade, a nominal diameter class (an assigned measurement) or metadata after the scan. Each value set gets source: operator; a length edit recomputes volume and the commodity match and reallocates the group's weight. Rejected with 409 state_conflict for a removed item. Emits item.updated.
Keys: secret key; restricted key with items:write.
Parameters
| Field | Description |
|---|---|
id requiredstring, path | Item id. |
Body
| Field | Description |
|---|---|
speciesstring | Species code from your catalogue. |
lengthItemLengthInput | Length input for items: { value, unit } or { value_m }, optionally with source. source is normally set by the server (operator on PATCH /items/{id}, bulk on bulk update). A capture client may send operator (the user typed the length; the default when source is omitted), group_default (the length was taken from the group spec the host app supplied) or measured (a device measured it); the server validates the value, stores it as sent and does not compare the number with the group spec. bulk is refused with 400 parameter_invalid. Omit the length entirely to get the group's default length with source group_default. |
gradestring | Grade, free text such as A; your own grading. null clears it. |
diameter_class_mnumber | Nominal diameter class in metres. Records an assigned measurement on items that have no measurement better than assigned. |
metadataMetadata | Free-form string map for your own data (an ERP booking number, a yard row). At most 50 keys; keys up to 40 characters; values up to 500 characters. Use this instead of asking for customer-specific fields. On update, supplied keys are merged into the existing map and a key set to an empty string is removed. |
Request
const result = await timbereye.items.update("itm_5Lw2Nc", { grade: "A", metadata: { yardRow: "R12" } })curl -X PATCH https://api.timbereye.com/v1/items/itm_5Lw2Nc \
-H "Authorization: Bearer $TIMBEREYE_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{"grade":"A","metadata":{"yard_row":"R12"}}'timbereye items update itm_5Lw2Nc \
--grade A \
--data '{"metadata":{"yard_row":"R12"}}' \
--jsonResponse
// 200
{
"id": "itm_5Lw2Nc",
"object": "item",
"livemode": true,
"client_id": null,
"type": "log",
"group_id": "grp_7QxV3m",
"tag": { "payload": "DEMO-0001", "symbology": "qr", "side_mm": 62 },
"species": "PINE_TAEDA",
"length": {
"value_m": 5.8,
"source": "operator",
"entered": { "value": 5.8, "unit": "m" }
},
"grade": "A",
"weight": null,
"measurement": {
"id": "msr_8Rt4Vb",
"object": "measurement",
"livemode": true,
"item_id": "itm_5Lw2Nc",
"stage": "server_refined",
"method": "qr_scale",
"diameter_short_m": 0.477,
"diameter_long_m": 0.492,
"adjustments": [],
"effective_short_m": 0.477,
"effective_long_m": 0.492,
"perimeter": [
[0.21, 0.5],
[0.5, 0.2],
[0.8, 0.5],
[0.5, 0.81]
],
"scale": {
"source": "qr_tag",
"side_mm": 62,
"m_per_unit_x": 0.81,
"m_per_unit_y": 0.8
},
"quality": {
"confidence": 0.94,
"rejection_gates": {}
},
"provenance": {
"detector": {
"id": "log-detector",
"version": "2.1.0"
},
"segmenter": {
"id": "log-segmenter",
"version": "1.3.0"
},
"sdk_version": "timbereye-ios 1.4.0",
"app_version": "3.2.1",
"device_model": "iPhone15,3",
"os": "iOS 18.2",
"actor": {
"type": "system",
"id": null
}
},
"reason": null,
"image_id": "img_K3s9",
"scan_id": "scn_9a2Lk",
"created_at": "2027-02-03T14:40:52Z"
},
"refinement": { "status": "succeeded" },
"outline": {
"status": "ready",
"reason": null,
"source": "segmentation",
"points": [
[0.21, 0.5],
[0.5, 0.17],
[0.79, 0.5],
[0.5, 0.83]
],
"measurement_id": "msr_8Rt4Vb",
"segmenter": {
"id": "vertex-sawlog-segmentation",
"version": "unknown"
}
},
"status": "active",
"scan_id": "scn_9a2Lk",
"origin": null,
"measured": null,
"metadata": { "yard_row": "R12" },
"created_at": "2027-02-03T14:12:40Z"
}Errors
| Status | When |
|---|---|
400 | invalid_request_error: the request was malformed or a field was invalid. |
401 | authentication_error: missing, malformed, expired or revoked key. |
403 | permission_error: the key lacks the scope, the capture token is limited to other groups, or the resource is read-only to you. |
404 | invalid_request_error, resource_missing: no such object. Objects in another account are also reported as 404. |
409 | invalid_request_error: idempotency_key_reused, idempotency_request_in_progress, group_not_empty, group_billed, place_in_use, resource_exists, place_name_taken or another state conflict. |
413 | invalid_request_error, payload_too_large: the upload is over the size limit (10 MB for multipart). |
422 | invalid_request_error: the request was well formed but cannot be applied. Codes: group_cycle, group_depth_exceeded, unit_ambiguous, weight_inconsistent, area_ha_not_allowed, assignment_required. |
429 | rate_limit_error: slow down and retry after the Retry-After delay. |
500 | api_error: something went wrong on our side. Safe to retry with the same Idempotency-Key. |
503 | api_error: isolation_unavailable (the resource's account isolation is not in place), service_unavailable (for example image storage not available in this environment) or model_unavailable (no on-device detector to offer in this environment). Retry later. |
Remove an item#
DELETE/v1/items/{id}
Marks the item removed (it keeps its group for the record, but no longer counts in the group's figures, volume or weight) and emits item.removed. A refinement already billed for it is voided when the removal comes within 72 hours of the billing (section 9). Removing a removed item changes nothing. To only take an item out of a group, use POST /groups/{id}/items/remove.
Keys: secret key; restricted key with items:write.
Parameters
| Field | Description |
|---|---|
id requiredstring, path | Item id. |
Request
const result = await timbereye.items.remove("itm_5Lw2Nc")curl -X DELETE https://api.timbereye.com/v1/items/itm_5Lw2Nc \
-H "Authorization: Bearer $TIMBEREYE_SECRET_KEY"timbereye items remove itm_5Lw2Nc --yes --jsonResponse
// 200
{
"id": "itm_5Lw2Nc",
"object": "item",
"livemode": true,
"client_id": null,
"type": "log",
"group_id": "grp_7QxV3m",
"tag": { "payload": "DEMO-0001", "symbology": "qr", "side_mm": 62 },
"species": "PINE_TAEDA",
"length": {
"value_m": 5.8,
"source": "operator",
"entered": { "value": 5.8, "unit": "m" }
},
"grade": null,
"weight": null,
"measurement": {
"id": "msr_8Rt4Vb",
"object": "measurement",
"livemode": true,
"item_id": "itm_5Lw2Nc",
"stage": "server_refined",
"method": "qr_scale",
"diameter_short_m": 0.477,
"diameter_long_m": 0.492,
"adjustments": [],
"effective_short_m": 0.477,
"effective_long_m": 0.492,
"perimeter": [
[0.21, 0.5],
[0.5, 0.2],
[0.8, 0.5],
[0.5, 0.81]
],
"scale": {
"source": "qr_tag",
"side_mm": 62,
"m_per_unit_x": 0.81,
"m_per_unit_y": 0.8
},
"quality": {
"confidence": 0.94,
"rejection_gates": {}
},
"provenance": {
"detector": {
"id": "log-detector",
"version": "2.1.0"
},
"segmenter": {
"id": "log-segmenter",
"version": "1.3.0"
},
"sdk_version": "timbereye-ios 1.4.0",
"app_version": "3.2.1",
"device_model": "iPhone15,3",
"os": "iOS 18.2",
"actor": {
"type": "system",
"id": null
}
},
"reason": null,
"image_id": "img_K3s9",
"scan_id": "scn_9a2Lk",
"created_at": "2027-02-03T14:40:52Z"
},
"refinement": { "status": "succeeded" },
"outline": {
"status": "ready",
"reason": null,
"source": "segmentation",
"points": [
[0.21, 0.5],
[0.5, 0.17],
[0.79, 0.5],
[0.5, 0.83]
],
"measurement_id": "msr_8Rt4Vb",
"segmenter": {
"id": "vertex-sawlog-segmentation",
"version": "unknown"
}
},
"status": "removed",
"scan_id": "scn_9a2Lk",
"origin": null,
"measured": null,
"metadata": {},
"created_at": "2027-02-03T14:12:40Z"
}Errors
| Status | When |
|---|---|
400 | invalid_request_error: the request was malformed or a field was invalid. |
401 | authentication_error: missing, malformed, expired or revoked key. |
403 | permission_error: the key lacks the scope, the capture token is limited to other groups, or the resource is read-only to you. |
404 | invalid_request_error, resource_missing: no such object. Objects in another account are also reported as 404. |
409 | invalid_request_error: idempotency_key_reused, idempotency_request_in_progress, group_not_empty, group_billed, place_in_use, resource_exists, place_name_taken or another state conflict. |
429 | rate_limit_error: slow down and retry after the Retry-After delay. |
500 | api_error: something went wrong on our side. Safe to retry with the same Idempotency-Key. |
503 | api_error: isolation_unavailable (the resource's account isolation is not in place), service_unavailable (for example image storage not available in this environment) or model_unavailable (no on-device detector to offer in this environment). Retry later. |
Every group an item has been in#
GET/v1/items/{id}/groups
Returns every group the item has been in as { group, joined_at, left_at } entries, oldest first.
Keys: secret key; restricted key with items:read or groups:read.
Parameters
| Field | Description |
|---|---|
id requiredstring, path | Item id. |
limitinteger, query | Page size, 1 to 100. |
starting_afterstring, query | Opaque cursor: pass the next_cursor of the previous page. Results are ordered by (created_at, id). |
expand[]array of string, query | Replace an id field with the full object, e.g. expand[]=origin_place. Allowed values are listed on each resource. |
Request
for await (const log of timbereye.items.listGroups("itm_5Lw2Nc")) {
// every page, one at a time
}curl https://api.timbereye.com/v1/items/itm_5Lw2Nc/groups \
-H "Authorization: Bearer $TIMBEREYE_SECRET_KEY"timbereye items groups itm_5Lw2Nc --jsonResponse
// 200
{
"object": "list",
"data": [
{
"object": "group_membership",
"group": {
"id": "grp_7QxV3m",
"object": "group",
"livemode": true,
"client_id": null,
"kind": "container",
"name": "MSKU1234567",
"external_ref": "ctr_4821",
"parent_id": null,
"origin_place_id": "plc_4Hk2pT",
"origin": {
"place_id": "plc_4Hk2pT",
"source": "assigned",
"determined_at": "2027-02-03T14:00:00Z",
"assigned_by": {
"type": "key",
"id": "key_1a2B3c"
},
"evidence": null
},
"status": "open",
"defaults": {
"species": "PINE_TAEDA",
"length_m": 11.8,
"grade": null,
"diameter_class_m": null
},
"weight": null,
"summary": {
"items": 0,
"measured": 0,
"refined": 0,
"volume": {
"rule": "jas",
"m3": 0
},
"net_kg": null,
"density_kg_m3": null,
"weight_allocation": "none",
"assigned_count": 0
},
"version": 0,
"metadata": { "erp_booking": "BK-2231" },
"created_at": "2027-02-03T14:05:11Z"
},
"joined_at": "2027-02-03T14:12:40Z",
"left_at": null
}
],
"has_more": false,
"next_cursor": null
}Errors
| Status | When |
|---|---|
400 | invalid_request_error: the request was malformed or a field was invalid. |
401 | authentication_error: missing, malformed, expired or revoked key. |
403 | permission_error: the key lacks the scope, the capture token is limited to other groups, or the resource is read-only to you. |
404 | invalid_request_error, resource_missing: no such object. Objects in another account are also reported as 404. |
429 | rate_limit_error: slow down and retry after the Retry-After delay. |
500 | api_error: something went wrong on our side. Safe to retry with the same Idempotency-Key. |
503 | api_error: isolation_unavailable (the resource's account isolation is not in place), service_unavailable (for example image storage not available in this environment) or model_unavailable (no on-device detector to offer in this environment). Retry later. |