OAuth for iCloud developer guide

Apple Data Connectors:
Live Access, Sandbox Testing, and Native API Map

OAuth for iCloud has four scopes for Passwords, Messages, Notes and Reminders. Contacts and Calendar have a free synthetic sandbox. Photos, iCloud Drive, Safari and Voice Memos have no Figment endpoint yet.

Figment editorial teamPublished Updated Facts checked November 12, 2026

OAuth for iCloud by Figment covers four scopes that a user approves on one consent screen: Passwords (credentials:use), Messages (messages:read), Notes (notes:read), and Reminders (reminders:read) (/icloud). Contacts and Calendar have a free synthetic sandbox. Photos, iCloud Drive, Safari, and Voice Memos have no public Figment endpoint, and Apple offers no general developer API for them either. Apple does provide native frameworks (PhotoKit, EventKit, the Contacts framework) that run with explicit user permission on a signed-in Mac. Figment builds on that model: an isolated Mac holds an approved connection, and your app receives a scoped access token through Figment's consent flow. Your app never handles the Apple password.

What is available today?

iMessage is the connector these guides document in detail. Authorized apps can list conversations, read and search message history, and send to pre-approved conversations. Reads and searches share the messages:read scope. Sending needs the separate messages:send scope and is limited to existing conversations the user has explicitly included in the send grant. Messages is part of the Full iCloud suite, which costs the developer $29/month per connected Apple Account, and sandbox is free.

Passwords, Notes, and Reminders are the other three scopes. credentials:use gives an app one saved login at a time, with its verification code. notes:read and reminders:read are read scopes. The Apple Passwords plan, at $14/month per connected Apple Account, covers credentials:use alone.

Contacts and Calendar are available as a synthetic read-only sandbox. The sandbox endpoints return invented data with realistic field shapes. No real contacts or calendar entries are accessed, so you can build and validate your data model before live access is offered. The scopes are contacts:read and calendar:read. The sandbox also has a Reminders endpoint, under reminders:read.

Photos, iCloud Drive, Safari, and Voice Memos have no current public Figment customer endpoint. The matrix below shows the native Apple framework each service uses, its sync prerequisites, and the access boundary any helper would need to respect.

Which service uses which Apple framework?

ServiceFigment statusScopesApple frameworkPrerequisites and access boundary
PasswordsApple Passwords plan and Full iCloud suitecredentials:usePasswords app (iCloud Keychain)iCloud Keychain sync on; one saved login at a time
iMessageFull iCloud suitemessages:read · messages:sendMessages (Mac-local DB)iCloud Messages sync on; iPhone online for new carrier messages
ContactsSynthetic sandboxcontacts:readContacts (CNContact)iCloud Contacts sync; synced contacts only
CalendarSynthetic sandboxcalendar:readEventKit (EKEvent)iCloud Calendar sync; shared calendars included
RemindersFull iCloud suitereminders:readEventKit (EKReminder)iCloud Reminders sync; synced lists only
NotesFull iCloud suitenotes:readLocal SQLite / fileiCloud Notes sync on; locked notes need a separate passphrase or biometric step
PhotosNo endpointnonePhotoKit (PHAsset)iCloud Photos sync; explicit Photos authorization required; cloud-only assets fetched on demand
iCloud DriveNo endpointnoneFileManager + NSFileCoordinatorSync this Mac enabled; Desktop & Documents folder is optional and off by default
SafariNo endpointnoneHistory DB / Safari APIiCloud Safari sync; excludes cookies and login sessions
Voice MemosNo endpointnoneAVFoundation + local storeiCloud Voice Memos sync; not live microphone access

Where is the guide for each service?

How do the sandbox endpoints work?

The three sandbox endpoints return invented data in the same response envelope as a live response. Use them to build and test your data model before you connect a live account.

GET /api/icloud/v1/connections/{id}/contacts
GET /api/icloud/v1/connections/{id}/calendar?start=ISO&end=ISO
GET /api/icloud/v1/connections/{id}/reminders?completed=false

Each response follows {data:[...], mode:"sandbox", hasMore, nextOffset, scope:"synthetic sandbox data"}. Optional limit (1–100, default 20) and offset (0–10000) apply to all three. The calendar endpoint requires both start and end when either is supplied. end must follow start, and the range must not exceed 366 days. The reminders endpoint accepts completed=true or completed=false and defaults to false.

Each data item contains these fields:

ServiceFields
Contactsid, name, organization, emails (array of strings), phones (array of strings)
Calendarid, calendarId, title, start (ISO), end (ISO), allDay, location
Remindersid, calendarId, title, completed, priority, due (ISO, optional)

All returned data is invented. These endpoints do not access any real Apple library.

What do Apple's native APIs require for these services?

The framework requirements show what any Mac-based helper, whether your own design or a Figment connector, would need to handle.

Notes stores its content in a local SQLite-backed library protected by the macOS sandbox. Any process reading Notes needs iCloud Notes sync enabled and the right sandbox permissions. It must treat locked notes as a distinct case that needs a separate passphrase or biometric step before access is possible.

Photos uses PhotoKit, Apple's official framework for the shared photo library on Mac. PHAsset objects carry photo, video, and Live Photo metadata. Cloud-only assets must be explicitly requested and downloaded before use. The user must give explicit Photos authorization, because iCloud sign-in alone is not enough. A large library on a freshly connected Mac may take time to populate completely.

iCloud Drive files are reachable through the standard macOS filesystem once sync is active. Desktop and Documents folders appear in iCloud Drive only when the user has enabled that option in iCloud settings, and it is not on by default. A helper scoped to iCloud Drive cannot reach a device's internal phone storage.

Safari iCloud sync carries browsing history, bookmarks, Reading List items, open tabs, and Tab Groups. It does not include website cookies, iCloud Keychain passwords, or active login sessions.

How does connection setup and service state work?

Connecting an Apple Account involves several distinct gates: account sign-in, trusted-device approval, iCloud sync for each service, Mac system permissions, and app-level consent. A connection reports per-service states (connecting, needs_approval, syncing, ready, offline, reconnect_required, revoked), and each service moves through its own states independently. A connector reaching ready on one service does not make the others ready, and reaching ready does not guarantee complete history or confirmed delivery.

Revoking one app's grant stops only that app's access. Disconnecting the Apple Account stops every grant and all queued operations on that connection. Manage active grants at /icloud/account. For the full consent model and what "OAuth for iCloud" means in practice, see OAuth for iCloud: Connect Apple Data to Your App.

How do I get started?

Connect Apple Account opens the hosted setup screen. Sandbox testing is free. Live plans are $14/month (Apple Passwords) or $29/month (Full iCloud suite, which includes Messages) per connected Apple Account, and you request a demo for live access. The Contacts, Calendar, and Reminders endpoints are available on sandbox connections that have those services selected and the relevant read scope in your app grant.

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.