When an agent signs up for a service on a user's behalf, it must not submit the user's real email. iCloud+ Hide My Email generates a unique, random forwarding address for each service, and each address forwards to any email address on the user's Apple Account. No public Figment endpoint and no Apple REST API manages these aliases programmatically. Creation, labeling, deactivation, and deletion happen through Apple's own surfaces: System Settings, iCloud.com, Safari, and Mail. The part you design is the alias lifecycle: label each address with agent context, track it in your own state store, and deactivate it cleanly when a subscription ends.
Can an agent create or manage Hide My Email aliases through an API?
No. No public programmatic API, from Apple or from Figment, manages iCloud+ Hide My Email aliases. The user creates and manages aliases through:
- System Settings → [Your Name] → iCloud → Hide My Email on macOS
- iCloud.com → Hide My Email in a browser
- Safari and Mail, which can generate a new alias automatically at signup forms
An agent workflow must prompt the user to create an alias before the signup, or draw from an alias the user has already created and recorded. The agent does not receive an alias address until the user provides it.
What do I need before using Hide My Email?
You need an active iCloud+ subscription, or an Apple One plan that includes iCloud+. Without a qualifying subscription, the feature does not appear in System Settings and no aliases exist to list or modify.
How is this different from Sign In with Apple relay emails?
They are separate systems. When a user signs in to a third-party service with Sign In with Apple and chooses to hide their email, Apple creates a per-app relay address automatically. That relay is Apple-managed, generated per developer App ID, and does not share an alias list, management surface, or programmatic interface with iCloud+ Hide My Email. This article covers iCloud+ Hide My Email for agent-managed signups outside Sign In with Apple flows.
What is the lifecycle of an alias?
Apple's Hide My Email assigns a random address string, so the agent never chooses the alias text. After creation, each alias carries two metadata fields:
- Label
- shown in System Settings and iCloud.com. Use it to record the service, the agent identity, and the signup date.
- Note
- free text. Use it for a workflow ID, subscription tier, or source context.
An alias moves through three stages:
| State | What it means | Reversible? |
|---|---|---|
| Active | Forwarding on; mail reaches the inbox | Yes, deactivate |
| Deactivated | Forwarding paused; address still reserved | Yes, reactivate |
| Deleted | Address gone; unrecoverable | No |
Deactivate when a subscription lapses. Delete only when the address will never be used again. That keeps re-subscription options open without cluttering the user's alias list.
The forwarding target is independent of alias status. It points to any email address on the user's Apple Account, either iCloud Mail or a personal domain address. Changing the forwarding target does not change the alias address or affect delivery until the next incoming message.
How should I track aliases in my own state store?
Keep a ledger, because aliases are managed through Apple's user interfaces and your agent's own store becomes the tracking layer. Record every alias the agent uses with the metadata needed to manage it later. A minimal ledger entry:
| Field | Example value | Purpose |
|---|---|---|
aliasAddress | Apple-assigned random address | Submitted at signup |
label | "NewsletterApp · agent · 2026-11-12" | Visible in Apple Settings |
note | "workflow:content-discovery · trial" | User context |
state | active | Lifecycle stage |
serviceUrl | https://example.com | Maps alias to service |
createdAt | 2026-11-12T10:00:00Z | Audit |
deactivatedAt | (null until lapsed) | Cleanup trigger |
This is a developer-owned design. Store it in the same durable data store as the rest of the workflow state.
- Label discipline. A label like
NewsletterApp · agent · 2026-11-12lets the user identify the address in System Settings without opening the agent app. A generic label likeAlias 23pushes cleanup work back onto the user. Treat the label as a human-readable receipt. - State drift. If the user changes or deactivates an alias manually in System Settings or iCloud.com, the ledger entry drifts. Re-read the user's current alias state before acting on a lapsed subscription instead of assuming the ledger matches what Apple holds.
What happens when a subscription ends?
Run this cleanup sequence:
- Subscription ends. Update the ledger to
deactivated, recorddeactivatedAt, and prompt the user to deactivate the alias in System Settings or iCloud.com. - Confirmation window passes, or the user confirms the relationship is closed. Prompt the user to delete the alias and update the ledger to
deleted. - Resubscription occurs before deletion. Prompt the user to reactivate the alias, update the label to the new signup date, and resume using the address.
The agent prompts and the user acts. No alias operation changes Apple account data unless the user performs it through Apple's interface.
What should I read next?
- OAuth for iCloud: Connect Apple Data to Your App: the Figment connection model, OAuth flow, and token lifecycle that underpin every capability on this page.
- Connect Find My Devices to an Assistant: a parallel pattern for exposing owned device locations to an approved agent.
- Give an Agent Permission to Run Home Scenes: the same connection model applied to HomeKit automation.
- Use Shared Find My Locations in Approved Workflows: approved sharing patterns for location data.
Connect Apple Account to start building with the Figment iMessage API and synthetic sandbox. For Hide My Email, begin with the iCloud+ prerequisite and Apple Settings.