v1

latestOpenAPI 3.0.32026-07-17214860.6 KB
Tokens

Register Token

Register an APNs device token for push notifications.

Lives under the /device/ API module (not /database/) — same rationale as tokens/create.

post/device/{version}/{container}/{environment}/tokens/register

Path parameters

versionstring required

Protocol version

containerstring required

Container ID (begins with "iCloud.")

environment'development' | 'production' required

Container environment

Request body

apnsEnvironment'development' | 'production' required

The APNs environment the token targets.

apnsTokenstring required

The APNs token to register

clientIdstring required

Logical CloudKit client identifier. Reuse the value used with tokens/create to keep both calls tied to the same logical client.

Response

Token registered successfully