---
title: "List an user's Web Push tokens"
method: GET
path: "/users/{user_id}/channels/web_push/tokens"
tags: ["web_push"]
---

# List an user's Web Push tokens

`GET /users/{user_id}/channels/web_push/tokens`

Lists all Web Push tokens associated with a specific user. This endpoint is available to project administrators and returns a paginated list of tokens, including both active and revoked tokens.

## Path parameters

- `user_id` string, required

## Query parameters

- `limit` integer
- `starting_after` string
- `ending_before` string

## Response `200`

OK

- WebPushTokenCollection
  - `data` WebPushToken[]
    - `created_at` string, date-time, required — The timestamp when the token was created.
    - `discarded_at` string, date-time, nullable — The timestamp when the token was discarded, if applicable.
    - `endpoint` string, uri, required — The push subscription URL obtained from PushSubscription.endpoint after calling registration.pushManager.subscribe(). This is the unique URL for this device that push messages will be sent to.
    - `id` string, required — The unique identifier for the token.
    - `keys` object, required — The encryption keys from the PushSubscription.getKey() method, needed to encrypt push messages for this subscription.
      - `auth` string, byte, required — The authentication secret obtained from PushSubscription.getKey('auth'). Used to encrypt push messages for this subscription.
      - `p256dh` string, byte, required — The P-256 ECDH public key obtained from PushSubscription.getKey('p256dh'). Used to encrypt push messages for this subscription.
    - `updated_at` string, date-time, nullable — The timestamp when the token metadata last changed.
  - `links` Links
    - `first` string
    - `next` string, nullable
    - `prev` string, nullable

---

[API](https://skmtc.net/magicbell/apis/magicbell-api.md) · [All operations](https://skmtc.net/magicbell/apis/magicbell-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/magicbell/magicbell-api/revisions/8b99dca11019/schema)
