Skip to main content

Zenedu API & Webhooks

Connect Zenedu to other services using API and webhooks.

API and webhooks connect Zenedu to your website, CRM, and other services so you can share data and automate your work.

What the API is for

The API lets another system retrieve data from Zenedu and perform actions in your workspace. For example, you can sync subscriber and order information or grant access through an offer.

How to connect to the API

  1. In Zenedu, open Workspace settings → API & Webhooks.

  2. Copy the API token to connect your integration.

  3. Use the developer documentation for authentication, available methods, request parameters, and examples.

Keep the token secret: it gives access to your account. If you reset it, update it in your connected services — the previous token will stop working.


How webhooks work

Webhooks send data from Zenedu to a URL you provide. Use them to notify another service, such as your CRM, when an event occurs or an automation runs. Your developer or the service you connect can provide the HTTPS URL that receives the data.

Subscribe to events in workspace settings

A webhook set up in workspace settings receives the selected events from all bots in the workspace.

  1. Open Settings → Workspace → API & Webhooks.

  2. In the Webhooks section, click Add.

  3. Enter the receiving URL, select the events you need, then click Add.

There are 39 events to choose from. Here are some examples by category.

  • Orders and subscriptions. An order is paid, canceled, or refunded. A subscription starts, renews, or has an overdue payment.

  • Subscribers. A subscriber unsubscribes from the bot or returns, a custom field changes, or a tag is removed.

  • Products and funnels. A subscriber starts or finishes a product or funnel, opens or completes a lesson, loses access when it expires, or clicks a button.

  • Channels and groups. A subscriber joins or leaves a channel or group.

  • Responses and assignments. A subscriber answers a poll, quiz, or question. Correct and incorrect quiz answers have separate events. You can also track when an assignment is submitted or approved.

  • Messages. A message is received by the bot or sent to a subscriber from Chats.

See the full event catalog for event names and the data each event sends.

Send a webhook from an automation

Use the Send webhook action for a specific scenario, such as when a subscriber gets a particular tag or starts a particular product.

  1. Open Marketing → Automations in the bot and create an automation.

  2. Under When, choose a trigger and select the tag, product, or other item you want to track. Add conditions if needed.

  3. Under Then, select Send webhook, enter the receiving URL, and save the automation.

To run an automation when Zenedu sends a specific step to a subscriber, choose the Step sent trigger and select the step from the funnel or product. This trigger works with any automation action, including Send webhook.

For setup examples and the request format, see the webhook documentation.

Did this answer your question?