---
title: "Create APNs Token"
method: POST
path: "/database/{version}/{container}/{environment}/{database}/tokens/create"
tags: ["Tokens"]
---

# Create APNs Token

`POST /database/{version}/{container}/{environment}/{database}/tokens/create`

Create an Apple Push Notification service (APNs) token

## Path parameters

- `version` string, required — Protocol version
- `container` string, required — Container ID (begins with "iCloud.")
- `environment` 'development' | 'production', required — Container environment
- `database` 'public' | 'private' | 'shared', required — Database scope

## Request body

- object
  - `apnsEnvironment` 'development' | 'production'

## Response `200`

Token created successfully

- TokenResponse
  - `apnsToken` string
  - `webcAuthToken` string

## Other responses

- `400` — Bad request
- `401` — Unauthorized

## Changes

- **2025-07-05** `a6d50d6e9dde` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/brightdigit/apis/apple-cloudkit-web-services-api/changes/database/:version/:container/:environment/:database/tokens/create/post.md)

---

[API](https://skmtc.dev/brightdigit/apis/apple-cloudkit-web-services-api.md) · [All operations](https://skmtc.dev/brightdigit/apis/apple-cloudkit-web-services-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/brightdigit/apple-cloudkit-web-services-api/revisions/a6d50d6e9dde/schema)
