OAuth for iCloud developer guide

Review Home Camera Events with an Assistant

Reviewing HomeKit Secure Video clips needs a compatible home hub, an active iCloud+ plan, and a certified camera. Figment has no clip endpoint; it verifies the account connection and native HomeKit code reads the clips.

Figment editorial teamPublished Updated Facts checked November 12, 2026

Building an assistant that reviews HomeKit camera events is conditional. A compatible home hub, an active iCloud+ subscription, and a HomeKit Secure Video-certified camera must all be in place before any clip data exists to review. There is no public Figment REST endpoint for HomeKit Secure Video clip metadata. Figment provides an account-level connection your app can verify before handing off to your native HomeKit integration on a supported app target.

What does HomeKit Secure Video record?

When a camera detects motion, the home hub (a HomePod mini, HomePod, or Apple TV 4K) analyzes the footage locally on-device, classifies the event, and uploads an end-to-end encrypted clip to iCloud. Analysis never leaves the home unencrypted. Each clip carries one motion label: people, animals, vehicles, packages, or unclassified motion. Compatible cameras with face recognition enabled can also include a matched person name drawn from the user's Photos library.

Clips are stored for a rolling 10 days of activity, which is the full scope a review loop can work with. Camera footage does not count against the account's iCloud storage quota (Apple iCloud: HomeKit Secure Video).

What do I need before any review is possible?

All three of a hub, a plan, and a camera must be active and working.

RequirementDetail
Home hubHomePod mini, HomePod, or Apple TV 4K, on-premises and online
iCloud+ plan50 GB: 1 camera · 200 GB: up to 5 cameras · 2 TB or higher: unlimited
CameraHomeKit Secure Video-compatible model (Apple Home accessories)
Review windowRolling 10-day activity log
Storage quotaClips do not count against iCloud storage

The hub is not optional. It performs all local analysis and encryption before anything reaches iCloud. If the hub goes offline or reboots, clips from that period are never created, so build gap reporting into the assistant from the start.

The iCloud+ tier sets the camera ceiling. If a user asks why some cameras are missing from a review, check their subscription tier first.

What do Apple's HomeKit camera APIs provide?

Apple's HMCameraProfile class gives an app stream controls and snapshot controls per camera. It is available on iOS, iPadOS, Mac Catalyst, tvOS, visionOS, and watchOS, not on native macOS. An ordinary macOS daemon cannot import HomeKit and reach camera controls through HMCameraProfile; the app target must be iOS or Mac Catalyst (Apple developer documentation: HMCameraProfile).

HomeKit Secure Video recordings are distinct from the live stream. Clips are stored end-to-end encrypted in iCloud and viewable in the Home app. Apple does not publish a public REST API for retrieving clip metadata outside the native HomeKit framework on a supported app target. Figment's OAuth for iCloud handles the account-level connection and consent; your native iOS or Mac Catalyst code accesses the HomeKit data.

How do I verify the account connection with Figment?

Call the connection status endpoint before starting your HomeKit session. Figment's OAuth for iCloud provides a user-approved connection to the user's Apple account:

curl https://figment.so/api/icloud/v1/connections/con_... \
  -H "Authorization: Bearer ACCESS_TOKEN"

The response includes connection.services, where each service entry has a state field. Possible states include connecting, needs_approval, syncing, ready, offline, reconnect_required, and revoked. A non-2xx response, or a service not in ready state, means the account needs attention. Direct the user to /icloud/account to resolve the issue. Access tokens are short-lived, so refresh before the session starts, not after the first failed call.

How do I design the clip review loop?

This is an integration design for a developer-owned native iOS or Mac Catalyst app holding the HomeKit entitlement.

Before the session

  • Confirm the hub is reachable and online.
  • Confirm the user's iCloud+ tier supports all cameras they expect to see.
  • Initialize HMHomeManager and verify authorizationStatus is authorized.
  • Enumerate cameras and note each camera's online or offline state.

Scoping the time window

  • Ask the user, or derive from context, the period to review: last hour, since sunset, last 48 hours.
  • Keep the range within 10 days. If the requested window extends beyond the storage limit, say so before continuing.

Applying filters

  • Motion label: people, animals, vehicles, packages, any motion.
  • For cameras with face recognition, optionally filter by matched person name.
  • Activity zones the user configured already constrain what was recorded. The assistant inherits those zones without modifying them.

What to surface

  • Timestamp, camera name, motion type, duration, and matched person name when present.
  • An explicit gap entry for any camera that was offline during the requested window.
  • Leave video playback to the Home app. The assistant adds value by synthesizing the event list, not by streaming footage.

What happens when the hub or a camera has a gap?

Report the gap instead of implying the camera was idle.

  • Hub rebooted mid-window. Clips from before the reboot exist, and the gap during the reboot has no records. Query the period, get nothing, and report the gap.
  • Camera offline while the hub ran. A single camera can drop off while the rest of the system stays connected. Check per-camera status and include it in the summary.
  • iCloud+ tier limit reached. If the user added more cameras than their plan supports, the additional cameras do not record. This appears as missing clips, not an error.

The Home service sits in Figment's conditional cluster because hub model, hub uptime, iCloud+ tier, and camera compatibility are all outside the developer's control. A trustworthy assistant surfaces these conditions instead of hiding them.

Connect Apple Account to give your app a user-approved connection to their Apple data.

Connect Apple data to your app

Register your app and start with synthetic sandbox data. Choose the permissions your app needs.

Connect Apple Account

Sandbox is free. Live access is $14 or $29 per connected Apple Account, per month.