Skip to the page
Docs menu

Docs API reference

Events

Event feed and webhook payloads.

The event object#

An event with the object snapshot at that moment. Kept 30 days through the API. Switch on type; the data object differs by family.

FieldDescription
JSON
{
  "id": "evt_2Wm8Xa",
  "object": "event",
  "livemode": true,
  "type": "scan.refined",
  "version": 4,
  "created_at": "2027-02-03T14:41:09Z",
  "data": {
    "object": {
      "id": "scn_9a2Lk",
      "object": "scan",
      "livemode": true,
      "client_id": null,
      "method": "photo_count",
      "intent": null,
      "group_id": "grp_7QxV3m",
      "status": "refined",
      "device": null,
      "sdk": null,
      "models": null,
      "location": null,
      "results": {
        "count": 142,
        "boxes_image_id": "img_Wd7Z"
      },
      "replaces_scan_id": null,
      "measured_place_id": null,
      "place_match": null,
      "started_at": null,
      "ended_at": null,
      "created_at": "2027-02-03T14:10:02Z",
      "metadata": {}
    }
  }
}

List events#

GET/v1/events

The audit and webhook feed, newest first. Events are kept 30 days.

Keys: secret key; restricted key with events:read.

Parameters

FieldDescription
typeenum (scan.created, scan.estimated, scan.refined, scan.failed, item.created, item.updated, item.removed, item.refinement_failed, group.created, group.updated, group.measured, group.deleted, place.updated, place.deleted, usage.threshold_reached), queryOnly events of this type.
created_afterstring, queryOnly events created at or after this time (ISO 8601), e.g. the created_at of the newest event you have processed, to catch up after downtime. Events older than 30 days are gone whatever you ask.
created_beforestring, queryOnly events created before this time (ISO 8601).
limitinteger, queryPage size, 1 to 100.
starting_afterstring, queryOpaque cursor: pass the next_cursor of the previous page. Results are ordered by (created_at, id).
expand[]array of string, queryReplace an id field with the full object, e.g. expand[]=origin_place. Allowed values are listed on each resource.

Request

TypeScript
for await (const event of timbereye.events.list()) {
    // every page, one at a time
}
curl
curl https://api.timbereye.com/v1/events \
  -H "Authorization: Bearer $TIMBEREYE_SECRET_KEY"
CLI
timbereye events list --json

Response

JSON
// 200
{
  "object": "list",
  "data": [
    {
      "id": "evt_2Wm8Xa",
      "object": "event",
      "livemode": true,
      "type": "scan.refined",
      "version": 4,
      "created_at": "2027-02-03T14:41:09Z",
      "data": {
        "object": {
          "id": "scn_9a2Lk",
          "object": "scan",
          "livemode": true,
          "client_id": null,
          "method": "photo_count",
          "intent": null,
          "group_id": "grp_7QxV3m",
          "status": "refined",
          "device": null,
          "sdk": null,
          "models": null,
          "location": null,
          "results": {
            "count": 142,
            "boxes_image_id": "img_Wd7Z"
          },
          "replaces_scan_id": null,
          "measured_place_id": null,
          "place_match": null,
          "started_at": null,
          "ended_at": null,
          "created_at": "2027-02-03T14:10:02Z",
          "metadata": {}
        }
      }
    }
  ],
  "has_more": false,
  "next_cursor": null
}
Errors
StatusWhen
400invalid_request_error: the request was malformed or a field was invalid.
401authentication_error: missing, malformed, expired or revoked key.
403permission_error: the key lacks the scope, the capture token is limited to other groups, or the resource is read-only to you.
404invalid_request_error, resource_missing: no such object. Objects in another account are also reported as 404.
429rate_limit_error: slow down and retry after the Retry-After delay.
500api_error: something went wrong on our side. Safe to retry with the same Idempotency-Key.

Retrieve an event#

GET/v1/events/{id}

Returns one event with its snapshot.

Keys: secret key; restricted key with events:read.

Parameters

FieldDescription
id requiredstring, pathEvent id.

Request

TypeScript
const result = await timbereye.events.retrieve("evt_2Wm8Xa")
curl
curl https://api.timbereye.com/v1/events/evt_2Wm8Xa \
  -H "Authorization: Bearer $TIMBEREYE_SECRET_KEY"
CLI
timbereye events get evt_2Wm8Xa --json

Response

JSON
// 200
{
  "id": "evt_2Wm8Xa",
  "object": "event",
  "livemode": true,
  "type": "scan.refined",
  "version": 4,
  "created_at": "2027-02-03T14:41:09Z",
  "data": {
    "object": {
      "id": "scn_9a2Lk",
      "object": "scan",
      "livemode": true,
      "client_id": null,
      "method": "photo_count",
      "intent": null,
      "group_id": "grp_7QxV3m",
      "status": "refined",
      "device": null,
      "sdk": null,
      "models": null,
      "location": null,
      "results": {
        "count": 142,
        "boxes_image_id": "img_Wd7Z"
      },
      "replaces_scan_id": null,
      "measured_place_id": null,
      "place_match": null,
      "started_at": null,
      "ended_at": null,
      "created_at": "2027-02-03T14:10:02Z",
      "metadata": {}
    }
  }
}
Errors
StatusWhen
400invalid_request_error: the request was malformed or a field was invalid.
401authentication_error: missing, malformed, expired or revoked key.
403permission_error: the key lacks the scope, the capture token is limited to other groups, or the resource is read-only to you.
404invalid_request_error, resource_missing: no such object. Objects in another account are also reported as 404.
429rate_limit_error: slow down and retry after the Retry-After delay.
500api_error: something went wrong on our side. Safe to retry with the same Idempotency-Key.

Event payloads#

What Timbereye sends to your webhook endpoints. The type says what happened; data.object is the object as it is now.

Scan events

Timbereye sends this to your endpoint. Verify webhook-signature (Standard Webhooks, HMAC-SHA256 over webhook-id.webhook-timestamp.body with your endpoint secret) before trusting it. Answer with any 2xx within 10 seconds. A failed delivery is attempted ten times in all, after about 5 seconds, 5 minutes, 30 minutes, 2 hours, 5 hours, 10 hours, 14 hours, 20 hours and 20 hours (about three days). An endpoint whose deliveries have all failed for three days gets status: disabled and its pending deliveries are cancelled. No email and no event is sent when that happens: poll GET /webhook_endpoints for status, or watch for missing deliveries. Delivery order is not guaranteed.

Types: scan.created, scan.estimated, scan.refined, scan.failed

JSON
{
  "id": "evt_2Wm8Xa",
  "object": "event",
  "livemode": true,
  "type": "scan.refined",
  "version": 4,
  "created_at": "2027-02-03T14:41:09Z",
  "data": {
    "object": {
      "id": "scn_9a2Lk",
      "object": "scan",
      "livemode": true,
      "client_id": null,
      "method": "photo_count",
      "intent": null,
      "group_id": "grp_7QxV3m",
      "status": "refined",
      "device": null,
      "sdk": null,
      "models": null,
      "location": null,
      "results": {
        "count": 142,
        "boxes_image_id": "img_Wd7Z"
      },
      "replaces_scan_id": null,
      "measured_place_id": null,
      "place_match": null,
      "started_at": null,
      "ended_at": null,
      "created_at": "2027-02-03T14:10:02Z",
      "metadata": {}
    }
  }
}

Item events

Timbereye sends this to your endpoint. Verify webhook-signature (Standard Webhooks, HMAC-SHA256 over webhook-id.webhook-timestamp.body with your endpoint secret) before trusting it. Answer with any 2xx within 10 seconds. A failed delivery is attempted ten times in all, after about 5 seconds, 5 minutes, 30 minutes, 2 hours, 5 hours, 10 hours, 14 hours, 20 hours and 20 hours (about three days). An endpoint whose deliveries have all failed for three days gets status: disabled and its pending deliveries are cancelled. No email and no event is sent when that happens: poll GET /webhook_endpoints for status, or watch for missing deliveries. Delivery order is not guaranteed.

Types: item.created, item.updated, item.removed, item.refinement_failed

Group events

Timbereye sends this to your endpoint. Verify webhook-signature (Standard Webhooks, HMAC-SHA256 over webhook-id.webhook-timestamp.body with your endpoint secret) before trusting it. Answer with any 2xx within 10 seconds. A failed delivery is attempted ten times in all, after about 5 seconds, 5 minutes, 30 minutes, 2 hours, 5 hours, 10 hours, 14 hours, 20 hours and 20 hours (about three days). An endpoint whose deliveries have all failed for three days gets status: disabled and its pending deliveries are cancelled. No email and no event is sent when that happens: poll GET /webhook_endpoints for status, or watch for missing deliveries. Delivery order is not guaranteed.

Types: group.updated, group.deleted

Place events

Timbereye sends this to your endpoint. Verify webhook-signature (Standard Webhooks, HMAC-SHA256 over webhook-id.webhook-timestamp.body with your endpoint secret) before trusting it. Answer with any 2xx within 10 seconds. A failed delivery is attempted ten times in all, after about 5 seconds, 5 minutes, 30 minutes, 2 hours, 5 hours, 10 hours, 14 hours, 20 hours and 20 hours (about three days). An endpoint whose deliveries have all failed for three days gets status: disabled and its pending deliveries are cancelled. No email and no event is sent when that happens: poll GET /webhook_endpoints for status, or watch for missing deliveries. Delivery order is not guaranteed.

Types: place.updated, place.deleted

Usage events

Timbereye sends this to your endpoint. Verify webhook-signature (Standard Webhooks, HMAC-SHA256 over webhook-id.webhook-timestamp.body with your endpoint secret) before trusting it. Answer with any 2xx within 10 seconds. A failed delivery is attempted ten times in all, after about 5 seconds, 5 minutes, 30 minutes, 2 hours, 5 hours, 10 hours, 14 hours, 20 hours and 20 hours (about three days). An endpoint whose deliveries have all failed for three days gets status: disabled and its pending deliveries are cancelled. No email and no event is sent when that happens: poll GET /webhook_endpoints for status, or watch for missing deliveries. Delivery order is not guaranteed.

Types: usage.threshold_reached