---
title: "Fetch a Web Push token"
method: GET
path: "/channels/web_push/tokens/{token_id}"
tags: ["web_push"]
---

# Fetch a Web Push token

`GET /channels/web_push/tokens/{token_id}`

Fetches details of a specific Web Push token belonging to the authenticated user. Returns information about the token's status, creation date, and any associated metadata. Users can only access their own tokens.

## Path parameters

- `token_id` string, required

## Response `200`

OK

- 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.

---

[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)
