Origin
Origin export, with geometry checked against the EUDR geolocation rules.
The origin object#
A group's origin as a GeoJSON FeatureCollection with the item count and volume attached as extra members. features holds every place you can see that the group's items come from, each with its own count and volume; count and volume are computed from those features only. Items whose origin place is missing or not visible are reported in unattributed. Invalid geometry does not fail the request: the place is included with its issues and eudr_valid is false. A collection with no features is empty: true and never valid.
| Field | Description |
|---|---|
objectorigin | String representing the object type. Always origin. |
livemodeboolean | true for objects in the live account, false for objects in the test account. Test and live data never mix. |
typeFeatureCollection | GeoJSON type. |
eudr_validboolean | true only when the export has at least one feature and every feature's geometry is EUDR-valid. An export with no features (empty: true) is not evidence of origin and is never valid. false marks the collection as not usable for a filing; the request is not refused. It says nothing about the items in unattributed: check that its count is 0 before you rely on the export. |
featuresarray of OriginFeature | Every place you can see that the group's current items originate from. |
countinteger | Items attributed to the places in features: the sum of the features' count. Items in unattributed are not counted here. |
volumeVolumeSummary | Volume under a rule. |
volume.rulestring | Volume rule id. |
volume.m3number | Volume in cubic metres under the rule. |
emptyboolean | true when features is empty: the group has no items, or none whose origin place you can see. Then eudr_valid is false. |
unattributedobject | Items that the features do not account for: items whose group has no origin place, and items whose origin place is not visible to you. Nothing is said about a place you cannot see, not even that it exists; its items appear only here. |
unattributed.countinteger | Items of the group with no origin place, or whose origin place is not visible to you. |
unattributed.volume_m3number | Their volume in cubic metres under the account's default rule. |
Export the group's origin#
GET/v1/groups/{id}/origin
Returns the origin of every place the group's current items come from as a GeoJSON FeatureCollection, each feature with its count and volume, and eudr_valid on the collection. Only places you can see are exported and counted: count and volume cover those features, and the items of any other origin are reported in unattributed without saying anything about the place. A group with no features is empty: true and eudr_valid: false. Timbereye does not screen for deforestation or build due-diligence statements; this is the data for them.
Keys: secret key; restricted key with groups:read or places:read.
Parameters
| Field | Description |
|---|---|
id requiredstring, path | Group id. |
Request
const result = await timbereye.groups.origin("grp_7QxV3m")curl https://api.timbereye.com/v1/groups/grp_7QxV3m/origin \
-H "Authorization: Bearer $TIMBEREYE_SECRET_KEY"timbereye groups origin grp_7QxV3m --jsonResponse
// 200
{
"object": "origin",
"livemode": true,
"type": "FeatureCollection",
"eudr_valid": true,
"features": [
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[-82.41, 31.9],
[-82.4, 31.9],
[-82.4, 31.91],
[-82.41, 31.91],
[-82.41, 31.9]
]
]
},
"properties": {
"place_id": "plc_4Hk2pT",
"name": "Tract 14 North",
"external_ref": "T-14N",
"area_ha": 105.1,
"count": 1,
"volume": {
"rule": "jas",
"m3": 1.32
},
"eudr": {
"valid": true,
"issues": []
}
}
}
],
"count": 1,
"volume": { "rule": "jas", "m3": 1.32 },
"empty": false,
"unattributed": { "count": 0, "volume_m3": 0 }
}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. |