Channels

Get Channel Statistics

Retrieves statistical data and general configuration for a specific channel.

  • URL: /channel/:channelId
  • Method: GET
  • Authentication: Authorization: Key <api_key>

Response (200):

{ "channel_info": { "channel_id": "b12f45cc-e89b-12d3-a456-426614174000", "name": "My E-commerce Shop", "created_at": "2026-03-20T10:00:00.000Z", "platforms": { "web": true, "android": true, "ios": false } }, "subscriber_count": 1420, "notification_stats": { "total_notifications_sent": 15, "total_recipients": 12000, "total_delivered": 11800, "total_bounced": 200, "total_clicked": 3500 } }

Examples

cURL

curl -X GET https://api.pushblitz.com/channel/b12f45cc-e89b-12d3-a456-426614174000 \ -H "Authorization: Key 53cf0d9b4bXXXXXXXXXXXX"

Node.js

const response = await fetch('https://api.pushblitz.com/channel/b12f45cc-e89b-12d3-a456-426614174000', { method: 'GET', headers: { 'Authorization': 'Key 53cf0d9b4bXXXXXXXXXXXX' } }); const data = await response.json();

Update Channel Providers

Updates the provider credentials (FCM for Android, APNS for iOS) for a specific channel.

  • URL: /channel/:channelId/providers
  • Method: PUT
  • Authentication: Authorization: Key <api_key>

Body (JSON):

ParameterTypeRequiredDescription
providers_configobjectYesJSON object containing fcm_service_account or apns_key structure.

Response (200):

{ "message": "Providers configuration updated successfully." }

Examples

cURL

curl -X PUT https://api.pushblitz.com/channel/b12f45cc-e89b-12d3-a456-426614174000/providers \ -H "Content-Type: application/json" \ -H "Authorization: Key 53cf0d9b4bXXXXXXXXXXXX" \ -d '{ "providers_config": { "fcm_service_account": "{...firebase admin json...}", "apns_key": "MIG..." } }'

Node.js

const response = await fetch('https://api.pushblitz.com/channel/b12f45cc-e89b-12d3-a456-426614174000/providers', { method: 'PUT', headers: { 'Content-Type': 'application/json', 'Authorization': 'Key 53cf0d9b4bXXXXXXXXXXXX' }, body: JSON.stringify({ providers_config: { fcm_service_account: "{...}" } }) }); const data = await response.json();