class-session

Presence heartbeat — {in_focus, device_id?, blocking_permissions_enabled?, missing_blocking_permissions?}

Report blocking_permissions_enabled as false when the OS reports a required permission missing (with missing_blocking_permissions naming them, e.g. ["accessibility"]), true when none is known missing, and omit both when the client cannot check. Omission/null preserves the latest explicit report within this session, including rejoins. While false, the student counts as opted out and earns no focus credit. Mac every 5s; others approximately 20-30s.

post/class-session/{id}/heartbeat

Request

  • Base URL
    https://api.focusbear.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

idstring uuid required

Request body

in_focusboolean required
blocking_permissions_enabledboolean
missing_blocking_permissionsstring[]

Platform-specific names (e.g. accessibility); only read when blocking_permissions_enabled is false.

device_idstring

Response

object required

Changes

No recorded changes to this operation across all 1 revision of this API.