Skip to content

API reference

The Webinly REST API lets your own code and the tools you already use talk to your account. Pull registrations into a CRM, register people from your own form, read attendance and analytics, manage bookings and deals, enroll students, and get a signed webhook the moment something happens.

Base URL: https://app.webinly.com/api/v1Version: v1

The API is included on the Pro and Scale plans, and is a $9/month add-on on Starter. Create a key in your dashboard to get started. The same page has Try it: pick a report, run it with your key, and see the answer as a table, as curl, and as a Google Sheets script.

Overview

Every endpoint lives under https://app.webinly.com/api/v1, speaks JSON, and is scoped to the account that owns the key. A request never sees another account's data. All write bodies are JSON; send Content-Type: application/json.

Authentication

Authenticate every request with a secret key in the Authorization header as a bearer token. Keys start with wbl_.

curl https://app.webinly.com/api/v1/webinars \
  -H "Authorization: Bearer wbl_your_secret_key"
  • Create and revoke keys in Settings › API. The secret is shown once, when you create it. Store it somewhere safe; if you lose it, delete the key and make a new one.
  • Each key carries only the scopes you tick. A call that needs a scope the key does not have returns 403. To change a key's scopes, make a new key.
  • Keys can expire. Pick 30 days, 90 days, 1 year, or never when you create one. An expired key is rejected like an unknown one.
  • Keep keys server-side. A key is a password for your whole account's data in its scopes. Never ship one in a browser, a mobile app, or a public repository.

Scopes

A scope is one permission. Tick exactly the ones a key needs.

ScopeGrants
read:webinarsList the webinars on your account.
read:registrationsRead a webinar's registrations and attendance.
read:analyticsRead a webinar's roll-up analytics.
write:registrationsRegister someone for a webinar from your own code.
read:schedulingRead bookable event types, open slots, and bookings.
write:schedulingCreate and cancel bookings.
read:contactsRead your CRM contacts.
read:dealsRead your CRM deals and pipelines.
read:coursesList the courses on your account.
write:coursesGive a person access to a course.
write:automationsPut people into an automation (its emails and messages start).
read:automationsRead your automations and their steps.
write:automationbuilderBuild, change, switch on and off, and delete automations.
remove:automationsTake people out of automations.
read:answersAdd each registrant's phone and registration-form answers to the registrations list.
read:studentsRead a course's students and how far each one got.
read:emailRead your email campaigns' totals, one campaign's top links, and why people were not mailed.
read:campaignsRead your email campaigns' content, drafts included.
write:campaignsDraft, copy and delete email campaigns. It never sends or schedules one.
send:campaignsSend, schedule and stop email campaigns, and send a test of one.
read:templatesRead your saved email templates.
write:templatesCreate, change and delete email templates.
read:whatsappRead your WhatsApp campaigns' and group posts' results. Counts only, never who.
read:ordersRead every sale, who bought it and its refunds.
write:contactsCreate and update contacts, add and remove tags, unsubscribe someone.
read:engagementRead a webinar's questions (with who asked), poll results and link clicks.
read:formsRead your forms, their questions and every response.
read:privateanswersWith read:forms: read the answers to questions that have the Private answer switch on. Without it they come back masked.
read:customvaluesRead your custom values.
write:customvaluesCreate, change and delete custom values.
read:webhooksList your webhook endpoints.
write:webhooksCreate and delete webhook endpoints.

Keys created before scopes existed carry a legacy read:* wildcard. It opens only read:webinars, read:registrations and read:analytics; anything newer needs its own box on a new key.

None of the automation, email campaign, email template or custom value boxes is ticked when you make a key, and a key made before a box existed does not have it: make a new key with that box ticked. Sending a campaign and taking people out of an automation have boxes of their own (send:campaigns and remove:automations): write:campaigns never sends, and write:automations only adds people.

Rate limits

Requests are limited on two dimensions:

120 / minute / IP
Across every key calling from one address.
120 / minute / key
Per API key, on top of the per-IP budget.
60 / minute / key, reports
The report endpoints (Reports, a webinar's analytics, your email campaign results, a campaign's send check, who is in an automation, and WhatsApp) share this budget. A daily or hourly report needs a handful of calls.

Over the limit returns 429 with a Retry-After header (seconds until capacity frees up). Back off and retry after that many seconds.

Errors

Errors use standard HTTP status codes and a JSON body with an error string.

200 / 201
Success. 201 when a new resource was created.
400
Bad request: invalid JSON, a missing field, or a malformed value. The automation calls (except enroll), and the email campaign, email template and custom value calls, also refuse a field they do not take, and the error names it.
401
Missing or invalid key.
403
Valid key, but the plan does not include the API or the key lacks the scope.
404
No such resource on your account.
409
A conflict, such as a booking that is already cancelled, an automation that is still on, or a campaign that is scheduled, already queued, or changed since you read it.
413
The body is over 1 MB, on an automation call (except enroll), an email campaign call or a custom value call.
429
Rate limited, or a campaign test past its limits. See Retry-After.
503
Not done just now, and nothing was sent: a campaign test the mail service could not take, or a resume that could not start. Try again after Retry-After.
{
  "error": "Forbidden: key lacks read:contacts scope"
}

Pagination

List endpoints that can grow large use cursor pagination. Pass limit for the page size and follow the cursor the response returns until it is null. A cursor is opaque: pass back exactly what you got, do not build one yourself. A cursor that was changed or cut short is refused with a 400.

GET /contacts, /deals
limit (1-200, default 50). Response carries next_cursor; pass it as ?cursor= for the next page.
GET /webinars/{slug}/registrations
limit (1-500, default 100). Response carries nextCursor; pass it as ?cursor=.
GET /scheduling/bookings
limit (1-200, default 50) with a numeric offset.

Webinars

GET/webinarsread:webinars

List every webinar on your account, newest first.

curl https://app.webinly.com/api/v1/webinars \
  -H "Authorization: Bearer wbl_..."

{
  "webinars": [
    {
      "id": "0f3d...",
      "slug": "launch-masterclass",
      "title": "Launch Masterclass",
      "name": "Launch Masterclass",
      "description": "...",
      "status": "published",
      "scheduledAt": "2026-11-02T17:00:00.000Z",
      "timezone": "America/New_York",
      "durationSeconds": 3600,
      "createdAt": "2026-10-01T09:12:00.000Z"
    }
  ]
}
GET/webinars/{slug}/registrationsread:registrations

List a webinar's registrations with attendance metrics. Cursor paginated. With the read:answers scope too, each row also carries phone and answers (this webinar's form questions). They are kept on the person, so each is the latest value they gave.

limit
1-500, default 100.
cursor
The nextCursor from the previous page.
includeTest
Set to 1 to include host test registrations (excluded by default).
curl "https://app.webinly.com/api/v1/webinars/launch-masterclass/registrations?limit=100" \
  -H "Authorization: Bearer wbl_..."

{
  "registrations": [
    {
      "id": "a1b2...",
      "name": "Sara Lee",
      "email": "sara@example.com",
      "registeredAt": "2026-10-10T14:03:00.000Z",
      "sessionAt": null,
      "utm": { "source": "newsletter" },
      "attended": true,
      "attendedAt": "2026-11-02T17:01:10.000Z",
      "watchPct": 82,
      "completed": false,
      "phone": "+15551234567",
      "answers": [
        { "key": "company", "label": "Company", "value": "Acme" }
      ]
    }
  ],
  "nextCursor": "eyJyZWdpc3RlcmVkQXQiOiIuLi4ifQ",
  "limit": 100
}
POST/webinars/{slug}/registrationswrite:registrations

Register someone from your own code. The response returns a signed watch link you can email them. The same person posted twice gets the same link back (idempotent per email), with alreadyRegistered: true. The phone and the first and last name are saved on the person's contact and sent in the registration.created webhook. A phone sent on a later post fills a contact that has none; a phone the contact already has is kept.

name
Required, 1-200 characters, unless you send first_name or last_name: then it is made from them.
email
Required. A valid address.
first_name, last_name
Optional. Up to 80 characters each.
phone
Optional. With its country code (+96555123456 or 0096555123456), or the local number with phone_country. A number sent with no country code and no phone_country is kept as sent, never given a country. A value that is not a phone number is refused with a 400 that says why.
phone_country
Optional. The two-letter country code of a local phone, like KW.
utm
Optional. { source, medium, campaign, term, content }.
referrerRid
Optional. The registration id that referred them.
curl -X POST https://app.webinly.com/api/v1/webinars/launch-masterclass/registrations \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "first_name": "Sara", "last_name": "Lee", "email": "sara@example.com", "phone": "+96555123456" }'

{
  "registration": {
    "id": "a1b2...",
    "name": "Sara Lee",
    "email": "sara@example.com",
    "sessionAt": null,
    "registeredAt": "2026-10-10T14:03:00.000Z",
    "utm": null,
    "referrerRegistrationId": null
  },
  "watchUrl": "https://app.webinly.com/w/launch-masterclass/registered?rid=a1b2...&sig=...",
  "signature": "...",
  "alreadyRegistered": false
}

# A phone that is not a phone number is a 400:
{ "error": "phone \"+1 555 0100\" is too short for a +1 number." }
GET/webinars/{slug}/analyticsread:analytics

The same roll-ups your results page shows, in one JSON shape. Your own test sign-ups are left out, as on the results page. sales, buyers and revenue are what Webinly's checkouts took for this webinar (tickets, add-ons and in-room offers, after refunds, test payments out), revenue one entry per currency. With from and to, each number counts what happened in that window. Every webinar in one call: Reports.

from
Optional. ISO 8601 date or date-time with a zone; a bare date is midnight UTC.
to
Optional. Same format, not included.
curl https://app.webinly.com/api/v1/webinars/launch-masterclass/analytics \
  -H "Authorization: Bearer wbl_..."

{
  "webinar": { "id": "0f3d...", "slug": "launch-masterclass", "title": "Launch Masterclass" },
  "window": null,
  "totals": {
    "registrations": 1240,
    "attended": 712,
    "noShow": 528,
    "completed": 401,
    "offerClicks": 96,
    "offerLinkPeople": 71,
    "reportedSales": 18,
    "attendanceRate": 57.4,
    "completionRate": 56.3,
    "avgWatchPct": 64.2,
    "engaged": 455,
    "sales": 42,
    "buyers": 40,
    "revenue": [
      { "currency": "USD", "amount_cents": 205800, "amount_decimal": "2058.00", "currency_exponent": 2 },
      { "currency": "KWD", "amount_cents": 450000, "amount_decimal": "450.000", "currency_exponent": 3 }
    ]
  },
  "utmSources": [ { "source": "newsletter", "n": 410 } ],
  "referralLeaderboard": [ { "referrerId": "a1b2...", "n": 22 } ]
}
GET/webinars/{slug}/engagementread:engagement

What people did in the room, across every session: the questions they asked (with who asked, newest first, up to 1,000; questions_total gives the full count), each poll's results, and the clicks on your offers and links. The same numbers as your results page. Test seats are left out.

curl https://app.webinly.com/api/v1/webinars/launch-masterclass/engagement \
  -H "Authorization: Bearer wbl_..."

{
  "webinar": { "slug": "launch-masterclass", "title": "Launch Masterclass" },
  "questions": [
    {
      "id": "q1...",
      "body": "Is there a replay?",
      "asker_name": "Sara Lee",
      "asker_email": "sara@example.com",
      "asked_at": "2026-10-10T10:00:00.000Z",
      "answered_at": "2026-10-10T10:05:00.000Z",
      "answer": "Yes, for a week.",
      "upvotes": 3,
      "is_public": true
    }
  ],
  "questions_total": 41,
  "polls": [
    {
      "id": "p1...",
      "question": "Did this help?",
      "kind": "single",
      "options": [
        { "label": "Yes", "votes": 210 },
        { "label": "No", "votes": 12 }
      ],
      "total_votes": 222,
      "voters": 222
    }
  ],
  "links": {
    "clicks": 130,
    "people": 96,
    "anonymous_clicks": 4,
    "by_link": [
      {
        "kind": "offer",
        "label": null,
        "url": "https://example.com/checkout",
        "clicks": 96,
        "people": 71,
        "anonymous_clicks": 2,
        "last_clicked_at": "2026-10-10T11:02:00.000Z"
      }
    ]
  }
}

people under links counts each person once across every link, so it can be lower than the per-link counts added up.

Scheduling

Read what is bookable, read open slots, and create or cancel bookings. Every slot the API offers is one the booking page would offer: the same hours, buffers, caps, min-notice and calendar busy rules apply. The API never charges a card; a paid event returns a hosted checkout URL for the attendee to pay.

GET/scheduling/event-typesread:scheduling

List your active, public event types. Secret event types are omitted.

curl https://app.webinly.com/api/v1/scheduling/event-types \
  -H "Authorization: Bearer wbl_..."

{
  "event_types": [
    {
      "id": "e7c0...",
      "slug": "intro-call",
      "name": "Intro call",
      "duration_minutes": 30,
      "timezone": "Europe/London",
      "location_kind": "google_meet",
      "deposit_cents": 0,
      "requires_approval": false
    }
  ]
}
GET/scheduling/event-types/{id}/slotsread:scheduling

Open times for one event type in a date range.

from, to
Required. YYYY-MM-DD.
tz
Optional IANA timezone. Defaults to the event type's.
duration
Optional minutes, for events that offer a choice.
curl "https://app.webinly.com/api/v1/scheduling/event-types/e7c0.../slots?from=2026-11-01&to=2026-11-07&tz=Europe/London" \
  -H "Authorization: Bearer wbl_..."

{
  "timezone": "Europe/London",
  "slots": [
    {
      "start_utc": "2026-11-03T09:00:00.000Z",
      "end_utc": "2026-11-03T09:30:00.000Z",
      "host_account_id": "h1...",
      "seats_remaining": 1,
      "seat_capacity": 1
    }
  ],
  "days_with_slots": ["2026-11-03", "2026-11-04"]
}
GET/scheduling/bookingsread:scheduling

List bookings on your account, newest first.

status
Filter by lifecycle state, e.g. cancelled.
from, to
Filter by slot time (ISO).
limit, offset
1-200, default 50, with a numeric offset.
POST/scheduling/bookingswrite:scheduling

Create a booking on the attendee's behalf. Use a start_utc from the slots endpoint. A paid event responds payment_required with a checkout URL; an approval event responds pending_approval.

event_type_id
Required. UUID.
slot_start_utc
Required. The slot's start_utc.
attendee_name, attendee_email
Required.
attendee_timezone
Optional IANA timezone.
duration_minutes
Optional, for variable-length events.
host_account_id
Optional. Pin a round-robin host (from the slot).
answers
Optional map of question answers.
repeat_weeks
Optional 1-12 to book a weekly series.
curl -X POST https://app.webinly.com/api/v1/scheduling/bookings \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{
    "event_type_id": "e7c0...",
    "slot_start_utc": "2026-11-03T09:00:00.000Z",
    "attendee_name": "Sara Lee",
    "attendee_email": "sara@example.com"
  }'

{ "status": "booked", "booking_id": "bk_...", "recurrence": null }
POST/scheduling/bookings/{id}/cancelwrite:scheduling

Cancel a booking. This runs the same refund, calendar cleanup and cancellation email the dashboard does. Set scope: "following" to also cancel later weeks of a series.

curl -X POST https://app.webinly.com/api/v1/scheduling/bookings/bk_.../cancel \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "reason": "Customer requested" }'

{ "status": "cancelled", "cancelled_count": 1, "deposit_refund": null }

Sales

GET/ordersread:orders

Every sale on your account, newest first: webinar tickets, add-ons, orders (in-room offers, funnels, courses, paid forms), one-click upsells and downsells, subscription renewals and event seats. One row per sale, the same rows as Sales > Transactions in your dashboard. amount_cents is the money you kept after refunds; a refunded sale is still listed, with its status. Test payments are left out unless you ask for them. Card brand and last 4 digits are not stored, so they are not returned. Cursor paginated.

from
Sales paid at or after this time. ISO 8601: 2026-10-01 (midnight UTC) or 2026-10-01T09:00:00Z.
to
Sales paid before this time. Same format.
status
paid, partially_refunded or refunded.
type
ticket, addon, order, one_click, renewal or event.
include_test
Set to 1 to include test payments (is_test: true).
limit
1-200, default 50.
cursor
The next_cursor from the previous page.
curl "https://app.webinly.com/api/v1/orders?from=2026-10-01&limit=50" \
  -H "Authorization: Bearer wbl_..."

{
  "orders": [
    {
      "id": "o1...",
      "type": "order",
      "order_id": "o1...",
      "status": "partially_refunded",
      "is_test": false,
      "currency": "usd",
      "amount_cents": 7900,
      "gross_cents": 9900,
      "refunded_cents": 2000,
      "paid_at": "2026-10-05T09:00:00.000Z",
      "refunded_at": "2026-10-07T11:30:00.000Z",
      "gateway": "stripe",
      "items": ["Course A", "Bonus pack"],
      "webinar_slug": "masterclass",
      "webinar_title": "Masterclass",
      "event_slug": null,
      "buyer_name": "Sara Lee",
      "buyer_email": "sara@example.com",
      "utm_source": "facebook",
      "utm_medium": "paid",
      "utm_campaign": "october",
      "utm_term": null,
      "utm_content": null
    }
  ],
  "next_cursor": "2026-10-05T09:00:00.123456Z|o1..."
}

gateway is stripe, tap, tabby or upayments. refunded_at is null when the sale was not refunded, or when the refund date was never recorded. A one-click upsell and each subscription renewal have their own row, with the order they belong to in order_id.

Contacts and deals

GET/contactsread:contacts

Read your CRM contacts. Cursor paginated.

q
Search name or email.
stage
Lead, MQL, SQL, Customer or Churned (exact case): the stage your contacts page shows.
tag
Filter by a tag.
limit
1-200, default 50.
cursor
The next_cursor from the previous page.
curl "https://app.webinly.com/api/v1/contacts?limit=50" \
  -H "Authorization: Bearer wbl_..."

{
  "contacts": [
    {
      "id": "c1...",
      "email": "sara@example.com",
      "name": "Sara Lee",
      "first_name": "Sara",
      "last_name": "Lee",
      "phone": "+15551234567",
      "lifecycle_stage": "Lead",
      "tags": ["webinar"],
      "created_at": "2026-10-10T14:03:00.123Z"
    }
  ],
  "next_cursor": "2026-10-10T14:03:00.123456Z|c1..."
}
GET/contacts/{id}read:contacts

One contact, in the same shape as the list. An id that is not yours is a 404.

curl https://app.webinly.com/api/v1/contacts/c1... \
  -H "Authorization: Bearer wbl_..."

{ "contact": { "id": "c1...", "email": "sara@example.com", "tags": ["webinar"], ... } }
POST/contactswrite:contacts

Create a contact, or update the one you already have with that email. Returns 201 when it was created and 200 when it was updated. Only the fields you send change; an empty string is treated as not sent, so a blank field in your system never wipes ours. Tags are added, never removed here. A tag the person did not have yet starts your "When someone gets a tag" automations, exactly like a tag added on the contact page.

email
Required. The contact is matched on it.
name, first_name, last_name, phone
Optional. With only first and last name, the name is made from them.
tags
Optional list. Lowercase letters, digits, spaces and _ : . -, up to 40 characters each, 50 per contact.
marketing_consent
Optional { granted, text, url }: the exact words the person agreed to and the page they saw. Stored in your consent records with the source api. granted: false unsubscribes them. A grant never re-subscribes someone who unsubscribed.
curl -X POST https://app.webinly.com/api/v1/contacts \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{
    "email": "sara@example.com",
    "first_name": "Sara",
    "last_name": "Lee",
    "tags": ["vip"],
    "marketing_consent": {
      "granted": true,
      "text": "Yes, email me about the masterclass.",
      "url": "https://example.com/optin"
    }
  }'

{
  "contact": {
    "id": "c1...",
    "email": "sara@example.com",
    "name": "Sara Lee",
    "first_name": "Sara",
    "last_name": "Lee",
    "phone": null,
    "lifecycle_stage": "Lead",
    "tags": ["vip"],
    "created_at": "2026-10-16T09:00:00.000Z"
  },
  "created": true
}
POST/contacts/{id}/tagswrite:contacts

Add tags to a contact. Each tag that is new starts your "When someone gets a tag" automations; a tag the person already has changes nothing. tags_not_added lists any tag refused because the contact already has 50.

curl -X POST https://app.webinly.com/api/v1/contacts/c1.../tags \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "tags": ["hot lead", "webinar:oct"] }'

{ "contact": { ... }, "added": ["hot lead", "webinar:oct"] }
DELETE/contacts/{id}/tags/{tag}write:contacts

Remove one tag. URL-encode it (webinar%3Aoct for webinar:oct). A tag that was there starts "When a tag is removed" automations; removed is false when it was not there.

curl -X DELETE https://app.webinly.com/api/v1/contacts/c1.../tags/hot%20lead \
  -H "Authorization: Bearer wbl_..."

{ "contact": { ... }, "removed": true }
POST/contacts/{id}/unsubscribewrite:contacts

Unsubscribe a contact from your marketing email: the same opt-out as your unsubscribe link. Receipts and other transactional email still go out. The contact gets the unsubscribed tag, your "They unsubscribed" stop conditions fire, and your consent records keep it. The person can opt back in from their email preferences.

curl -X POST https://app.webinly.com/api/v1/contacts/c1.../unsubscribe \
  -H "Authorization: Bearer wbl_..."

{ "contact": { ..., "tags": ["vip", "unsubscribed"] }, "unsubscribed": true }
GET/dealsread:deals

Read your pipeline. Cancelled deals are excluded by default. Cursor paginated.

status
open, won, or lost.
pipeline_id
Filter to one pipeline (UUID).
limit
1-200, default 50.
cursor
The next_cursor from the previous page.
curl "https://app.webinly.com/api/v1/deals?status=open&limit=50" \
  -H "Authorization: Bearer wbl_..."

{
  "deals": [
    {
      "id": "d1...",
      "title": "Acme - annual",
      "contact_name": "Sara Lee",
      "contact_email": "sara@example.com",
      "value_cents": 120000,
      "currency": "usd",
      "stage_name": "Proposal",
      "pipeline_name": "Sales",
      "status": "open",
      "created_at": "2026-10-10T14:03:00.123Z"
    }
  ],
  "next_cursor": "2026-10-10T14:03:00.123456Z|d1..."
}
GET/deals/{id}read:deals

One deal, in the same shape as the list. A cancelled deal is still returned, with status cancelled. An id that is not yours is a 404.

curl https://app.webinly.com/api/v1/deals/d1... \
  -H "Authorization: Bearer wbl_..."

{
  "deal": {
    "id": "d1...",
    "title": "Acme - annual",
    "value_cents": 120000,
    "currency": "usd",
    "stage_id": "s2...",
    "stage_name": "Proposal",
    "pipeline_id": "p1...",
    "pipeline_name": "Sales",
    "status": "open"
  }
}
GET/pipelinesread:deals

Your pipelines and their stages, in the order your board shows them. Use it to turn a deal's stage_id into a name.

curl https://app.webinly.com/api/v1/pipelines \
  -H "Authorization: Bearer wbl_..."

{
  "pipelines": [
    {
      "id": "p1...",
      "name": "Sales",
      "position": 0,
      "is_default": true,
      "created_at": "2026-09-01T10:00:00.000Z",
      "stages": [
        { "id": "s1...", "name": "New", "position": 0, "outcome": null, "win_probability_pct": 10 },
        { "id": "s2...", "name": "Proposal", "position": 1, "outcome": null, "win_probability_pct": 50 },
        { "id": "s3...", "name": "Won", "position": 2, "outcome": "won", "win_probability_pct": 100 }
      ]
    }
  ]
}

Forms

Your forms and every response to them: Webinly forms and the Typeform forms you imported. An answer to a question with the Private answer switch on comes back as ••••• (sensitive), the way your dashboard, exports and webhooks show it, unless the key also has read:privateanswers.

GET/formsread:forms

Every form on your account, newest first. url is where people fill it in: null until a Webinly form is published. responses_count counts finished responses. Cursor paginated.

status
active, archived, broken or unknown.
limit
1-100, default 50.
cursor
The next_cursor from the previous page.
curl "https://app.webinly.com/api/v1/forms" \
  -H "Authorization: Bearer wbl_..."

{
  "forms": [
    {
      "id": "f1...",
      "title": "Book a call",
      "slug": "book-a-call",
      "type": "lead_capture",
      "status": "active",
      "url": "https://app.webinly.com/form/book-a-call",
      "published_at": "2026-09-01T10:00:00.000Z",
      "responses_count": 214,
      "last_response_at": "2026-10-15T18:22:41.000Z",
      "created_at": "2026-08-30T09:12:00.000Z"
    }
  ],
  "next_cursor": null
}
GET/forms/{id}read:forms

One form and its questions, in order, so you can map each answer before the first response arrives. private is true for a question with the Private answer switch on. A form on another account answers 404.

curl "https://app.webinly.com/api/v1/forms/f1..." \
  -H "Authorization: Bearer wbl_..."

{
  "form": {
    "id": "f1...",
    "title": "Book a call",
    "slug": "book-a-call",
    "type": "lead_capture",
    "status": "active",
    "url": "https://app.webinly.com/form/book-a-call",
    "published_at": "2026-09-01T10:00:00.000Z",
    "responses_count": 214,
    "last_response_at": "2026-10-15T18:22:41.000Z",
    "created_at": "2026-08-30T09:12:00.000Z",
    "questions": [
      { "id": "q1...", "title": "Your email", "type": "email", "required": true, "private": false, "choices": [] },
      { "id": "q2...", "title": "Budget", "type": "multiple_choice", "required": false, "private": false, "choices": ["Under $1k", "$1k-$5k"] },
      { "id": "q3...", "title": "Passport number", "type": "short_text", "required": true, "private": true, "choices": [] }
    ]
  }
}
GET/forms/{id}/responsesread:forms

The responses to one form, newest first, each with its answers. Finished responses only, unless you ask: when someone finishes a form they started, their partial response is replaced by a new one, so reading both would count them twice. A file answer is a link that works for 7 days from your call. Cursor paginated.

status
completed (the default), partial, failed_processing, spam, ignored, deleted, anonymized, or all.
from
Responses submitted at or after this time. ISO 8601: 2026-10-01 (midnight UTC) or 2026-10-01T09:00:00Z.
to
Responses submitted before this time. Same format.
limit
1-100, default 25.
cursor
The next_cursor from the previous page.
curl "https://app.webinly.com/api/v1/forms/f1.../responses?from=2026-10-01" \
  -H "Authorization: Bearer wbl_..."

{
  "responses": [
    {
      "id": "r1...",
      "form_id": "f1...",
      "status": "completed",
      "submitted_at": "2026-10-15T18:22:41.000Z",
      "landed_at": "2026-10-15T18:20:02.000Z",
      "score": 7,
      "ending": "Hot lead",
      "qualified": true,
      "contact_id": "c1...",
      "hidden": { "utm_source": "facebook" },
      "utm_source": "facebook",
      "utm_medium": "paid",
      "utm_campaign": "october",
      "utm_term": null,
      "utm_content": null,
      "answers": [
        { "question_id": "q1...", "question": "Your email", "type": "email", "value": "sara@example.com" },
        { "question_id": "q2...", "question": "Budget", "type": "multiple_choice", "value": ["$1k-$5k"] },
        { "question_id": "q3...", "question": "Passport number", "type": "short_text", "value": "••••• (sensitive)" }
      ]
    }
  ],
  "next_cursor": "2026-10-15T18:22:41.123456Z|r1..."
}

value is text, a number, true or false, a list (multiple choice, ranking) or an object (contact info, address, matrix). ending is the name of the ending the person reached. An answer to a question you have since deleted is listed last, with question_id null.

Courses

GET/coursesread:courses

List your courses with how many students can open each one. Archived courses are omitted.

curl https://app.webinly.com/api/v1/courses \
  -H "Authorization: Bearer wbl_..."

{
  "courses": [
    {
      "id": "co_...",
      "slug": "launch-course",
      "title": "Launch Course",
      "status": "published",
      "billingType": "one_time",
      "priceCents": 29900,
      "currency": "usd",
      "students": 142,
      "createdAt": "2026-09-01T00:00:00.000Z"
    }
  ]
}
POST/courses/{id}/enrollwrite:courses

Give one person access to a course from another system. Free for the student. Provide an email or a contactId. Someone the host removed is not put back (409).

email
The student's email (or use contactId).
contactId
An existing contact's UUID.
name
Optional display name.
sendEmail
Set false to skip the sign-in email.
curl -X POST https://app.webinly.com/api/v1/courses/co_.../enroll \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "email": "sara@example.com", "name": "Sara Lee" }'

{
  "enrolled": true,
  "alreadyHad": false,
  "reactivated": false,
  "emailed": true,
  "enrollmentId": "en_..."
}
GET/courses/{id}/studentsread:students

A course's students and how far each one got. Progress counts the lessons students can see (drafts do not count), the same way your course studio does. Test purchases are left out. Cursor paginated.

status
active, past_due, revoked, cancelled or completed.
include_test
Set to 1 to include test purchases.
limit
1-200, default 50.
cursor
The next_cursor from the previous page.
curl "https://app.webinly.com/api/v1/courses/co_.../students?limit=50" \
  -H "Authorization: Bearer wbl_..."

{
  "students": [
    {
      "enrollment_id": "en_...",
      "contact_id": "c1...",
      "email": "sara@example.com",
      "name": "Sara Lee",
      "status": "active",
      "enrolled_at": "2026-10-01T09:00:00.000Z",
      "lessons_done": 6,
      "lessons_total": 10,
      "progress_pct": 60,
      "finished": false,
      "last_activity_at": "2026-10-12T18:22:41.000Z",
      "is_test": false
    }
  ],
  "next_cursor": "2026-10-01T09:00:00.123456Z|en_..."
}

Email

Your email campaigns: their results, what they say, and your drafts. The calls in this section never mail anyone. To send, schedule, stop or test a campaign, see Sending campaigns: those calls need a key with send:campaigns.

GET/email/campaignsread:email

Your email campaigns with their totals, newest first. Drafts are left out unless you ask for them with status=draft. Delivered, opened, clicked, bounced and complained count people, not events. Opens are an estimate: some mail apps open every email by themselves. An unsubscribe applies to your whole account, so skipped_unsubscribed counts the people a campaign did not mail because they had already opted out. queued is true for a send on its way, which still reads draft, or scheduled with no time. Cursor paginated.

limit
1-100, default 25.
cursor
The next_cursor from the previous page.
from, to
Optional. When the campaign was created; ISO 8601, a bare date is midnight UTC, to is not included.
status
Optional. scheduled, sending, paused, sent, canceled or failed. A campaign still sending shows its live numbers. draft lists your drafts instead, their numbers all 0, for a key that also has read:campaigns.
curl https://app.webinly.com/api/v1/email/campaigns \
  -H "Authorization: Bearer wbl_..."

{
  "campaigns": [
    {
      "id": "b1...",
      "name": "Launch week",
      "subject": "Doors are open",
      "status": "sent",
      "scheduled_at": null,
      "started_at": "2026-10-05T10:00:00.000Z",
      "finished_at": "2026-10-05T10:04:12.000Z",
      "created_at": "2026-10-04T16:20:00.000Z",
      "recipients": 1000,
      "sent": 850,
      "skipped": 150,
      "failed": 0,
      "queued": false,
      "skipped_unsubscribed": 120,
      "delivered": 842,
      "opened_estimate": 410,
      "clicked": 96,
      "bounced": 8,
      "complained": 1
    }
  ],
  "next_cursor": "2026-10-04T16:20:00.123456Z|b1..."
}
GET/email/campaigns/{id}read:email

One campaign: the list's numbers, why the people who were not mailed were not (not_sent_by_reason: suppressed, unsubscribed, consent_revoked, no_email, quota_exceeded, cancelled, send_failed), how many still wait while it sends, every open and click beside the people, and the ten links clicked most. When the mail provider's events cannot be read, those fields are null. A draft is a 404, unless the key also has read:campaigns: then it answers, its numbers all 0.

curl https://app.webinly.com/api/v1/email/campaigns/b1... \
  -H "Authorization: Bearer wbl_..."

{
  "campaign": {
    "id": "b1...",
    "name": "Launch week",
    "status": "sent",
    "recipients": 1000,
    "sent": 850,
    "skipped": 150,
    "failed": 0,
    "waiting": 0,
    "skipped_unsubscribed": 120,
    "not_sent_by_reason": { "unsubscribed": 120, "suppressed": 30 },
    "delivered": 842,
    "opened_estimate": 410,
    "clicked": 96,
    "bounced": 8,
    "complained": 1,
    "opens_estimate_total": 655,
    "clicks_total": 131,
    "links": [
      { "url": "https://example.com/offer", "people": 71, "clicks": 98 }
    ]
  }
}
GET/email/campaigns/{id}/contentread:campaigns

What one campaign says and who it goes to: its name, subject, preheader, body, sender, audience and send speed. Any campaign on your account: a draft, a scheduled one or one that went out. The body is a block document, written like a template's: see Email templates. version says which words these are: it moves on with each change and each send, and a send or a schedule names it. queued is true from the moment a send is handed over until it starts, usually seconds; its status does not change until then (draft, or scheduled with no time when Send now was pressed on a scheduled campaign). status_reason says why a campaign paused part-way or failed.

curl https://app.webinly.com/api/v1/email/campaigns/b2.../content \
  -H "Authorization: Bearer wbl_..."

{
  "campaign": {
    "id": "b2...",
    "name": "November news",
    "status": "draft",
    "subject": "{{contact.first_name|there}}, the replay is up",
    "preheader": "Watch it before Friday",
    "body": { "v": 1, "blocks": [ ... ] },
    "from_name": null,
    "from_local_part": null,
    "reply_to": null,
    "audience": { "include": [{ "kind": "all" }], "exclude": [] },
    "throttle_per_hour": null,
    "scheduled_at": null,
    "version": 3,
    "queued": false,
    "status_reason": null,
    "created_at": "2026-11-10T09:00:00.000Z",
    "updated_at": "2026-11-10T09:05:00.000Z"
  }
}
POST/email/campaignswrite:campaigns

Make a new draft. Every field is optional: send what you have and add the rest later with PATCH. The answer is the draft, in the same shape as its content. Nothing is sent: send or schedule it with the calls under Sending campaigns, or in Webinly. If a field is refused, no draft is left behind.

name
Up to 200 characters.
subject
Up to 200 characters.
preheader
The preview line. Up to 200 characters, or null.
body
The email, as a block document: { "v": 1, "blocks": [ ... ] }, the same as an email template.
from_name
The sender's name, or null.
from_local_part
The part before the @ of your sending address, once your workspace has its own sending domain. null uses your default.
reply_to
An email address, or null.
audience
{ "include": [ ... ], "exclude": [ ... ] }. Each item is { "kind": "all" }; a list, segment or community as { "kind", "id" }; a course as { "kind": "course", "id", "status" } (active, finished, not_finished or paused; active if left out); or a tag as { "kind": "tag", "tag" }. Each must be one of yours, and a tag one that a contact carries. For a rule of your own, save it as a segment in Contacts and send its id.
throttle_per_hour
At most this many emails an hour, or null to send as fast as Webinly does.
curl -X POST https://app.webinly.com/api/v1/email/campaigns \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{
    "name": "November news",
    "subject": "{{contact.first_name|there}}, the replay is up",
    "preheader": "Watch it before Friday",
    "body": {
      "v": 1,
      "blocks": [
        { "t": "heading", "level": 2, "text": "The replay is ready" },
        { "t": "paragraph", "text": "Hi {{contact.first_name|there}}, here is the recording of the session." },
        { "t": "button", "label": "Watch the replay", "href": "https://example.com/replay" }
      ]
    },
    "audience": { "include": [{ "kind": "all" }], "exclude": [] }
  }'

{ "campaign": { "id": "b2...", "name": "November news", "status": "draft", ... } }
PATCH/email/campaigns/{id}write:campaigns

Change a draft. Send only the fields that change, in the same shapes as above; a field you leave out stays. Only a draft changes here: a campaign that is scheduled answers 409 (unschedule it first, over the API or in Webinly), and so does one that is queued to send, sending, or has gone out.

curl -X PATCH https://app.webinly.com/api/v1/email/campaigns/b2... \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "subject": "Last day to watch the replay" }'

{ "campaign": { "id": "b2...", "status": "draft", "subject": "Last day to watch the replay", ... } }

# A scheduled campaign is a 409:
{ "error": "This campaign is scheduled to go out. Unschedule it first (DELETE /api/v1/email/campaigns/{id}/schedule, or in Webinly) to change it: over the API only a draft is changed." }
DELETE/email/campaigns/{id}write:campaigns

Delete a draft, a paused campaign or one that finished, with its report. One that is scheduled, queued to send or sending answers 409: unschedule or stop it first, over the API or in Webinly.

curl -X DELETE https://app.webinly.com/api/v1/email/campaigns/b2... \
  -H "Authorization: Bearer wbl_..."

{ "ok": true, "id": "b2..." }
POST/email/campaigns/{id}/duplicatewrite:campaigns

A new draft with a campaign's words, audience and sender, never its schedule or its results. It is the way to send again what has already gone out: a campaign that was sent or called off is never sent a second time itself. A send that is queued and has not started is not copied (409). No body. Returns 201 with the new draft.

curl -X POST https://app.webinly.com/api/v1/email/campaigns/b1.../duplicate \
  -H "Authorization: Bearer wbl_..."

{ "campaign": { "id": "b3...", "status": "draft", ... } }

Sending campaigns

Send, schedule, stop and test a campaign from your own code. These calls need a key with send:campaigns (the send check needs read:campaigns), and they are the Send, Schedule and Stop buttons of Webinly's campaign editor: your marketing email plan, your allowance and every check the Send button runs apply here too, in the same words. Because nobody is looking at a screen, the API adds rules of its own:

  • A send names the version it read. Read version from the campaign's content or its send check (both read:campaigns), and send it back. If the campaign changed since, nothing goes out (409).
  • Only a draft is sent or scheduled, and only one nobody has sent or scheduled. A scheduled campaign is unscheduled first; to send again one that went out, duplicate it.
  • A send on its way is queued. From the moment it is handed over until it starts (seconds, as a rule), its content shows queued: true. A queued send is not sent again, changed, copied or deleted (409): stop it if you need to.
  • A workspace that cannot mail is told first. If the workspace is suspended or its email is paused, send, schedule and resume answer 409 with the reason before anything is handed over, and the send check shows the same reason.
  • An optional audience guard. Add will_be_mailed, the number the send check showed, to a send or a schedule. If the audience has grown since by 10 people or more and by more than 10%, nothing goes out (409, with both numbers), and the same when the audience cannot be counted just then.
GET/email/campaigns/{id}/send-checkread:campaigns

Would Send take this campaign as it stands, and who would get it? ready; the reason when it is not, in the very words Send would refuse with (a paused workspace included); the version to send; and how many people the audience matches, how many of them cannot be mailed (unsubscribed or bounced) and how many will be. A campaign that is not a draft is never ready: the reason says where it stands, and status reads queued for a send on its way. recipients is null when the audience could not be counted. Sends nothing and changes nothing.

curl https://app.webinly.com/api/v1/email/campaigns/b2.../send-check \
  -H "Authorization: Bearer wbl_..."

{
  "check": {
    "ready": true,
    "reason": null,
    "status": "draft",
    "version": 3,
    "recipients": { "matched": 1040, "cannot_be_mailed": 40, "will_be_mailed": 1000 }
  }
}
POST/email/campaigns/{id}/testsend:campaigns

Send one test email of the campaign as it stands, to the address in to, one plain address. Send {} to send it to the workspace owner's address. It is marked as a test, merge tags get sample values when the address is not one of your contacts, and it does not count against your allowance. The campaign does not change and its audience gets nothing.

Without a marketing email plan a test goes to the owner's address only, and an address that bounced or unsubscribed is refused (400). Ten tests a minute and 200 a day per workspace: past either, a 429 with Retry-After. The mail service refusing, or sending paused for everyone, is a 503 with Retry-After. A workspace that is suspended, or paused by Webinly to protect its sender reputation, is a 409.

curl -X POST https://app.webinly.com/api/v1/email/campaigns/b2.../test \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "to": "you@example.com" }'

{ "ok": true, "sent_to": "you@example.com" }
POST/email/campaigns/{id}/sendsend:campaigns

Send a draft now. The answer is the campaign, now queued: true with its version moved on; the send starts within seconds, and its numbers are read with GET /email/campaigns/{id}. If the send was handed over but could not start right away, the answer is still a success, with a note: it will go out shortly, so do not send it again.

version
Required. The campaign's version, as its content or its send check shows it.
will_be_mailed
Optional. The number the send check showed: the audience guard above.

409 when the campaign changed since you read it, is not a draft (the error says what to do), is already queued, or the audience grew past your will_be_mailed; when the workspace cannot mail; and for anything the Send button refuses, in its words.

curl -X POST https://app.webinly.com/api/v1/email/campaigns/b2.../send \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "version": 3, "will_be_mailed": 1000 }'

{ "campaign": { "id": "b2...", "status": "draft", "queued": true, "version": 4, ... } }

# The campaign changed since you read it (409):
{ "error": "This campaign changed since you read it, so nothing was sent. Read it again (GET …/content) and send the version it shows." }
POST/email/campaigns/{id}/schedulesend:campaigns

Schedule a draft. send_at is the moment, with its offset; the campaign's screen shows it in your workspace's time zone. The checks of a send run now, and again when the time comes. A time that has passed, a day that does not exist or a date without a time is a 400 that names send_at. The 409s are the ones a send has, and a campaign that is already scheduled is a 409 too: to move its time, unschedule it, then schedule it again. If the timer could not be confirmed, the answer is still a success, with a note: it is scheduled, so do not schedule it again.

version
Required, as for a send.
send_at
Required. Like "2027-03-14T09:00:00+03:00" or "2027-03-14T06:00:00Z".
will_be_mailed
Optional, as for a send.
curl -X POST https://app.webinly.com/api/v1/email/campaigns/b2.../schedule \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "version": 3, "send_at": "2027-03-14T09:00:00+03:00" }'

{ "campaign": { "id": "b2...", "status": "scheduled", "scheduled_at": "2027-03-14T06:00:00.000Z", "version": 3, ... } }
DELETE/email/campaigns/{id}/schedulesend:campaigns

Unschedule: the campaign is a draft again, with everything you wrote still in it. Only a campaign scheduled for a time is unscheduled (409 otherwise). When Send now was pressed in Webinly on a scheduled campaign, it still reads scheduled, with no time and queued: true, until it starts: that is a send on its way, so this answers 409 with the queued words. Stop it with POST /email/campaigns/{id}/stop instead.

curl -X DELETE https://app.webinly.com/api/v1/email/campaigns/b2.../schedule \
  -H "Authorization: Bearer wbl_..."

{ "campaign": { "id": "b2...", "status": "draft", "scheduled_at": null, ... } }
POST/email/campaigns/{id}/stopsend:campaigns

Stop a campaign that is queued, sending, or paused part-way. Emails that already went out stay sent. A queued send that had not started mails nobody, and the campaign is a draft again; one that is sending stops at its next batch and ends cancelled; one that paused part-way is called off for good. A campaign scheduled for a time is not stopped but unscheduled, and a draft or a finished one has nothing to stop (409). No body.

curl -X POST https://app.webinly.com/api/v1/email/campaigns/b2.../stop \
  -H "Authorization: Bearer wbl_..."

{
  "campaign": { "id": "b2...", ... },
  "note": "The stop is in. Emails that had already gone out stay sent; the rest are not sent. Read the campaign again in a moment for where it ended."
}
POST/email/campaigns/{id}/resumesend:campaigns

Carry on with a campaign that paused part-way; its content's status_reason says why (the allowance ran out, the day's limit was reached). It goes on from who is left, and people already mailed are not mailed again. Your plan and allowance are asked again. Only a paused campaign is resumed (409 otherwise). If the restart could not be handed over, a 503 with Retry-After: it is still paused and nobody was mailed. No body.

curl -X POST https://app.webinly.com/api/v1/email/campaigns/b2.../resume \
  -H "Authorization: Bearer wbl_..."

{ "campaign": { "id": "b2...", ... } }

Email templates

Your saved email templates, the ones under Email marketing > Email templates. A body is a block document, { "v": 1, "blocks": [ ... ] }, where each block's t is heading, paragraph, bullets, button, callout, divider, spacer, columns, image or countdown. Merge tags like {{contact.first_name|there}} work in the subject and the blocks.

GET/email/templatesread:templates

Your templates, last edited first, without the body. Cursor paginated.

q
Optional. Search the name and subject.
source
Optional. manual (made in Webinly), import (imported) or api (made over the API).
limit
1-200, default 50.
cursor
The next_cursor from the previous page.
curl "https://app.webinly.com/api/v1/email/templates?q=replay" \
  -H "Authorization: Bearer wbl_..."

{
  "templates": [
    {
      "id": "tp1...",
      "name": "Replay is up",
      "subject": "{{contact.first_name|there}}, the replay is up",
      "preheader": "Watch it before Friday",
      "source": "api",
      "external_id": "replay-2026-11",
      "dir": "auto",
      "created_at": "2026-11-03T09:00:00.000Z",
      "updated_at": "2026-11-03T09:00:00.000Z"
    }
  ],
  "next_cursor": null
}
GET/email/templates/{id}read:templates

One template with its body: the same block document the editor saves. An id that is not yours is a 404.

curl https://app.webinly.com/api/v1/email/templates/tp1... \
  -H "Authorization: Bearer wbl_..."

{ "template": { "id": "tp1...", "name": "Replay is up", ..., "body": { "v": 1, "blocks": [ ... ] } } }
POST/email/templateswrite:templates

Save a new template. Returns 201 when it was made. With an external_id, a repeat call answers the template it already made, unchanged (200, created: false); change it with PATCH.

name
Required. Up to 120 characters.
subject
Optional. Up to 300 characters. It may be empty on a template, but an email made from it needs one before it can be saved or sent.
preheader
Optional. The preview line, up to 300 characters, or null.
body
Required. The block document. Set the text direction with "dir": "ltr", "rtl" or "auto" inside it.
external_id
Optional. Your own id for it: 1 to 120 letters, digits, _ . : or -.
curl -X POST https://app.webinly.com/api/v1/email/templates \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Replay is up",
    "subject": "{{contact.first_name|there}}, the replay is up",
    "preheader": "Watch it before Friday",
    "body": {
      "v": 1,
      "blocks": [
        { "t": "heading", "level": 2, "text": "The replay is ready" },
        { "t": "paragraph", "text": "Hi {{contact.first_name|there}}, here is the recording of the session." },
        { "t": "button", "label": "Watch the replay", "href": "https://example.com/replay" }
      ]
    },
    "external_id": "replay-2026-11"
  }'

{
  "template": {
    "id": "tp1...",
    "name": "Replay is up",
    "subject": "{{contact.first_name|there}}, the replay is up",
    "preheader": "Watch it before Friday",
    "source": "api",
    "external_id": "replay-2026-11",
    "dir": "auto",
    "created_at": "2026-11-03T09:00:00.000Z",
    "updated_at": "2026-11-03T09:00:00.000Z",
    "body": { "v": 1, "blocks": [ ... ] }
  },
  "created": true
}
PATCH/email/templates/{id}write:templates

Change the name, subject, preheader or body. A field you leave out stays; preheader: null clears the preview line.

curl -X PATCH https://app.webinly.com/api/v1/email/templates/tp1... \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "subject": "The replay is up for one more day" }'

{ "template": { "id": "tp1...", "subject": "The replay is up for one more day", ... } }
DELETE/email/templates/{id}write:templates

Delete a template. Emails already made from it stay as they are.

curl -X DELETE https://app.webinly.com/api/v1/email/templates/tp1... \
  -H "Authorization: Bearer wbl_..."

{ "ok": true, "id": "tp1..." }
POST/email/templates/{id}/duplicatewrite:templates

Make a copy. Send a name for it, or send no body and the copy takes the old name with 2 after it. Returns 201 with the copy.

curl -X POST https://app.webinly.com/api/v1/email/templates/tp1.../duplicate \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "name": "Replay is up (December)" }'

{ "template": { "id": "tp2...", "name": "Replay is up (December)", "source": "api", ... } }

Reports

The numbers behind your dashboard, ready for a spreadsheet or a report of your own. Money always comes one entry per currency, never added across: amount_cents is in the currency's own minor units (KWD has three decimals), with amount_decimal and currency_exponent beside it. Your own test sign-ups and test payments are left out.

GET/reports/webinarsread:analytics

Every webinar, one row each, newest first, with the numbers of its analytics: sign-ups, attended, no-shows, completed, engaged (watched 80% or more), the rates, the average share watched, clicks on your links, and sales, buyers and revenue. With from and to, each number counts what happened in that window by its own time: the people who signed up in it, the clicks in it, the sales made in it and the money that moved in it (a refund on the day it was given). Cursor paginated.

limit
1-100, default 25.
cursor
The next_cursor from the previous page.
from
Optional. ISO 8601 date or date-time with a zone; a bare date is midnight UTC.
to
Optional. Same format, not included.
curl "https://app.webinly.com/api/v1/reports/webinars?from=2026-10-01&to=2026-11-01" \
  -H "Authorization: Bearer wbl_..."

{
  "window": { "from": "2026-10-01T00:00:00Z", "to": "2026-11-01T00:00:00Z" },
  "webinars": [
    {
      "id": "0f3d...",
      "slug": "launch-masterclass",
      "title": "Launch Masterclass",
      "type": "live",
      "status": "ended",
      "is_paid": true,
      "scheduled_at": "2026-10-14T18:00:00.000Z",
      "created_at": "2026-10-01T08:40:00.000Z",
      "registrations": 1240,
      "attended": 712,
      "no_show": 528,
      "completed": 401,
      "engaged": 455,
      "attendance_rate": 57.4,
      "completion_rate": 56.3,
      "avg_watch_pct": 64.2,
      "link_clicks": 96,
      "link_clickers": 71,
      "sales": 42,
      "buyers": 40,
      "revenue": [
        { "currency": "USD", "amount_cents": 205800, "amount_decimal": "2058.00", "currency_exponent": 2 },
        { "currency": "KWD", "amount_cents": 450000, "amount_decimal": "450.000", "currency_exponent": 3 }
      ]
    }
  ],
  "next_cursor": null
}

WhatsApp

Results of your WhatsApp campaigns and of your posts to your own groups and channels. Counts only: never who (phone numbers, member numbers or names) and never a template's words.

GET/whatsapp/campaignsread:whatsapp

Your WhatsApp campaigns, newest first by when they go out: recipients, sent, delivered, read, replied, failed, skipped, the people who tapped a link and the taps, and the people who opted out after it. registered, bought and revenue_usd_cents are filled where conversion tracking is on for your account (conversions_tracked: true) and null otherwise, never a 0 that means not counted. Cursor paginated.

limit
1-100, default 25.
cursor
The next_cursor from the previous page.
from, to
Optional. When it was set to go out; ISO 8601, to is not included.
status
Optional. scheduled, sending, sent, canceled or failed.
curl https://app.webinly.com/api/v1/whatsapp/campaigns \
  -H "Authorization: Bearer wbl_..."

{
  "campaigns": [
    {
      "id": "c7...",
      "name": "Masterclass reminder",
      "status": "sent",
      "template_name": "webinar_reminder",
      "template_language": "en",
      "scheduled_at": "2026-10-13T16:00:00.000Z",
      "recipients": 500,
      "queued": 0,
      "sent": 488,
      "delivered": 470,
      "read": 391,
      "replied": 37,
      "failed": 12,
      "skipped": 0,
      "people_clicked": 140,
      "clicks": 188,
      "opted_out": 3,
      "conversions_tracked": false,
      "registered": null,
      "bought": null,
      "revenue_usd_cents": null
    }
  ],
  "next_cursor": null
}
GET/whatsapp/groups/postsread:whatsapp

Your posts to your WhatsApp groups and channels, newest first, drafts left out: the webinar a post announces, its places, how many messages went out and when the next one goes; in groups, the people reached, read, reactions and replies (from WhatsApp's own receipts: receipts_collected says whether any arrived yet); in channels, the views and reactions; and what its short links brought in: clicks, sign-ups and sales. Cursor paginated.

limit
1-100, default 25.
cursor
The next_cursor from the previous page.
from, to
Optional. When the post was made; ISO 8601, to is not included.
curl https://app.webinly.com/api/v1/whatsapp/groups/posts \
  -H "Authorization: Bearer wbl_..."

{
  "posts": [
    {
      "id": "p1...",
      "name": "Masterclass week",
      "status": "sent",
      "webinar": { "id": "0f3d...", "slug": "launch-masterclass", "title": "Launch Masterclass" },
      "places": [
        { "id": "1203...@g.us", "name": "Alumni group", "kind": "group" },
        { "id": "1203...@newsletter", "name": "Our channel", "kind": "channel" }
      ],
      "messages": 3,
      "messages_sent": 3,
      "messages_not_sent": 0,
      "next_send_at": null,
      "receipts_collected": true,
      "delivered": 412,
      "read": 288,
      "reactions": 37,
      "replies": 12,
      "channel_views": 1340,
      "channel_reactions": 96,
      "links_counted": true,
      "clicks": 211,
      "signups": 48,
      "sales": {
        "count": 6,
        "revenue": [ { "currency": "USD", "amount_cents": 29400, "amount_decimal": "294.00", "currency_exponent": 2 } ]
      }
    }
  ],
  "next_cursor": null
}
GET/whatsapp/groups/posts/{id}read:whatsapp

One post: each message with its time and state, and each group or channel it went to: sent or not (and WhatsApp's reason), reached, read, reactions by emoji, replies, a channel's views, and that place's clicks and sign-ups.

curl https://app.webinly.com/api/v1/whatsapp/groups/posts/p1... \
  -H "Authorization: Bearer wbl_..."

{
  "post": {
    "id": "p1...",
    "name": "Masterclass week",
    "status": "sent",
    "clicks": 211,
    "signups": 48,
    "messages": [
      {
        "number": 1,
        "send_at": "2026-10-12T09:00:00.000Z",
        "status": "sent",
        "places": [
          {
            "name": "Alumni group",
            "kind": "group",
            "status": "sent",
            "delivered": 140,
            "read": 98,
            "reactions": { "🔥": 21, "👍": 9 },
            "replies": 4,
            "views": null,
            "clicks": 23,
            "signups": 5
          }
        ]
      }
    ]
  }
}

Automations

Read, build, change and delete your automations, put people into them and take them out, and see who is in each. A start puts people in, a step is one thing the automation does, and a stop takes people out. The API uses the builder's own objects, so what a GET shows is what you send back to change it. Every change runs the builder's own checks: what the builder would refuse is refused here, in the same words.

GET/automationsread:automations

Your automations, newest first: the name, the state, how many people are in each, what starts it and how many steps it has. in_it_now is who is in it right now; entered and finished count everyone since it was made. Cursor paginated.

status
Optional. draft, active, paused or archived.
limit
1-100, default 25.
cursor
The next_cursor from the previous page.
curl "https://app.webinly.com/api/v1/automations?status=active" \
  -H "Authorization: Bearer wbl_..."

{
  "automations": [
    {
      "id": "au_...",
      "name": "Welcome new VIPs",
      "description": "Tags them, waits a day, then says hello.",
      "status": "active",
      "created_at": "2026-11-02T09:00:00.000Z",
      "updated_at": "2026-11-03T10:15:00.000Z",
      "people": { "in_it_now": 12, "entered": 140, "finished": 121 },
      "start_events": ["tag.added"],
      "step_count": 3
    }
  ],
  "next_cursor": null
}
GET/automations/{id}read:automations

One automation with its whole flow: its starts, its steps in order, its stops and every setting, in the same objects you send to change it. A stop's label is Webinly's own words for it, the ones you read beside a person who left through it. A start from an incoming webhook shows its link in webhook_url only to a key that also has write:automationbuilder. An id that is not yours is a 404.

curl https://app.webinly.com/api/v1/automations/au_... \
  -H "Authorization: Bearer wbl_..."

{
  "automation": {
    "id": "au_...",
    "name": "Welcome new VIPs",
    "description": "Tags them, waits a day, then says hello.",
    "status": "active",
    "created_at": "2026-11-02T09:00:00.000Z",
    "updated_at": "2026-11-03T10:15:00.000Z",
    "people": { "in_it_now": 12, "entered": 140, "finished": 121 },
    "starts": [
      { "id": "t1...", "event": "tag.added", "match": { "tag": "vip" }, "webhook_url": null }
    ],
    "steps": [
      { "id": "s1...", "index": 0, "kind": "add_tag", "config": { "tag": "welcomed" }, "skip_if": {} },
      { "id": "s2...", "index": 1, "kind": "wait_time", "config": { "minutes": 1440 }, "skip_if": {} },
      { "id": "s3...", "index": 2, "kind": "send_email", "config": { "subject": "Welcome, {{firstName}}", "body": "Hi {{firstName}},\n\nGlad you are here." }, "skip_if": {} }
    ],
    "stops": [
      { "id": "x1...", "event": "tag.added", "match": { "tag": "unsubscribed" }, "label": "They unsubscribed" }
    ],
    "who_can_join": {},
    "re_entry": "first_match_wins",
    "goals": [],
    "frequency_cap": null,
    "quiet_hours": null,
    "send_budget": null,
    "enrollment_policy": null,
    "ab_test": null
  }
}
POST/automationswrite:automationbuilder

Build a new automation in one call: its name, and as much of its flow as you have. It is always a draft, and it is not on until you switch it on with PATCH. If one piece is refused, nothing is left behind, and the error names the piece (like steps[1]). Up to 50 steps in one call; add the rest one at a time.

name
Required. Up to 120 characters.
description
Optional. Up to 1,000 characters.
starts
Optional list. Each is { "event", "match" }, as on POST /automations/{id}/starts.
steps
Optional list, in order. Each is { "kind", "config", "skip_if" }, as on POST /automations/{id}/steps (no index here).
stops
Optional list. Each is { "event", "match" }, as on POST /automations/{id}/stops.
who_can_join, re_entry, goals, frequency_cap, quiet_hours, send_budget, enrollment_policy, ab_test
Optional settings, as on PATCH.
curl -X POST https://app.webinly.com/api/v1/automations \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Welcome new VIPs",
    "description": "Tags them, waits a day, then says hello.",
    "starts": [{ "event": "tag.added", "match": { "tag": "vip" } }],
    "steps": [
      { "kind": "add_tag", "config": { "tag": "welcomed" } },
      { "kind": "wait_time", "config": { "minutes": 1440 } },
      { "kind": "send_email", "config": { "subject": "Welcome, {{firstName}}", "body": "Hi {{firstName}},\n\nGlad you are here." } }
    ],
    "stops": [{ "event": "tag.added", "match": { "tag": "unsubscribed" } }]
  }'

{ "automation": { "id": "au_...", "name": "Welcome new VIPs", "status": "draft", "starts": [ ... ], "steps": [ ... ], "stops": [ ... ], ... } }
PATCH/automations/{id}write:automationbuilder

Change its name, description, status or settings. A field you leave out stays, and a setting you send is replaced whole, so send all of its fields. Starts, steps and stops have their own calls below. Switching it on runs the builder's own checks: a flow that cannot go on yet answers 409 with the reason. When one part of a call is refused, the error says what was saved.

name, description
As on create. description null clears it.
status
active (switch it on), paused or archived. It never goes back to draft.
who_can_join
Who may go in, like { "all": [ { "field": "tags", "op": "contains", "value": "vip" } ] }: all, any or not, over tags, lifecycle, email and name. null lets anyone in. A richer rule is built in the builder; one already there can be sent back exactly as it reads.
re_entry
first_match_wins (once ever) or all_enrollments (every time).
goals
A list of { "event", "match" }. Someone who reaches a goal has converted and leaves the automation. null for none.
frequency_cap
{ "maxSends", "perHours" }: at most that many messages to one person in that many hours. null for none.
quiet_hours
{ "startHour", "endHour", "timezone" }: hours when nothing is sent; a send waits until they end. null for none.
send_budget
{ "maxSends", "perHours" }: at most that many sends across your workspace in that many hours; past it, this automation skips its sends. perHours is required. null for none.
enrollment_policy
{ "reEntryCooldownDays", "goalAttributionWindowDays" }. A cooldown needs re_entry all_enrollments. null for none.
ab_test
{ "enabled", "arms", "winnerArmKey" }: a split test, each arm { "key", "label", "weight" }. null for none.
curl -X PATCH https://app.webinly.com/api/v1/automations/au_... \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "status": "active" }'

{ "automation": { "id": "au_...", "status": "active", ... } }

# A flow that cannot go on yet is a 409:
{ "error": "Add at least one step before turning this on." }
DELETE/automations/{id}write:automationbuilder

Delete an automation, with its people and its history. One that is on answers 409: pause or archive it first.

curl -X DELETE https://app.webinly.com/api/v1/automations/au_... \
  -H "Authorization: Bearer wbl_..."

{ "ok": true, "id": "au_..." }

# While it is on:
{ "error": "This automation is on. Pause or archive it first (PATCH status), then delete it: deleting takes its people and its history with it." }
POST/automations/{id}/startswrite:automationbuilder

Add a start: what puts people in. event is an event Webinly records and match narrows it. A webinar, offer, course, list, form or segment it names must be one of yours, by its id, written as a plain pair like { "webinarId": "0f3d..." }. A GET of an automation built in the builder shows the events and matches to send. The first start on a booked call brings its "they cancelled" stop with it, shown in stop_added. To change a start, delete it and add the new one.

curl -X POST https://app.webinly.com/api/v1/automations/au_.../starts \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "event": "registered.webinar", "match": { "webinarId": "0f3d..." } }'

{
  "start": { "id": "t2...", "event": "registered.webinar", "match": { "webinarId": "0f3d..." }, "webhook_url": null },
  "stop_added": null
}
DELETE/automations/{id}/starts/{startId}write:automationbuilder

Remove a start. People already in the automation stay in it. The stop a booked-call start brought leaves with the last such start: stops_removed and stops_kept say what left and what stayed.

curl -X DELETE https://app.webinly.com/api/v1/automations/au_.../starts/t2... \
  -H "Authorization: Bearer wbl_..."

{ "ok": true, "id": "t2...", "stops_removed": [], "stops_kept": [] }
POST/automations/{id}/stopswrite:automationbuilder

Add a stop: what takes people out. Send event and match, written as for a start. For one of several offers or tags, add one stop for each. Webinly writes the stop's label, so do not send one: the answer shows it.

curl -X POST https://app.webinly.com/api/v1/automations/au_.../stops \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "event": "tag.added", "match": { "tag": "unsubscribed" } }'

{ "stop": { "id": "x2...", "event": "tag.added", "match": { "tag": "unsubscribed" }, "label": "They unsubscribed" } }
DELETE/automations/{id}/stops/{stopId}write:automationbuilder

Remove a stop.

curl -X DELETE https://app.webinly.com/api/v1/automations/au_.../stops/x2... \
  -H "Authorization: Bearer wbl_..."

{ "ok": true, "id": "x2..." }
POST/automations/{id}/stepswrite:automationbuilder

Add a step. kind and config are the builder's own: send_email, wait_time, add_tag, branch and the rest. A step arrives complete, so an empty send_email is refused, and a config field the kind does not have is refused with the list of the ones it has: a GET of a step built in the builder shows what to send. A list, course, community, automation or webinar the step names must be one of yours. A branch or a split jumps to a step by its place, counted as the flow stands once this step is in. On an automation that is on, the people in it follow the change, as in the builder.

kind
Required. Like send_email, wait_time or add_tag.
config
The step's settings, like { "minutes": 60 } for wait_time or { "tag": "vip" } for add_tag.
skip_if
Optional. A rule written like who_can_join: the people it matches skip this step.
index
Optional. Its place: 0 is first, and the steps after it move down. Left out, it goes last.
curl -X POST https://app.webinly.com/api/v1/automations/au_.../steps \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "kind": "wait_time", "config": { "minutes": 60 }, "index": 1 }'

{ "step": { "id": "s4...", "index": 1, "kind": "wait_time", "config": { "minutes": 60 }, "skip_if": {} } }
PATCH/automations/{id}/steps/{stepId}write:automationbuilder

Change a step's config or skip_if, or move it with index. config replaces the step's whole config: send every field, as a GET shows it. A step's kind does not change: delete it and add the new one.

curl -X PATCH https://app.webinly.com/api/v1/automations/au_.../steps/s2... \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "config": { "minutes": 2880 } }'

{ "step": { "id": "s2...", "index": 1, "kind": "wait_time", "config": { "minutes": 2880 }, "skip_if": {} } }
DELETE/automations/{id}/steps/{stepId}write:automationbuilder

Delete a step. The steps after it move up, and anyone waiting on it moves on. A step that a branch or a split sends people to answers 409: give that path another destination first.

curl -X DELETE https://app.webinly.com/api/v1/automations/au_.../steps/s2... \
  -H "Authorization: Bearer wbl_..."

{ "ok": true, "id": "s2..." }
POST/automations/{id}/enrollwrite:automations

Put people into an active automation from your own code, and its steps start for them. Build the automation in Webinly with the start "You add them by hand or by API", then copy its id from the address bar. Only people already in your contacts are added; anyone already in the automation is not added twice. People the automation's "Who can join" rule leaves out are not added, and notEligible counts them. Up to 1,000 people per call.

emails
Array of contact emails (or use contactIds, or both).
contactIds
Array of contact UUIDs.
curl -X POST https://app.webinly.com/api/v1/automations/au_.../enroll \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "emails": ["sara@example.com", "omar@example.com"] }'

{
  "enrolled": 1,
  "alreadyIn": 1,
  "notFound": 0,
  "notEligible": 0
}

404 when the automation does not exist on your account; 409 when it is paused, archived or not turned on yet. Keys made before this scope existed can use write:registrations here.

POST/automations/{id}/unenrollremove:automations

Take people out of an automation: the opposite of enroll, with the same body. Each person's run stops at its next step (a step already under way finishes), what was already sent stays sent, and it cannot be undone. A run that was waiting, or frozen while the automation is paused, ends too. Nobody is taken out of any other automation, and the people list shows why they left: "taken out over the API". Up to 1,000 people per call. Stricter than enroll: a field the call does not take, or an entry that is not an email or a contact id, is a 400 that names it.

emails
Array of contact emails (or use contactIds, or both).
contactIds
Array of contact UUIDs.
curl -X POST https://app.webinly.com/api/v1/automations/au_.../unenroll \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "emails": ["sara@example.com", "omar@example.com"] }'

{
  "removed": 1,
  "notIn": 1,
  "notFound": 0
}

removed is the people taken out, notIn the people of yours who had no run going here, and notFound the emails or ids that are nobody on your account.

GET/automations/{id}/peopleread:automations

Who is in an automation, and who was: one row per run, newest first. stands is in, finished, left or failed. A run that is in is running, waiting, or frozen while the automation is paused, and state says which. One that finished has finished_by: goal or last_step. One that left has left_because, the reason in the people list's words. One that failed had a step that could not run. step is the step a run is on, counted from 1. A person's email and name are in the row only for a key that also has read:contacts; without it the row still has the contact's id. Cursor paginated.

status
Optional. in, finished, left or failed.
limit
1-100, default 25.
cursor
The next_cursor from the previous page.
curl "https://app.webinly.com/api/v1/automations/au_.../people?status=in" \
  -H "Authorization: Bearer wbl_..."

{
  "people": [
    {
      "contact_id": "c1...",
      "email": "sara@example.com",
      "name": "Sara Lee",
      "stands": "in",
      "state": "waiting",
      "step": 2,
      "waiting_for": null,
      "waiting_until": "2026-11-12T09:00:00.000Z",
      "entered_at": "2026-11-11T09:00:00.000Z",
      "ended_at": null,
      "left_because": null
    }
  ],
  "next_cursor": null
}

waiting_for names the event a run waits for, and waiting_until is when its wait ends.

Custom values

The words you write once under Settings > Custom values, like your support phone or a link, and drop into any message with their tag: {{custom_values.support_phone}}. Keep them in step with another system. A call on one value takes its id or its key.

GET/custom-valuesread:customvalues

Every custom value, by label, with the tag to paste into a message. One answer, not paginated.

curl https://app.webinly.com/api/v1/custom-values \
  -H "Authorization: Bearer wbl_..."

{
  "custom_values": [
    {
      "id": "cv1...",
      "key": "support_phone",
      "label": "Support phone",
      "value": "+1 555 0100",
      "tag": "{{custom_values.support_phone}}",
      "created_at": "2026-11-02T09:00:00.000Z",
      "updated_at": "2026-11-02T09:00:00.000Z"
    }
  ]
}
GET/custom-values/{id-or-key}read:customvalues

One value, by its id or by its key. A key you do not have is a 404.

curl https://app.webinly.com/api/v1/custom-values/support_phone \
  -H "Authorization: Bearer wbl_..."

{ "custom_value": { "id": "cv1...", "key": "support_phone", "value": "+1 555 0100", ... } }
POST/custom-valueswrite:customvalues

Create a value. Returns 201 when it was created. Send a key you already have and that value is updated instead (200, created: false), so a sync can send the same call again.

label
Required. Its name in Webinly.
value
Optional. The words the tag stands for.
key
Optional. Letters, digits and _, starting with a letter, kept in lower case. Left out, one is made from the label.
curl -X POST https://app.webinly.com/api/v1/custom-values \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "key": "support_phone", "label": "Support phone", "value": "+1 555 0100" }'

{
  "custom_value": {
    "id": "cv1...",
    "key": "support_phone",
    "label": "Support phone",
    "value": "+1 555 0100",
    "tag": "{{custom_values.support_phone}}",
    "created_at": "2026-11-02T09:00:00.000Z",
    "updated_at": "2026-11-02T09:00:00.000Z"
  },
  "created": true
}
PATCH/custom-values/{id-or-key}write:customvalues

Change the label or the value. A field you leave out stays. The key never changes, because your messages name it.

curl -X PATCH https://app.webinly.com/api/v1/custom-values/support_phone \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "value": "+1 555 0199" }'

{ "custom_value": { "id": "cv1...", "key": "support_phone", "value": "+1 555 0199", ... } }
DELETE/custom-values/{id-or-key}write:customvalues

Delete a value. A message that still carries its tag then shows the tag as written.

curl -X DELETE https://app.webinly.com/api/v1/custom-values/support_phone \
  -H "Authorization: Bearer wbl_..."

{ "ok": true, "id": "cv1...", "key": "support_phone" }

Webhook endpoints

Manage the URLs Webinly posts events to. You can also add these on the Integrations page; the API is for tools that subscribe on their own, such as a Zapier or n8n trigger.

GET/hooksread:webhooks

List your webhook endpoints. The secret is never returned here.

POST/hookswrite:webhooks

Create an endpoint. The signing secret is returned once, on create. The URL must be https and a public host. An empty events list means every event except the opt-in ones (attendance, contact, tag and form events): those go only to an endpoint that lists them.

url
Required. An https URL, max 500 characters.
events
Optional array of event ids, each at most once. Empty = every event except the opt-in ones.
label
Optional name, max 80 characters.
curl -X POST https://app.webinly.com/api/v1/hooks \
  -H "Authorization: Bearer wbl_..." \
  -H "Content-Type: application/json" \
  -d '{ "url": "https://example.com/webinly", "events": ["registration.created"] }'

{
  "hook": {
    "id": "wh_...",
    "url": "https://example.com/webinly",
    "label": null,
    "events": ["registration.created"],
    "active": true,
    "createdAt": "2026-10-15T00:00:00.000Z",
    "secret": "whsec_..."
  }
}
DELETE/hooks/{id}write:webhooks

Remove an endpoint so Webinly stops posting to it.

curl -X DELETE https://app.webinly.com/api/v1/hooks/wh_... \
  -H "Authorization: Bearer wbl_..."

{ "ok": true, "id": "wh_..." }

Receiving webhooks

When an event fires, Webinly sends a POST to each matching endpoint with this JSON body:

{
  "event": "registration.created",
  "created_at": 1760000000,
  "data": {
    "registration_id": "a1b2...",
    "email": "sara@example.com",
    "name": "Sara Lee",
    "first_name": "Sara",
    "last_name": "Lee",
    "phone": "+96555123456",
    "phone_digits": "96555123456",
    "webinar_id": "0f3d...",
    "webinar_slug": "launch-masterclass",
    "webinar_title": "Launch Masterclass",
    "registered_at": "2026-10-10T14:03:00.000Z",
    "source": "api"
  }
}

Every event that carries a phone also carries the same number without the +, for a spreadsheet or a WhatsApp link: phone_digits beside phone, and buyer_phone_digits beside buyer_phone on an in-room offer's payment. A field the sign-up did not collect is null.

Events

Opt-in events go only to an endpoint that lists them, so an endpoint that takes every event never starts receiving a new family it did not ask for. Each fires once per person, never for a test seat.

EventFires when
registration.createdSomeone registered for a webinar.
payment.completedA purchase or payment completed (a course sale too).
payment.refundedA refund or chargeback took a sale back: a ticket, an add-on, an order, an event seat or a booking deposit, on any payment method. data.source says which; data.reason is refund or dispute. Test payments never fire it.
booking.createdA new booking was made.
booking.cancelledA booking was cancelled.
booking.rescheduledA booking moved to a new time.
booking.completedA booking was marked completed.
deal.wonA deal was marked won.
deal.lostA deal was marked lost.
deal.stage_changedA deal moved to a new stage.
course.enrolledA student joined a course.
course.completedA student finished a course.
course.access_removedA student lost access to a course.
webinar.attendedOpt-in. Someone joined a live webinar, once per person.
webinar.missedOpt-in. Someone registered but did not join the live webinar, once per person, after the session.
replay.watchedOpt-in. Someone started the replay, once per person.
webinar.endedOpt-in. A live webinar ended. Carries the registered and attended totals.
contact.createdOpt-in. A contact was created. data.contact is the contact, in the same shape as GET /contacts/{id}.
contact.updatedOpt-in. A contact's details changed.
contact.unsubscribedOpt-in. A contact unsubscribed from your marketing email.
contact.tag_addedOpt-in. A tag was added to a contact. data.tag names it; data.source says where it came from.
contact.tag_removedOpt-in. A tag was removed from a contact.
form.submittedOpt-in. Someone finished a form (a Webinly form or an imported Typeform one), once per response. data.form names the form; data.response is the response in the same shape as GET /forms/{id}/responses, with private answers always masked.

Verifying the signature

Every delivery carries two headers: webinly-event (the event id) and webinly-signature. The signature is Stripe-style: t=<unix>,v1=<hmac>, where the HMAC is HMAC-SHA256(secret, t + "." + rawBody) as lowercase hex. The timestamp is folded into the signed bytes so a captured payload cannot be replayed under a new timestamp. Verify against the raw request body, before any JSON parse.

import { createHmac, timingSafeEqual } from "node:crypto";

function verify(rawBody, header, secret) {
  const parts = Object.fromEntries(
    header.split(",").map((kv) => kv.split("=")),
  );
  const expected = createHmac("sha256", secret)
    .update(parts.t + "." + rawBody)
    .digest("hex");
  const a = Buffer.from(expected);
  const b = Buffer.from(parts.v1 || "");
  return a.length === b.length && timingSafeEqual(a, b);
}

Reject anything that does not verify, and optionally reject a t more than a few minutes old. Respond 2xx quickly; do the real work after you answer.

Need a hand?

Questions about the API, a scope you need, or an event that is not listed yet? Email contact@webinly.com or head back to the docs home.