Skip to the page
Docs menu

Docs Platform

Advanced: limit a phone to specific groups

Instead of signing a worker in, your server mints a capture token for chosen groups and the Timbereye app opens it from a link or QR code. For per-group control; most teams do not need it.

Optional, for step 2: Scan. Most teams add workers by email and let them sign in to the app. Use this page only when your server must decide, group by group and day by day, what a phone may scan into.

Your server mints a capture token for one or more groups, for up to 24 hours, and shows the phone a link or QR code. The app opens it and scans into those groups only. When the token expires, uploads wait until the phone gets a new link; nothing scanned is lost.

By platform. The Android app works only this way. On iPhone the app opens a link only when no logs are waiting on the phone, so a signed-in worker's logs never upload under the token.

TypeScript
const timbereye = new Timbereye() // reads TIMBEREYE_SECRET_KEY
const token = await timbereye.captureTokens.create({
    groupIds: ["grp_7QxV3m"],
    spec: "write",
    ttlSeconds: 86400,
})
const api = encodeURIComponent("https://api.timbereye.com/v1")
const link = `timbereye-capture://pair?token=${token.secret}&group_id=grp_7QxV3m&spec=write&base_url=${api}&api_base_url=${api}`
res.json({ link }) // your supervisor screen shows it as a QR code
CLI
timbereye capture-tokens create --group grp_7QxV3m --spec write --ttl 86400 --json
  • iOS reads base_url, Android api_base_url. Always send the address.
  • spec: write lets the worker change the group's spec on the phone; read only shows it.
  • A token lasts 1 hour by default, 24 hours at most. token.secret is shown once.

Use it#

Open the link on the phone (a QR code of the link opens it from the iPhone camera). The app opens that group's scanner; Leave returns to the worker's own sign-in once everything is uploaded. group.measured follows when the logs settle (Stay in sync).