update_app_branding
Update an existing application's notification icon URL, automated welcome push message (including drip delay welcome_delay_sec and promo target URL welcome_url), zero-downtime custom VAPID keys (vapid_public_key & vapid_private_key for migrating from OneSignal/LaraPush), and optional native mobile push credentials (Android FCM HTTP v1 service account JSON and iOS APNs .p8 key). Use this tool to configure app-level branding, onboarding welcome alerts, custom VAPID key migration, or native mobile credentials; do not use it to create a new app (use create_app instead) or configure on-site HTML popups (use configure_inapp_banner instead). Prerequisite: call list_apps first to obtain app_id. Requires PUSHNOTIF_API_KEY and idempotently updates only the fields provided at 0 configuration cost (when welcome_enabled=true, each new subscriber welcome push deducts 1 credit; APNs requires apns_key_id, apns_team_id, apns_bundle_id, and apns_p8_key together). Returns JSON { ok, app_id, icon_url, welcome_enabled, welcome_url, welcome_delay_sec, custom_vapid_updated, android_fcm_configured, ios_apns_configured }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | Target application ID in format app_xxxx (obtain from list_apps) | |
| icon_url | No | Optional direct HTTPS URL to a square PNG/JPG/WebP brand icon (recommended 192x192px) | |
| apns_key_id | No | Optional 10-character Apple Developer APNs Key ID (provide together with apns_team_id, apns_bundle_id, and apns_p8_key) | |
| apns_p8_key | No | Optional full PEM content of Apple's AuthKey_XXXX.p8 private key file | |
| welcome_url | No | Optional target promo/onboarding HTTPS URL opened when the subscriber clicks the welcome push notification (defaults to site_url) | |
| apns_team_id | No | Optional 10-character Apple Developer Team ID | |
| welcome_body | No | Body text of the automated welcome push notification (max 180 characters; used when welcome_enabled=true) | |
| welcome_title | No | Headline of the automated welcome push notification (max 80 characters; used when welcome_enabled=true) | |
| apns_bundle_id | No | Optional iOS application Bundle Identifier (e.g., 'id.company.app') | |
| welcome_enabled | No | Set true to automatically send a welcome push notification immediately after a visitor subscribes | |
| vapid_public_key | No | Optional URL-safe Base64 VAPID Public Key imported from OneSignal, LaraPush, or Webpushr for zero-downtime migration | |
| vapid_private_key | No | Optional URL-safe Base64 or PEM VAPID Private Key paired with vapid_public_key | |
| welcome_delay_sec | No | Optional drip delay in seconds (0 to 300, default: 0) before firing the welcome push notification after opt-in | |
| fcm_service_account_json | No | Optional raw JSON string of Google Firebase Service Account key for native Android FCM HTTP v1 delivery |