Skip to content

Register a widget push token​

POST
/api/push/apns/widget-token

Registers a WidgetKit push token (a widget extension's token, separate
from the app's device token) so the server can tell widgets to reload
when the user's data changes. Re-registering a token moves it to the
calling user.

Authorizations​

bearerAuth

API token created via POST /api/tokens or the db:create-token CLI command

Type
HTTP (bearer)

Request Body​

application/json
JSON
{
"push_token": "string",
"bundle_id": "com.example.app",
"platform": "string",
"environment": "production",
"widget_kind": "string"
}

Responses​

Registered

application/json
JSON
{
"data": {
"registered": true
}
}

Samples​

Powered by VitePress OpenAPI