subscriptions_get
Retrieve details of a specific subscription by providing the project ID and subscription ID. Use this to view subscription information for a web push notification project.
Instructions
To show information about an individual subscription,
send a GET request to /projects/PROJECT_ID/subscriptions/SUBSCRIPTION_ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The ID of a project. | |
| subscription_id | Yes | The ID of a subscription. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | A unique identifier for each subscription. This is automatically generated upon subscription creation. | |
| uid | No | A user identifier associated with the subscription. You can use it to find the push subscription of a user and then send notifications to that specific user. You can choose any ID that makes sense for your application, like the ID of the user in your database. | |
| auth | No | The auth property of the push subscription object, as described in the W3C Push API. It is an authentication secret that an application server uses in authentication of its messages. | |
| tags | No | Tags associated with the subscription. You can use them to filter the push subscriptions and send notifications to a segment of your audience. You can add all tags that make sense for your application. | |
| p256dh | No | The p256dh property of the push subscription object, as described in the W3C Push API. It is an elliptic curve Diffie-Hellman (ECDH) public key associated with the push subscription. | |
| endpoint | No | The push endpoint of a browser, as described in the W3C Push API. It is a URL where the application can deliver the push notifications that should be sent to the browser. An endpoint uniquely identifies the subscription. | |
| created_at | No | A time value given in ISO 8601 format. It represents when the subscription was created. | |
| project_id | No | The ID of the project the subscription belongs to. | |
| last_click_at | No | A time value given in ISO 8601 format. It represents the last time that a notification sent to this subscription was clicked by the user. If there aren't any clicks on notifications yet, null is returned. |