OAuth for iCloud developer guide

Use Hide My Email for Approved Agent Signups

An agent should never submit a user's real email at signup. Give it an iCloud+ Hide My Email alias instead, and track the alias lifecycle in your own state store.

Figment editorial teamPublished Updated Facts checked November 12, 2026

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:

StateWhat it meansReversible?
ActiveForwarding on; mail reaches the inboxYes, deactivate
DeactivatedForwarding paused; address still reservedYes, reactivate
DeletedAddress gone; unrecoverableNo

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:

FieldExample valuePurpose
aliasAddressApple-assigned random addressSubmitted at signup
label"NewsletterApp · agent · 2026-11-12"Visible in Apple Settings
note"workflow:content-discovery · trial"User context
stateactiveLifecycle stage
serviceUrlhttps://example.comMaps alias to service
createdAt2026-11-12T10:00:00ZAudit
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-12 lets the user identify the address in System Settings without opening the agent app. A generic label like Alias 23 pushes 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:

  1. Subscription ends. Update the ledger to deactivated, record deactivatedAt, and prompt the user to deactivate the alias in System Settings or iCloud.com.
  2. Confirmation window passes, or the user confirms the relationship is closed. Prompt the user to delete the alias and update the ledger to deleted.
  3. 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.

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.

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.