v1
latestOpenAPI 3.0.32026-07-17214860.6 KBTokens
Create APNs Token
Create an Apple Push Notification service (APNs) token.
Lives under the /device/ API module (not /database/). CloudKit's archived REST reference documents this under /database/..., but the live service routes only OPTIONS to that path and returns 405 Method Not Allowed for POST. The working path is the one CloudKit JS uses (setApiModuleName("device")).
post/device/{version}/{container}/{environment}/tokens/create
Path parameters
versionstring required
Protocol version
containerstring required
Container ID (begins with "iCloud.")
environment'development' | 'production' required
Container environment
Request body
Response
Token created successfully