authorize_channel
Generate authorization tokens for private or presence channels to authenticate Pusher client connections via your auth endpoint.
Instructions
Generate an authorization token for a private or presence channel. Useful when building auth endpoints for Pusher client connections.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"socketId": "<socketId>",
"channel": "<channel>"
},
"name": "authorize_channel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | Private or presence channel name (must start with 'private-' or 'presence-') | |
| socketId | Yes | The socket ID from the client connection | |
| presenceData | No | Required for presence channels — identifies the connecting user |