Introduction

Pepo webhooks allow community owners and app developers to subscribe to Pepo videos within a community and stream them anywhere!

<aside> 📺 The Consensys One Million Developers team is the first to implement a live feed using Pepo webhooks. You can view their live feed of aha moments and big ideas for Ethereum here.

</aside>

How to subscribe to Pepo video webhooks

Subscribing to Pepo video webhooks is simple. To request access, send an email to [email protected] including your URL end-point and the hashtags you want to subscribe to. Alternatively, you can chat with us in the Pepo slack space here.


Webhooks details

With Pepo video webhooks, app developers can subscribe to Pepo videos in a particular channel, as defined by the channel hashtags.

Whenever there is an event on those videos, webhook data is sent to the subscribed URL. There are two webhook topics that can be subscribed to: video/update and video/contribute.

These are detailed below. First, let’s take a look at the basic webhook event format.

Webhook event format

Webhook event data is validated by creating a digital signature of webhook event data including the created_at timestamp, webhook version string, and webhook secret.

Each webhook event data request includes a header with a pepo-signature which is generated using webhook secret. If the generated signature matches the pepo-signature header value, the webhook event should be processed, otherwise it should be discarded. Code examples are available on request.

Webhook Topics

There are two webhook events topics

  1. video/update, and
  2. video/contribution