PushSubscriptionCleanupService
Chatto exposes this service below /api/connect.
Shared message and enum definitions are documented in Shared Types And Enums.
PushSubscriptionCleanupService
Section titled “PushSubscriptionCleanupService”Public capability-authenticated cleanup for browser push subscriptions.
DeleteSubscription
Section titled “DeleteSubscription”Removes the exact current subscription when its Push API auth secret and per-save cleanup token match. This public RPC requires those capabilities, not an authenticated account session, and does not reveal whether a match existed.
POST /api/connect/chatto.auth.v1.PushSubscriptionCleanupService/DeleteSubscriptionInput: DeleteSubscriptionRequest
Section titled “Input: DeleteSubscriptionRequest”Capability-authenticated request to remove an exact push subscription.
| Field | Type | Description |
|---|---|---|
endpoint | string | Complete push service endpoint URL. Its opaque path identifies the exact browser subscription; a provider host alone is not unique. |
auth | string | Authentication secret from the same browser PushSubscription. |
cleanup_token | string | Per-save capability supplied with the original Subscribe request. Cleanup is a no-op after any later save replaces this token. |
Result: DeleteSubscriptionResponse
Section titled “Result: DeleteSubscriptionResponse”Response from capability-authenticated subscription cleanup. Success does not reveal whether a matching subscription existed.