Tracking

Track Click (Internal/Public Mechanism)

This endpoint is primarily used internally by the client-side Service Worker or Mobile SDKs to log clicks dynamically when a user taps a notification.

  • URL: /track-click
  • Method: GET
  • Authentication: Public

Query Parameters:

ParameterTypeRequiredDescription
notificationIduuidYesThe ID of the clicked notification.
urlstringNoDestination URL the user was redirected to.
channelIduuidYesAssociated channel ID.
subscriptionIduuidYesID of the specific subscription that clicked it.

Response (N/A): This endpoint usually redirects or responds statelessly.

Examples

cURL

curl -X GET "https://api.pushblitz.com/track-click?notificationId=987f65cc-e89b-12d3-a456-426614174000&channelId=b12f45cc-e89b-12d3-a456-426614174000&subscriptionId=334e32aa-e89b-12d3-a456-426614174000&url=https%3A%2F%2Fmysite.com"