Skip to content
Whats91

Read the saved account-level Pusher Channels credentials for realtime integrations.

Pusher Credentials

Summary

Read the saved account-level Pusher Channels credentials for realtime integrations.

Prerequisites

  • Authorization: Bearer w91_live_xxx
  • Content-Type: application/json for JSON requests

Returns the Pusher Channels configuration saved on the Utility Pusher Settings page. The configuration is account-level and is not linked to any Meta phone number, so global, selected-number, and specific-number tokens can all read it.

Important

This endpoint returns the Pusher secret. Call it only from trusted server-side systems. Never call it from browser code, mobile apps, or any public client-side integration.

GET/api/v2/integrations/pusher/credentials

Retrieve saved Pusher Channels credentials.

cURL
curl -X GET "https://graph.whats91.com/api/v2/integrations/pusher/credentials" \
  -H "Authorization: Bearer w91_live_xxx"
Query-token fallback
curl -X GET "https://graph.whats91.com/api/v2/integrations/pusher/credentials?authToken=w91_live_xxx"
200 OK
{
  "success": true,
  "message": "Pusher credentials retrieved",
  "data": {
    "pusher": {
      "isActive": true,
      "sslEnabled": true,
      "credentialsFormat": "KEY_VALUE",
      "credentials": {
        "app_id": "1716587",
        "key": "pusher-key",
        "secret": "pusher-secret",
        "cluster": "ap2"
      }
    }
  },
  "metadata": {
    "apiVersion": "v2",
    "requestId": "request-uuid"
  }
}

Warning

Integration settings endpoints are exposed on /api/v2 only. The unprefixed twin path is not routed for this family.

SDK Examples

Use these examples as starting points for server-side implementations.

cURL
curl -X GET "https://graph.whats91.com/api/v2/integrations/pusher/credentials" \
  -H "Authorization: Bearer w91_live_xxx"
Node.js
const response = await fetch("https://graph.whats91.com/api/v2/integrations/pusher/credentials", {
  method: "GET",
  headers: {
    "Authorization": "Bearer w91_live_xxx"
  }
});

const data = await response.json();
console.log(data);
PHP
$ch = curl_init("https://graph.whats91.com/api/v2/integrations/pusher/credentials");
curl_setopt_array($ch, [
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer w91_live_xxx"
  ]
]);

$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests

response = requests.request(
    "GET",
    "https://graph.whats91.com/api/v2/integrations/pusher/credentials",
    headers={
        "Authorization": "Bearer w91_live_xxx",
    }
)

print(response.json())
C#
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer w91_live_xxx");

var request = new HttpRequestMessage(HttpMethod.Get, "https://graph.whats91.com/api/v2/integrations/pusher/credentials");

var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());