Create webhook action
Logs from Functions
You can export logs from your Functions using a Webhook action. See the Functions docs.
-
In Events & Actions on the Admin Portal, click + Add Action.
-
Click Webhook to select the action type.
-
Enter the HTTPS URL of your webhook under Configuration (for example,
https://your-domain.com/webhook/pubnub
). -
(Optional) Add custom headers for authorization and select secret keys from your keysets.
-
(Optional) Enable and configure Batching.
-
(Optional) Enable and configure retries in Webhook retry.
-
Pair the action with an event listener without leaving Actions. Click Add event listener and select an existing listener or create one.
-
Click Save changes.
Webhook payloads
For payload examples and field descriptions, see Webhook payloads.