Create webhook action

Logs from Functions

You can export logs from your Functions using a Webhook action. See the Functions docs.

  1. In Events & Actions on the Admin Portal, click + Add Action.

  2. Click Webhook to select the action type.

  3. Enter the HTTPS URL of your webhook under Configuration (for example, https://your-domain.com/webhook/pubnub).

    Webhook URL field in Webhook action configuration

  4. (Optional) Add custom headers for authorization and select secret keys from your keysets.

  5. (Optional) Enable and configure Batching.

  6. (Optional) Enable and configure retries in Webhook retry.

  7. Pair the action with an event listener without leaving Actions. Click Add event listener and select an existing listener or create one.

  8. Click Save changes.

Webhook payloads

For payload examples and field descriptions, see Webhook payloads.

Last updated on
On this page