FORMAT: 1A
HOST: https://app.webinargeek.com/api/v2

# WebinarGeek

Welcome to our API reference!

# Overview

The WebinarGeek API allows you to exchange information between your own tools
and platforms and WebinarGeek. This documentation targets version 2 of our API.
Version 1 of the API is deprecated and should not be used anymore.

To view the documentation for version 1 of our API please see
[here](https://www.webinargeek.com/api-v1).

# Base URL

The API is accessed under the following base URL:

```
https://app.webinargeek.com/api/v2
```

# Authentication

All requests to the API are authenticated by providing your API key.

You will find your API key in your WebinarGeek application in the Advanced
section of your account settings
(https://app.webinargeek.com/admin/integrations/api)

The API key should be provided as an HTTP header named Api-Token:

```
Api-Token: your-token
```

The key gives access to critical parts of your account, Please follow security
best practices with your keys:

* Don't share them with 3rd parties
* Don't expose them publicly (e.g. in a code repository)
* Rotate them periodically

# HTTP methods

The API uses standard HTTP methods for indicating the action to take.

| Method | Description            |
|--------|------------------------|
| GET    | Retrieve a resource.   |
| POST   | Create a new resource. |
| PUT    | Update a resource.     |
| DELETE | Remove a resource.     |

# Request headers

All requests sending JSON data need to use HTTP header Content-Type:

```
Content-Type: application/json
```

# Response codes

The API uses HTTP status codes to indicate how a response was processed. These
are the main ones we use:

| Code | Description                                                                                                                           |
|------|---------------------------------------------------------------------------------------------------------------------------------------|
| 200  | Everything is in order, request processed correctly.                                                                                  |
| 201  | The resource was successfully created.                                                                                                |
| 400  | Bad request, most likely due to sending an incorrect format or syntax.                                                                |
| 401  | Unauthorized, usually when sending an incorrect or invalid API token.                                                                 |
| 403  | Forbidden, you are authenticated, but you don't have the right permissions for this request.                                          |
| 404  | The resource could not be found. It either does not exists or you are trying to access something which does not belong to your scope. |
| 409  | Conflict, the request is semantically & syntactically correct but it conflicts with the current system or resource state.             |
| 422  | Unprocessable Entity, the request is technically correct but the server cannot process the provided request entity.                   |
| 429  | Too many requests, this happens if you exceed your rate limits. Try again later.                                                      |
| 500  | Internal server error, something has gone wrong on our side.                                                                          |
| 503  | The API is temporarily not available, try again later.                                                                                |

We always return a JSON formatted response, which in the case of an error looks
like this:

```
{
    "code": "not_found",
    "message": "The user could not be found."
}
```

# Rate limiting

Requests to the API are rate limited. The default rate limits apply per time
window and impose a maximum of:

* 300 requests per minute.
* 5000 requests per hour.
* 25,000 requests per day.

If you hit any limit, the API will return a HTTP 429 status code. You can try
again later. Free trials have an API limit of 10 requests per minute, 100 per
hour or 500 per day.

# Pagination

All list requests accept a per_page and page param to iterate over a larger
result set. Depending on the resource some list requests also accept an order
and sort parameter to control the order of resources.

| Parameter | Type    | Description                                                                    |
|-----------|---------|--------------------------------------------------------------------------------|
| page      | integer | The page number, always starts with 1.                                         |
| per_page  | integer | Number of resources to return per page, with a maximum of 1000. Default is 50. |
| order     | string  | The field to order on, defaults and possible options differ per resource.      |
| sort      | string  | The order of sorting, can be asc (ascending) or desc (descending).             |

While the default per page size is 50, we highly encourage you to use the highest possible page limit, especially if you
happen to have larger result sets. This will reduce the number of requests you need to make to retrieve all resources.

Each list request returns a `pages` object with information about the pagination:

| Parameter   | Type    | Description                                                  |
|-------------|---------|--------------------------------------------------------------|
| next        | string  | If set, this is the link to the next page in the result set. |
| page        | integer | The current page.                                            |
| per_page    | integer | The number of resources displayed per page.                  |
| total_pages | integer | The total number of pages available in the result set.       |

# Dates and times

For convenience all dates and times for input and output are Unix time (Unix
timestamp) in UTC.

Subscribers have a timezone which can be set upon subscribing and retrieved as
part of the subscriptions call.

# Include nested resources

Sometimes it may come in handy to have extra resources in the response to not
have to made additional requests to get the information you need. For this you
can use the `nested_resources` parameter. For instance if you request a list
of broadcasts for your account you can set `nested_resources` to
`episode,webinar` to include both the episode and the webinar resource for
every broadcast in the result set. If you specify more than one extra resource,
make sure to separate resources with a comma.

# Resources and resource relationships

The core of WebinarGeek is a webinar, which has a title and a registration page.

A webinar usually has one episode. An episode has its own title, and has all the
webinar materials such as slides or interactions.

Some webinars have several episodes, which makes a webinar series.

An episode can have one or more broadcasts, which are the actual "webinars that
take place". These have a date, a time, and a status. The end-user ultimately
subscribes to and views a broadcast. A broadcast can have different states like
started, in progress or ended.

# Resource validations & restrictions

Some resources have certain restrictions defined that get validated when
changing a resource. For example, as a default, every newly created webinar
starts with 2 general registration fields that are required: `email` and
`firstname`. Since those fields are considered crucial for the user registration
there will be an error when trying to register someone through the API without
those fields.

Other restrictions might be ignored by the API. For example, adding required
**extra registration fields or consent fields** do not run through validations
and are thus not enforced when someone is subscribed through the API. This is
because the user cannot give their consent when being registered through the
API, the registrant must get the consent beforehand from the user.

If you run into issues with validations and restrictions, you might need to
change the webinar settings or get additional data for your operation at hand.

# Changelog

| Date              | Description                                                                                                                                                                                                                           |
|-------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 19 Oct 2019       | Added support for timezones, which can be supplied as part of creating a subscriber and can also be retrieved as part of the subscription calls. Also, poll answers can now be multiple choice so are returned as array at all times. |
| 2 March 2020      | Added "discount_used" boolean to payments indicating whether a discount was used. Added "cancelled" boolean to all broadcasts indicating whether a broadcast is cancelled.                                                            |
| 22 April 2020     | Added an endpoint to list and filter payments.                                                                                                                                                                                        |
| 20 June 2020      | Chat message support: added "messages" as a part of a subscriber to extract chat messages or questions, as well as a separate endpoint for messages.                                                                                  |
| 12 July 2020      | Support for departments: added a "user_id" and "department_id" filter to the webinars API. Added a "department" block to the webinar object.                                                                                          |
| 12 July 2020      | Support for quizzes: added "quiz_answers" to the subscriber output call along with a "answered_correctly" boolean to indicate whether a subscriber has answered correctly.                                                            |
| 12 July 2020      | Assessment information: added "assessment" block to the subscriber output call with detailed assessment results and criteria if an assessment is enabled for the webinar.                                                             |
| 14 November 2020  | Added rate limiting info to the API documentation.                                                                                                                                                                                    |
| 1 November 2021   | Added email verification status to subscriber output.                                                                                                                                                                                 |
| 10 December 2021  | Added API endpoint to retrieve single webinar. Add flag to skip confirmation mail. Add broadcast_ended filter to subscriptions API.                                                                                                   |
| 6 May 2022        | Added API endpoint to subscribe a contact to a webinar series.                                                                                                                                                                        |
| 15 July 2022      | Added `language` filter and extra registration field information to webinars.                                                                                                                                                         |
| 29 July 2022      | Added broadcasts, episode, webinar and other nested information to subscriptions resource response in series subscribe endpoint aligning with the regular subscribe (`POST broadcasts/:id/subscriptions`).                            |
| 27 September 2022 | Added `assessment_passed_at` field to subscriptions resource response and added new URL parameter `assessment_passed` to filter on successful subscriptions.                                                                          |
| 31 March 2023     | Added `street`, `house_number`, `city`, `postcode` and `province` fields to subscriptions.                                                                                                                                            |
| 22 May 2023       | Increased per-page pagination maximum limit from 100 to 1000. Please use this when fetching from bigger data sets.                                                                                                                    |
| 30 May 2023       | Adjusted per minute rate limit rate to 300 requests to balance out a fair per second rate in all limit periods.                                                                                                                       |
| 9 June 2023       | Added `email` field to user data for webinar endpoints.                                                                                                                                                                               |
| 03 July 2023      | Added `confirmation_link` field to subscriptions.                                                                                                                                                                                     |
| 03 July 2023      | Added `yesterdays_replay_enabled` to the episode resource and `active_yesterdays_replay` field to the broadcast resources so you can subscribe viewers to yesterday's replay broadcasts specifically.                                 |
| 16 August 2023    | Added `include_past` parameter for queries to /webinars/{id} endpoint.                                                                                                                                                                |
| 23 November 2023  | Added `watched_true_set_at` field to subscriptions. This is the datetime when a subscriber first started watching a webinar, e.g. when a viewer watches live and replay this is the datetime the first was watched.                   |
| 23 November 2023  | Added two new filters to subscriptions endpoint: `watched_live` and `viewer_started_watching`                                                                                                                                         |
| 23 January 2024   | Added `given_access_after_viewer_limit` and `viewer_limit_hit_reason` fields to subscriptions. When `given_access_after_viewer_limit` is false the subscriber was unable to watch the webinar because a max viewer limit was reached. |
| 16 May 2024       | Added an optional `nested_resources` parameter to the subscription payments endpoint. Any nested resources will be included as part of the subscription resource.                                                                     |
| 14 June 2024      | Added `active_jit` field to the broadcast and `jit_enabled, jit_period_minutes, jit_closest_time, jit_broadcast_id` fields to the episode resource response. Fixed bug when yesterday's replay broadcast was present even if disabled.|
| 17 June 2024      | Added `job_title` field to subscriptions.                                                                                                                                                                                             |
| 13 Aug 2024       | Video information: added "video" block to the webinars output call with information about the video used for an episode                                                                                                               |
| 13 Aug 2024       | Added `archived`, `metadata_title`, `metadata_description` and `metadata_image` fields to webinars.                                                                                                                                   |
| 13 Aug 2024       | Added `replay_available` and `replay_available_until` fields to broadcasts.                                                                                                                                                           |
| 26 Aug 2024       | Added an optional `nested_resources` parameter to the webinars endpoint.                                                                                                                                                              |
| 25 Sep 2024       | Q&A support: added "questions" as a part of a subscriber to extract questions, as well as a separate endpoint for questions.                                                                                                          |
| 25 Feb 2025       | Added `evaluation_form_answers` nested object containing questions and answers to the subscription resource endpoint.                                                                                                                 |
| 3 Mar 2025        | Added `unsubscription_source` field to the subscription object.                                                                                                                                                                       |
| 24 Mar 2025       | Added `enrichments` object to the broadcast resource with a summaries field containing short and long AI-generated summaries, structured by language code (e.g., "en", "fr").                                                         |
| 9 Apr 2025        | Added `captions_language` field to the subscription object, showing if the user used captions or not, and if so, in which language.                                                                                                   |
| 21 Jul 2025       | Added endpoint to create broadcasts for a specific episode.                                                                                                                                                                           |
| 15 Aug 2025       | Added `public_replay_link` field to broadcasts.                                                                                                                                                                                       |
| 24 Oct 2025       | Added `url` field to subscription `calls_to_action` object when CTA is a URL.                                                                                                                                                         |
| 14 Nov 2025       | Added `watch_end` as an ordering option for subscriptions.                                                                                                                                                                            |
| 23 Mar 2026       | Added `browser_language` field to the subscription object.                                                                                                                                                                            |
| 8 May 2026        | Added `estimated_duration` field (in seconds) to the episode resource, including in nested episode payloads on broadcast and subscription responses.                                                                                  |
| 12 Aug 2026       | Added `auto_subscribe` field to the subscription object. It can be sent when subscribing to a broadcast or a webinar series to auto-subscribe the user to new broadcasts of the webinar.                                               |
| 14 Aug 2026       | Added `viewing_sessions` and `replay_viewing_sessions` nested objects to the retrieve a subscription endpoint, showing when a subscriber joined and left.                                                                              |


## Webinars [/webinars]

A webinar is the core of WebinarGeek, where it all begins. The Webinar resource
holds metadata of the webinar and its [related resources, like Episodes and
Broadcasts](#introduction/resource-relationships). A webinar with multiple
episodes is a "webinar series".

### List all webinars [GET]

Request a list of webinars.

+ Parameters

    + include_past: true (boolean, optional) - Include broadcasts from the past
        + Default: false

    + series_only: true (boolean, optional)
        Only include webinars that form a series, i.e. webinars that consist of
        at least 2 episodes.
        + Default: false

    + language: en (enum[string], optional)
        Only include webinars of language
        + Members
            + nl
            + en
            + de
            + fi
            + fr
            + it
            + es
            + pl
            + sv
            + da
            + nb
            + cs
            + sk
            + tr
            + et
            + sl

    + type: live (enum[string], optional)
        Type of episodes to filter on. You can only filter by 1 type at a time
        + Members
            + live
            + automated
            + ondemand

    + user_id: 1 (integer, optional)
        Filter on webinars created by a certain user

    + department_id: 1 (integer, optional)
        Filter on webinars created in a specific department

    + nested_resources: team_member (enum[string], optional)
        Include optional resources. You may chain multiple resources with a comma
        + Members
            + team_member

    + order: created_at (enum[string], optional) - Order of webinars
        + Default: created_at
        + Members
            + created_at

    + sort: desc (enum[string], optional) - Sort order
        + Default: desc
        + Members
            + desc
            + asc

+ Response 200 (application/json)

        {
            "total_count": 1,
            "webinars":
                [
                    {
                        "id": 1,
                        "title": "My webinar",
                        "internal_title": null,
                        "language": "en",
                        "url": "https://webinars.webinargeek.com/my-webinar",
                        "view_without_registration_url": "https://webinars.webinargeek.com/my-webinar/join/asdfqwer",
                        "ondemand": false,
                        "maximum_number_of_subscribers": 100,
                        "maximum_number_of_viewers": 95,
                        "metdata_title": "My webinar",
                        "metadata_description": "You can view this webinar from your computer, tablet or mobile phone.",
                        "metadata_image": "https://webinars.webinargeek.com/uploads/seo_image/2/seo_image.png",
                        "archived": false,
                        "created_at": 1506250583,
                        "episodes": [
                            {
                                "id": 1,
                                "title": "My webinar",
                                "internal_title": null,
                                "type": "live",
                                "subscriptions_count": 1,
                                "published": false,
                                "ondemand_watch_start_at": 1518285600,
                                "ondemand_limited_availability": true,
                                "ondemand_ended_at": 1546258100,
                                "yesterdays_replay_enabled": false,
                                "estimated_duration": 3600,
                                "jit_enabled": false,
                                "jit_period_minutes": nil,
                                "jit_closest_time": nil,
                                "jit_broadcast_id": nil,
                                "created_at": 1506250583,
                                "team_members": [
                                    {
                                        "id": 1,
                                        "firstname": "Presenter",
                                        "lastname": "Webinargeek",
                                        "email": "user11@webinargeek.com",
                                        "role": "Main presenter",
                                        "live_invitation_url": "http://subdomain.webinargeek.com/manage/1TXse17x0XIeHitKRUouhQ-MybtJqDQcdFgkA8jisE0/",
                                        "test_invitation_url": "http://subdomain.webinargeek.com/manage/1TXse17x0XIeHitKRUouhQ-MybtJqDQcdFgkA8jisE0/dry_run/",
                                        "created_at": 1506250583
                                    }
                                ],
                                "video": {
                                    "id": 1,
                                    "title": "Video title",
                                    "original_filename": "video.mp4",
                                    "duration": 3600
                                },
                                "broadcasts": [
                                    {
                                        "id": 1,
                                        "date": 1546250583,
                                        "has_ended": true,
                                        "cancelled": false,
                                        "started_at": 1546250583,
                                        "ended_at": 1546254183,
                                        "duration": 3600,
                                        "subscriptions_count": 1,
                                        "viewers_count": 1,
                                        "live_viewers_count": 1,
                                        "replay_available": true,
                                        "replay_available_until": 1754031680,
                                        "public_replay_link": "https://webinars.webinargeek.com/watch/replay/xyzxyzxyzxyz/",
                                        "replay_viewers_count": 1,
                                        "active_yesterdays_replay": false,
                                        "active_jit": false,
                                        "enrichments": {},
                                    }
                                ]
                            }
                        ],
                        "registration_fields": [
                            {
                                "name": "firstname",
                                "label": "First name",
                                "input_type": "text_field",
                                "position": 1,
                                "mandatory": true,
                                "extra_field": false,
                                "field_options": []
                            },
                            {
                                "name": "email",
                                "label": "Email",
                                "input_type": "text_field",
                                "position": 2,
                                "mandatory": true,
                                "extra_field": false,
                                "field_options": []
                            },
                            {
                                "name": "extra_field_3",
                                "label": "First time?",
                                "input_type": "dropdown",
                                "position": 3,
                                "mandatory": false,
                                "extra_field": true,
                                "field_options": [
                                    {
                                        "label": "Yes"
                                    },
                                    {
                                        "label": "No"
                                    }
                                ]
                            }
                        ],
                        "department": {
                            "id": 1,
                            "name": "HR"
                        },
                        "user": {
                            "id": 1,
                            "firstname": "Webinar",
                            "surname": "Creator",
                            "email": "webinar.creator@webinargeek.com"
                        }
                    }
                ],
            "pages":
                {
                    "next": null,
                    "page": 1,
                    "per_page": 50,
                    "total_pages": 1
                }
        }

### Retrieve a webinar [GET /webinars/{id}]

Retrieve a specific webinar.

+ Parameters

    + include_past: true (boolean, optional) - Include broadcasts from the past
        + Default: false

+ Response 200 (application/json)

        {
            "id": 1,
            "title": "My webinar",
            "internal_title": null,
            "language": "en",
            "url": "https://webinars.webinargeek.com/my-webinar",
            "view_without_registration_url": "https://webinars.webinargeek.com/my-webinar/join/asdfqwer",
            "ondemand": false,
            "maximum_number_of_subscribers": 100,
            "maximum_number_of_viewers": 95,
            "metdata_title": "My webinar",
            "metadata_description": "You can view this webinar from your computer, tablet or mobile phone.",
            "metadata_image": "https://webinars.webinargeek.com/uploads/seo_image/2/seo_image.png",
            "archived": false,
            "created_at": 1506250583,
            "episodes": [
                {
                    "id": 1,
                    "title": "My webinar",
                    "internal_title": null,
                    "type": "live",
                    "subscriptions_count": 1,
                    "published": false,
                    "ondemand_watch_start_at": 1518285600,
                    "ondemand_limited_availability": true,
                    "ondemand_ended_at": 1546258100,
                    "yesterdays_replay_enabled": false,
                    "estimated_duration": 3600,
                    "jit_enabled": false,
                    "jit_period_minutes": nil,
                    "jit_closest_time": nil,
                    "jit_broadcast_id": nil,
                    "created_at": 1506250583,
                    "team_members": [
                        {
                            "id": 1,
                            "firstname": "Presenter",
                            "lastname": "Webinargeek",
                            "email": "user11@webinargeek.com",
                            "role": "Main presenter",
                            "live_invitation_url": "http://subdomain.webinargeek.com/manage/1TXse17x0XIeHitKRUouhQ-MybtJqDQcdFgkA8jisE0/",
                            "test_invitation_url": "http://subdomain.webinargeek.com/manage/1TXse17x0XIeHitKRUouhQ-MybtJqDQcdFgkA8jisE0/dry_run/",
                            "created_at": 1506250583
                        }
                    ],
                    "video": {
                        "id": 1,
                        "title": "Video title",
                        "original_filename": "video.mp4",
                        "duration": 3600
                    },
                    "broadcasts": [
                        {
                            "id": 1,
                            "date": 1546250583,
                            "has_ended": true,
                            "cancelled": false,
                            "started_at": 1546250583,
                            "ended_at": 1546254183,
                            "duration": 3600,
                            "subscriptions_count": 1,
                            "viewers_count": 1,
                            "live_viewers_count": 1,
                            "replay_available": true,
                            "replay_available_until": 1754031680,
                            "public_replay_link": "https://webinars.webinargeek.com/watch/replay/xyzxyzxyzxyz/",
                            "replay_viewers_count": 1,
                            "active_yesterdays_replay": false,
                            "active_jit": false,
                            "enrichments": {},
                        }
                    ]
                }
            ],
            "registration_fields": [
                {
                    "name": "firstname",
                    "label": "First name",
                    "input_type": "text_field",
                    "position": 1,
                    "mandatory": true,
                    "extra_field": false,
                    "field_options": []
                },
                {
                    "name": "email",
                    "label": "Email",
                    "input_type": "text_field",
                    "position": 2,
                    "mandatory": true,
                    "extra_field": false,
                    "field_options": []
                },
                {
                    "name": "extra_field_3",
                    "label": "First time?",
                    "input_type": "dropdown",
                    "position": 3,
                    "mandatory": false,
                    "extra_field": false,
                    "field_options": [
                        {
                            "label": "Yes"
                        },
                        {
                            "label": "No"
                        }
                    ]
                }
            ],
            "department": {
                "id": 1,
                "name": "HR"
            },
            "user": {
                "id": 1,
                "firstname": "Webinar",
                "surname": "Creator",
                "email": "webinar.creator@webinargeek.com"
            }
        }

### Subscribe to a webinar series [POST /webinars/{id}/series_subscribe]

Create subscriptions for exactly one broadcast of each episode of a given
webinar. This is useful when you have webinar series, i.e. webinars with 2 or
more episodes. Otherwise, subscribing to just 1 specific broadcast can easily be
done via the [Subscribe to a broadcast
endpoint](#reference/0/broadcasts/subscribe-to-a-broadcast).

The creation of subscriptions will fail if there are no subscribable broadcasts
for at least one of the episodes. Possible reasons could be:

* all broadcasts for an episode are in the past
* all of the broadcasts for at least 1 episode have reached the webinar's
  maximum number of subscribers limit

In the above cases, or in the case of any other error, no subscriptions will be
created. Also note just-in-time broadcasts are not supported by this endpoint.

Trying to create a subscription for a user to a broadcast which they are already
subscribed to, will silently skip the subscription.

Subscriptions through the API don't validate extra fields or consent fields,
e.g. if those are configured as required in the webinar settings.

Responds with the created subscriptions in the order of their parent
`broadcast_id`.

+ Request (application/json)

    + Attributes(Subscription Base)
        + broadcasts: 12, 15 (array[number])
            Optional unique broadcast identifiers to subscribe to. If provided,
            it must be exactly 1 broadcast per episode and match a broadcast in
            every episode.

+ Response 201 (application/json)

        {
            "total_count": 2,
            "subscriptions":
                [
                    {
                        "id": 1,
                        "firstname": "John",
                        "surname": "Smith",
                        "company": "Smit, Inc.",
                        "job_title": "Sales Manager",
                        "email": "john@smith.com",
                        "country": "NL",
                        "phone": "1234567890",
                        "external_id": "my_internal_id",
                        "extra_fields": {
                            "extra_field_123": "I am an API user"
                        },
                        "consent_fields": {
                            "Privacy policy": "I consent to the privacy policy."
                        },
                        "custom_field": "e.g. campaign ID",
                        "registration_ip": "192.168.0.1",
                        "registration_source": "api",
                        "auto_subscribe": false,
                        "utm_source": "facebook",
                        "utm_medium": "cpc",
                        "utm_campaign": "summer_sale",
                        "utm_term": "webinar software",
                        "utm_content": "top_banner",
                        "watch_link": "https://webinars.webinargeek.com/watch/xyzxyzxyzxyz/",
                        "watched": true,
                        "watched_true_set_at": 1546250582,
                        "watch_start": 1546250583,
                        "watch_end": 1546254183,
                        "watch_duration": 3600,
                        "watched_live": true,
                        "watched_replay": true,
                        "watch_start_replay": 1546250583,
                        "watch_end_replay": 1546254183,
                        "watch_duration_replay": 3600,
                        "captions_language": "en",
                        "viewer_limit_hit_reason": "plan_limit",
                        "given_access_after_viewer_limit": true,
                        "payment_to_watch_completed": false,
                        "eligible_to_watch": true,
                        "unsubscribed": false,
                        "unsubscription_source": null,
                        "unsubscribed_at": null,
                        "time_zone": "Europe/Amsterdam",
                        "browser_language": "en",
                        "created_at": 1546250583,
                        "email_updated_at": 1546250583,
                        "email_verified": true,
                        "email_verified_at": 1546250583,
                        "assessment": [],
                        "poll_votes": [],
                        "quiz_answers": [],
                        "evaluation_form_answers": [],
                        "payments": [],
                        "broadcast": {
                            "id": 12,
                            "date": 1546250583,
                            "has_ended": false,
                            "cancelled": false,
                            "started_at": 1546250583,
                            "ended_at": 1546254183,
                            "duration": 3600,
                            "subscriptions_count": 2,
                            "viewers_count": 0,
                            "live_viewers_count": 0,
                            "replay_viewers_count": 0,
                            "active_yesterdays_replay": false,
                            "active_jit": false,
                            "enrichments": {
                                "summaries": {
                                    "short": {
                                        "en": "A concise overview of the webinar."
                                    },
                                    "long": {
                                        "en": "A detailed summary of the webinar covering all key points discussed."
                                    }
                                }
                            },
                        },
                        "episode": {
                            "id": 1,
                            "title": "My webinar",
                            "internal_title": "My webinar - part 1",
                            "type": "live",
                            "subscriptions_count": 2,
                            "estimated_duration": 3600
                        },
                        "webinar": {
                            "id": 1,
                            "title": "My webinar",
                            "internal_title": "My webinar - series",
                            "url": "https://webinars.webinargeek.com/my-webinar",
                            "ondemand": false
                        }
                    },
                    {
                        "id": 2,
                        "firstname": "John",
                        "surname": "Smith",
                        "company": "Smit, Inc.",
                        "job_title": "Sales Manager",
                        "email": "john@smith.com",
                        "country": "NL",
                        "phone": "1234567890",
                        "external_id": "my_internal_id",
                        "extra_fields": {
                            "extra_field_123": "I am an API user"
                        },
                        "consent_fields": {
                            "Privacy policy": "I consent to the privacy policy."
                        },
                        "custom_field": "e.g. campaign ID",
                        "registration_ip": "192.168.0.1",
                        "registration_source": "api",
                        "auto_subscribe": false,
                        "utm_source": null,
                        "utm_medium": null,
                        "utm_campaign": null,
                        "utm_term": null,
                        "utm_content": null,
                        "watch_link": "https://webinars.webinargeek.com/watch/xyzxyzxyzxyz/",
                        "watched": false,
                        "watched_true_set_at": null,
                        "watch_start": null,
                        "watch_end": null,
                        "watch_duration": 3600,
                        "watched_live": false,
                        "watched_replay": false,
                        "watch_start_replay": null,
                        "watch_end_replay": null,
                        "watch_duration_replay": 3600,
                        "captions_language": "en",
                        "viewer_limit_hit_reason": "plan_limit",
                        "given_access_after_viewer_limit": true,
                        "payment_to_watch_completed": false,
                        "eligible_to_watch": true,
                        "unsubscribed": false,
                        "unsubscription_source": null,
                        "unsubscribed_at": null,
                        "time_zone": "Europe/Amsterdam",
                        "browser_language": "en",
                        "created_at": 1546250583,
                        "email_updated_at": null,
                        "email_verified": true,
                        "email_verified_at": 1546250583,
                        "assessment": [],
                        "poll_votes": [],
                        "quiz_answers": [],
                        "evaluation_form_answers": [],
                        "payments": [],
                        "broadcast": {
                            "id": 15,
                            "date": 1546250987,
                            "has_ended": true,
                            "cancelled": false,
                            "started_at": null,
                            "ended_at": null,
                            "duration": 3600,
                            "subscriptions_count": 2,
                            "viewers_count": 0,
                            "live_viewers_count": 0,
                            "replay_viewers_count": 0,
                            "public_replay_viewers_count": 0,
                            "active_yesterdays_replay": false,
                            "active_jit": false,
                            "enrichments": {
                                "summaries": {
                                    "short": {
                                        "en": "A concise overview of the webinar."
                                    },
                                    "long": {
                                        "en": "A detailed summary of the webinar covering all key points discussed."
                                    }
                                }
                            },
                        },
                        "episode": {
                            "id": 1,
                            "title": "My webinar",
                            "internal_title": "My webinar - part 2",
                            "type": "live",
                            "subscriptions_count": 2,
                            "estimated_duration": 3600
                        },
                        "webinar": {
                            "id": 1,
                            "title": "My webinar",
                            "internal_title": "My webinar - series",
                            "url": "https://webinars.webinargeek.com/my-webinar",
                            "ondemand": false
                        }
                    }
                ]
        }

+ Response 400 (application/json)

    + Attributes(BadRequestError)

    + Body

            {
                "code": "bad_request",
                "message": "Broadcast 15 is not part of an episode of webinar 1"
            }

+ Response 404 (application/json)

    + Attributes(NotFoundError)

    + Body

            {
                "code": "not_found",
                "message": "Webinar not found: 1"
            }

+ Response 409 (application/json)

    + Attributes(ConflictError)

    + Body

            {
                "code": "conflict_error",
                "message": "Broadcast subscription limit of 50 subscribers reached: 12"
            }

+ Response 422 (application/json)

    + Attributes(UnprocessableEntityError)

    + Body

            {
                "code": "unprocessable_entity",
                "message": "broadcasts [] must be a non-empty array."
            }

## Broadcasts [/broadcasts]

A broadcast is a specific broadcast of an episode within a webinar. For live broadcasts this happens at one specific
date and time. For on demand webinars, the broadcast is something that is used across the whole lifespan of the webinar
for all viewers.

### List all broadcasts [GET]

Request a list of broadcasts for an account.

+ Parameters
    + nested_resources: episode (enum[string], optional)
        Include optional resources. You may chain multiple resources with a comma
        + Members
            + episode
            + webinar

    + order: created_at (enum[string], optional) - Order of broadcasts
        + Default: date
        + Members
            + created_at
            + date

    + sort: desc (enum[string], optional) - Sort order
        + Default: desc
        + Members
            + desc
            + asc

+ Response 200 (application/json)

        {
            "total_count": 1,
            "broadcasts":
                [
                    {
                        "id": 1,
                        "date": 1546250583,
                        "has_ended": true,
                        "cancelled": false,
                        "started_at": 1546250583,
                        "ended_at": 1546254183,
                        "duration": 3600,
                        "subscriptions_count": 1,
                        "viewers_count": 1,
                        "live_viewers_count": 1,
                        "replay_available": true,
                        "replay_available_until": 1754031680,
                        "public_replay_link": "https://webinars.webinargeek.com/watch/replay/xyzxyzxyzxyz/",
                        "replay_viewers_count": 1,
                        "active_yesterdays_replay": false,
                        "active_jit": false,
                        "enrichments": {},
                    }
                ],
            "pages":
                {
                    "next": null,
                    "page": 1,
                    "per_page": 50,
                    "total_pages": 1
                }
        }

### Retrieve a broadcast [GET /broadcasts/{id}]

Retrieve a specific broadcast.

+ Response 200 (application/json)

        {
            "id": 1,
            "date": 1546250583,
            "has_ended": true,
            "cancelled": false,
            "started_at": 1546250583,
            "ended_at": 1546254183,
            "duration": 3600,
            "subscriptions_count": 1,
            "viewers_count": 1,
            "live_viewers_count": 1,
            "replay_available": true,
            "replay_available_until": 1754031680,
            "public_replay_link": "https://webinars.webinargeek.com/watch/replay/xyzxyzxyzxyz/",
            "replay_viewers_count": 1,
            "active_yesterdays_replay": false,
            "active_jit": false,
            "enrichments": {
                "summaries": {
                    "short": {
                        "en": "A concise overview of the webinar."
                    },
                    "long": {
                        "en": "A detailed summary of the webinar covering all key points discussed."
                    }
                }
            },
            "episode":
                {
                    "id": 1,
                    "title": "My webinar",
                    "internal_title": null,
                    "type": "live",
                    "subscriptions_count": 1,
                    "estimated_duration": 3600
                },
            "webinar":
                {
                    "id": 1,
                    "title": "My webinar",
                    "internal_title": null,
                    "url": "https://webinars.webinargeek.com/my-webinar",
                    "ondemand": false
                }
        }

### Subscribe to a broadcast [POST /broadcasts/{id}/subscriptions]

Subscribe an end-user to a broadcast.

Some POST body attributes are mandatory, others may depend on how the webinar
was set-up by the webinar host inside the app. For example some webinars require
the surname. You can see which general and extra fields are defined on a webinar
by looking at a webinar's `registration_fields` array.

Subscriptions through the API don't validate extra fields or consent fields,
e.g. if those are configured as required in the webinar settings.

_If you would like to subscribe a viewer to a whole webinar series at once, you
can use the convenience endpoint [Subscribe to a webinar
series](#reference/0/webinars/subscribe-to-a-webinar-series)._

Returns the created subscription that subscribes the end-user to the broadcast.

A special use case is subscribing to just-in-time broadcasts `active_jit: true`:
such broadcast is a virtual one, it doesn't have a fixed date, instead `date`
always contains the next available time (e.g. "each 10 minutes"). Passing this
broadcast ID when subscribing will automatically create a real broadcast for
this time and subscribe to it, so returned `broadcast` resource will contain
the just created broadcast ID and details. JIT is enabled on the episode level:
if JIT is available, the relevant episode's `jit_enabled` field will be true,
`jit_closest_time` will contain the next date (equal to the broadcast `date`),
`jit_period_minutes` will contain the period in minutes, and `jit_broadcast_id`
will contain the ID of the virtual broadcast with `active_jit: true`.

+ Request (application/json)

    + Attributes(Subscription Base)

+ Response 201 (application/json)

    + Body

            {
                "id": 1,
                "firstname": "John",
                "surname": "Smith",
                "company": "Smit, Inc.",
                "job_title": "Sales Manager",
                "email": "john@smith.com",
                "country": "NL",
                "phone": "1234567890",
                "external_id": "my_internal_id",
                "extra_fields": {
                    "extra_field_123": "I am an API user"
                },
                "consent_fields": {
                    "Privacy policy": "I consent to the privacy policy."
                },
                "custom_field": "e.g. campaign ID",
                "registration_ip": "192.168.0.1",
                "registration_source": "api",
                "auto_subscribe": false,
                "utm_source": "facebook",
                "utm_medium": "cpc",
                "utm_campaign": "summer_sale",
                "utm_term": "webinar software",
                "utm_content": "top_banner",
                "confirmation_link": "https://webinars.webinargeek.com/webinar/subscribed/xyzxyzxyzxyz/",
                "watch_link": "https://webinars.webinargeek.com/watch/xyzxyzxyzxyz/",
                "watched": false,
                "watched_true_set_at": null,
                "watch_start": null,
                "watch_end": null,
                "watch_duration": null,
                "watched_live": false,
                "watched_replay": false,
                "watch_start_replay": null,
                "watch_end_replay": null,
                "watch_duration_replay": 0,
                "captions_language": "en",
                "viewer_limit_hit_reason": "plan_limit",
                "given_access_after_viewer_limit": true,
                "payment_to_watch_completed": false,
                "eligible_to_watch": true,
                "unsubscribed": false,
                "unsubscription_source": null,
                "unsubscribed_at": null,
                "time_zone": "Europe/Amsterdam",
                "browser_language": "en",
                "created_at": 1546250000,
                "email_updated_at": null,
                "email_verified": true,
                "email_verified_at": 1546250583,
                "assessment": [],
                "poll_votes": [],
                "quiz_answers": [],
                "evaluation_form_answers": [],
                "payments": [],
                "broadcast": {
                    "id": 1,
                    "date": 1546250583,
                    "has_ended": false,
                    "cancelled": false,
                    "started_at": null,
                    "ended_at": null,
                    "duration": 3600,
                    "subscriptions_count": 1,
                    "viewers_count": 0,
                    "live_viewers_count": 0,
                    "replay_available": true,
                    "replay_available_until": 1754031680,
                    "public_replay_link": "https://webinars.webinargeek.com/watch/replay/xyzxyzxyzxyz/",
                    "replay_viewers_count": 0,
                    "active_yesterdays_replay": false,
                    "active_jit": false,
                    "enrichments": {
                        "summaries": {
                            "short": {
                                "en": "A concise overview of the webinar."
                            },
                            "long": {
                                "en": "A detailed summary of the webinar covering all key points discussed."
                            }
                        }
                    },
                },
                "episode": {
                    "id": 1,
                    "title": "My webinar",
                    "internal_title": null,
                    "type": "live",
                    "subscriptions_count": 1,
                    "estimated_duration": 3600
                },
                "webinar": {
                    "id": 1,
                    "title": "My webinar",
                    "internal_title": null,
                    "url": "https://webinars.webinargeek.com/my-webinar",
                    "ondemand": false
                }
            }

### Create a Broadcast for an Episode [POST /episodes/{id}/broadcasts]

Create Broadcast for an Episode. Episode ids can be found in the Webinar dashboard UI or via the API when retrieving
resources such as Webinar, Broadcast or Subscription with a nested Episode resource.

Broadcasts can only be created for Live and Automated webinars. The provided date and time must be in the future.
The format for providing a date is ISO98601.

Returns the created broadcast, or an existing broadcast if the datetime provided matches an existing broadcast for the
specified episode.

+ Request (application/json)
    + Attributes (object)
        + episode_id: 123 (number, required)
        + date: `2025-07-09T14:30:00+02:00` (string, required)

+ Response 201 (application/json)

    + Body

            {
                "id": 1,
                "date": 1752064200,
                "has_ended": false,
                "cancelled": false,
                "started_at": null,
                "ended_at": null,
                "duration": null,
                "subscriptions_count": 0,
                "viewers_count": 0,
                "live_viewers_count": 0,
                "replay_available": true,
                "replay_available_until": null,
                "public_replay_link": "https://webinars.webinargeek.com/watch/replay/xyzxyzxyzxyz/",
                "replay_viewers_count": 0,
                "active_yesterdays_replay": false,
                "active_jit": false,
                "enrichments": {
                    "summaries": {
                        "short": {
                            "en": "A concise overview of the webinar."
                        },
                        "long": {
                            "en": "A detailed summary of the webinar covering all key points discussed."
                        }
                    }
                },
                "episode":
                    {
                        "id": 1,
                        "title": "My webinar",
                        "internal_title": null,
                        "type": "live",
                        "subscriptions_count": 1,
                        "estimated_duration": 3600
                    },
                "webinar":
                    {
                        "id": 1,
                        "title": "My webinar",
                        "internal_title": null,
                        "url": "https://webinars.webinargeek.com/my-webinar",
                        "ondemand": false
                    }
            }

## Subscriptions [/subscriptions]

Subscriptions are the subscribers to the webinars, or rather, to broadcasts.

### List all subscriptions [GET]

Request a list of subscribers for a specific broadcast, episode, webinar or for the whole account.
This call does not return subscribers that still require email address verification, if this
is enabled for the webinar.

+ Parameters

    + email: john@smith.com (string, optional)
        Filter subscribers on email address

    + external_id: 1 (string, optional)
        Filter subscribers on external_id

    + watched_webinar: true (boolean, optional)
        Filter by subscribers that watched the webinar

    + watched_replay: true (boolean, optional)
        Filter by subscribers that watched the replay

    + watched_live: true (boolean, optional)
        Filter by subscribers that watched the live webinar

    + viewer_started_watching: true (boolean, optional)
        Filter by subscribers that started watching a webinar

    + broadcast_ended: true (boolean, optional)
        Filter by ended broadcasts for live or automated webinars

    + unsubscribed: true (boolean, optional) - Return only unsubscribed subscribers

    + assessment_passed: true (boolean, optional) - Return only successfully assessed subscriptions

    + episode_id: 1 (integer, optional) - Filter by episode

    + broadcast_id: 1 (integer, optional) - Filter by broadcast

    + webinar_id: 1 (integer, optional) - Filter by webinar

    + watch_end_from: `2024-01-15T00:00:00Z` (string, optional)
        Filter subscriptions where watch_end is on or after this timestamp.
        ISO8601 format in UTC. Must be used together with watch_end_to.
        Only returns subscriptions with a non-null watch_end.

    + watch_end_to: `2024-01-31T23:59:59Z` (string, optional)
        Filter subscriptions where watch_end is on or before this timestamp.
        ISO8601 format in UTC. Must be used together with watch_end_from.
        Only returns subscriptions with a non-null watch_end.

    + nested_resources: broadcast (enum[string], optional)
        Include optional resources, you may chain multiple resources using a comma
        + Members
            + broadcast
            + episode
            + webinar

    + order: created_at (enum[string], optional) - Order of subscriptions
        + Default: created_at
        + Members
            + created_at
            + unsubscribed_at
            + watched_true_set_at
            + watch_end

    + sort: desc (enum[string], optional) - Sort order
        + Default: desc
        + Members
            + desc
            + asc

+ Response 200 (application/json)

        {
            "total_count": 1,
            "subscriptions":
                [
                    {
                        "id": 1,
                        "firstname": "John",
                        "surname": "Smith",
                        "company": "Smit, Inc.",
                        "job_title": "Sales Manager",
                        "email": "john@smith.com",
                        "street": "Street",
                        "house_number": "123",
                        "city": "Zoetermeer",
                        "postcode": "1234AA",
                        "province": "Zuid Holland",
                        "country": "NL",
                        "phone": "1234567890",
                        "external_id": "my_internal_id",
                        "extra_fields": {
                            "extra_field_123": "I am an API user"
                        },
                        "consent_fields": {
                            "Privacy policy": "I consent to the privacy policy."
                        },
                        "custom_field": "e.g. campaign ID",
                        "registration_ip": "192.168.0.1",
                        "registration_source": "api",
                        "auto_subscribe": false,
                        "utm_source": "facebook",
                        "utm_medium": "cpc",
                        "utm_campaign": "summer_sale",
                        "utm_term": "webinar software",
                        "utm_content": "top_banner",
                        "confirmation_link": "https://webinars.webinargeek.com/webinar/subscribed/xyzxyzxyzxyz/",
                        "watch_link": "https://webinars.webinargeek.com/watch/xyzxyzxyzxyz/",
                        "watched": true,
                        "watched_true_set_at": 1546250582,
                        "watch_start": 1546250583,
                        "watch_end": 1546254183,
                        "watch_duration": 3600,
                        "watched_live": true,
                        "watched_replay": true,
                        "watch_start_replay": 1546250583,
                        "watch_end_replay": 1546254183,
                        "watch_duration_replay": 3600,
                        "captions_language": "en",
                        "viewer_limit_hit_reason": "plan_limit",
                        "given_access_after_viewer_limit": true,
                        "payment_to_watch_completed": false,
                        "eligible_to_watch": true,
                        "unsubscribed": false,
                        "unsubscription_source": null,
                        "unsubscribed_at": null,
                        "time_zone": "Europe/Amsterdam",
                        "browser_language": "en",
                        "created_at": 1546250583,
                        "email_updated_at": 1546250583,
                        "email_verified": true,
                        "email_verified_at": 1546250583
                    }
                ],
            "pages":
                {
                    "next": null,
                    "page": 1,
                    "per_page": 50,
                    "total_pages": 1
                }
        }

### Retrieve a subscription [GET /subscriptions/{id}]

Retrieve details of a specific subscriber including some of the actions done during a webinar
such as messages, poll votes or payments.

Messages and questions are limited to only messages/questions sent from the subscriber (rather than also to), and are
limited to a maximum of 100. If you require more, use the dedicated endpoints for messages and questions.

`viewing_sessions` (live) and `replay_viewing_sessions` (recording) break the total watch time down into the separate
moments a subscriber watched, so you can see when someone joined, left and came back. Per session, `start_at` and
`end_at` are moments in time, `start_position` and `end_position` the matching positions in the video in seconds.
`duration` is the number of seconds actually watched, which can be less than the time between `start_at` and `end_at`.
For a session that has not finished yet, `end_at`, `end_position` and `duration` are `null`.

Both arrays are limited to a maximum of 100 sessions.

+ Response 200 (application/json)

        {
            "id": 1,
            "firstname": "John",
            "surname": "Smith",
            "company": "Smith, Inc.",
            "job_title": "Sales Manager",
            "street": "Street",
            "house_number": "123",
            "city": "Zoetermeer",
            "postcode": "1234AA",
            "province": "Zuid Holland",
            "country": "NL",
            "phone": "1234567890",
            "external_id": "my_internal_id",
            "extra_fields": {
                "extra_field_123": "I am an API user"
            },
            "consent_fields": {
                "Privacy policy": "I consent to the privacy policy."
            },
            "custom_field": "e.g. campaign ID",
            "registration_ip": "192.168.0.1",
            "registration_source": "api",
            "auto_subscribe": false,
            "utm_source": "facebook",
            "utm_medium": "cpc",
            "utm_campaign": "summer_sale",
            "utm_term": "webinar software",
            "utm_content": "top_banner",
            "confirmation_link": "https://webinars.webinargeek.com/webinar/subscribed/xyzxyzxyzxyz/",
            "watch_link": "https://webinars.webinargeek.com/watch/xyzxyzxyzxyz/",
            "watched": true,
            "watched_true_set_at": 1546250582,
            "watch_start": 1546250583,
            "watch_end": 1546254183,
            "watch_duration": 3000,
            "watched_live": true,
            "watched_replay": true,
            "watch_start_replay": 1546336983,
            "watch_end_replay": 1546510383,
            "watch_duration_replay": 1200,
            "captions_language": "en",
            "viewer_limit_hit_reason": "plan_limit",
            "given_access_after_viewer_limit": true,
            "payment_to_watch_completed": false,
            "eligible_to_watch": true,
            "unsubscribed": false,
            "unsubscription_source": null,
            "unsubscribed_at": null,
            "time_zone": "Europe/Amsterdam",
            "browser_language": "en",
            "created_at": 1546250583,
            "email_updated_at": 1546250583,
            "email_verified": true,
            "email_verified_at": 1546250583,
            "assessment": {
                "result": false,
                "criteria": [
                    {
                        "type": "viewing_time",
                        "value": 1179,
                        "result": false
                    },
                    {
                        "type": "polls_count",
                        "value": 2,
                        "result": true
                    },
                    {
                        "type": "evaluation_form",
                        "value": true,
                        "result": true
                    },
                    {
                        "type": "correct_quizzes_count",
                        "value": 2,
                        "result": true
                    }
                ]
            },
            "poll_votes": [
                {
                    "question": "Have you ever worked with us before?",
                    "answers": [
                        "Yes"
                    ]
                }
            ],
            "quiz_answers": [
                {
                    "question": "Is this a REST API?",
                    "answered_correctly": true,
                    "answers": [
                        "Yes"
                    ]
                }
            ],
            "evaluation_form_answers": [
                {
                    "question": "How was the webinar?",
                    "answers": [
                        "I enjoyed it"
                    ]
                }
            ],
            "calls_to_action": [
                {
                    "title": "Visit my webpage",
                    "type": "url",
                    "url": "https://www.webinargeek.com",
                    "created_at": 1546250693
                },
                {
                    "title": "Click a button",
                    "type": "store",
                    "created_at": 1546250693
                },
                {
                    "title": "Fill in my form",
                    "type": "form",
                    "form": [
                        {
                            "key": "name",
                            "value": "Jane"
                        },
                        {
                            "key": "email",
                            "value": "jane@smith.com"
                        }
                    ],
                    "created_at": 1546250793
                }
            ],
            "messages": [
                {
                    "id": 1,
                    "type": "private",
                    "message": "Neque omnis et deserunt?",
                    "created_at": 1589483509
                }
            ],
            "questions": [
                {
                    "id": 1,
                    "question": "First question",
                    "upvotes_count": 1,
                    "created_at": 1609498800
                }
            ],
            "payments": [
                {
                    "payment_key": "xyzxyzxyzxyz",
                    "provider_payment_id": "tr_1234567890",
                    "provider_payment_state": "paid",
                    "payment_method": "ideal",
                    "amount": "10.00",
                    "amount_paid": "12.10",
                    "amount_includes_taxes": true,
                    "amount_tax_calculated_automatically": true,
                    "currency": "EUR",
                    "discount_used": false,
                    "application_fee": "0.50",
                    "created_at": 1546250583,
                    "payment_completed_at": 1546250509
                }
            ],
            "broadcast": {
                "id": 1,
                "date": 1546250583,
                "has_ended": true,
                "cancelled": false,
                "started_at": 1546250583,
                "ended_at": 1546254183,
                "duration": 3600,
                "subscriptions_count": 1,
                "viewers_count": 1,
                "live_viewers_count": 1,
                "replay_viewers_count": 1,
                "active_yesterdays_replay": false,
                "active_jit": false,
                "enrichments": {
                    "summaries": {
                        "short": {
                            "en": "A concise overview of the webinar."
                        },
                        "long": {
                            "en": "A detailed summary of the webinar covering all key points discussed."
                        }
                    }
                },
            },
            "episode": {
                "id": 1,
                "title": "My webinar",
                "internal_title": null,
                "type": "live",
                "subscriptions_count": 1,
                "estimated_duration": 3600
            },
            "webinar": {
                "id": 1,
                "title": "My webinar",
                "internal_title": null,
                "url": "https://webinars.webinargeek.com/my-webinar",
                "ondemand": false
            },
            "viewing_sessions": [
                {
                    "start_at": 1546250583,
                    "end_at": 1546252383,
                    "start_position": 0,
                    "end_position": 1800,
                    "duration": 1800
                },
                {
                    "start_at": 1546252983,
                    "end_at": 1546254183,
                    "start_position": 2400,
                    "end_position": 3600,
                    "duration": 1200
                }
            ],
            "replay_viewing_sessions": [
                {
                    "start_at": 1546336983,
                    "end_at": 1546337583,
                    "start_position": 0,
                    "end_position": 600,
                    "duration": 600
                },
                {
                    "start_at": 1546509783,
                    "end_at": 1546510383,
                    "start_position": 600,
                    "end_position": 1200,
                    "duration": 600
                }
            ]
        }

### Unsubscribe a subscriber [POST /subscriptions/{id}/unsubscribe]

Unsubscribe a specific subscriber from a broadcast, which means they can't view the webinar anymore
and won't receive any more emails. If you re-subscribe someone it will create a new subscription.

Upon success you will receive a `200 OK` and we will return the new updated subscription model
with `unsubscribed` set to `true`.

+ Response 200 (application/json)

        {
            "id": 1,
            "firstname": "John",
            "surname": "Smith",
            "company": "Smith, Inc.",
            "job_title": "Sales Manager",
            "email": "john@smith.com",
            "street": "Street",
            "house_number": "123",
            "city": "Zoetermeer",
            "postcode": "1234AA",
            "province": "Zuid Holland",
            "country": "NL",
            "phone": "1234567890",
            "external_id": "my_internal_id",
            "extra_fields": {
                "extra_field_123": "I am an API user"
            },
            "consent_fields": {
                "Privacy policy": "I consent to the privacy policy."
            },
            "custom_field": "e.g. campaign ID",
            "registration_ip": "192.168.0.1",
            "registration_source": "api",
            "auto_subscribe": false,
            "utm_source": "facebook",
            "utm_medium": "cpc",
            "utm_campaign": "summer_sale",
            "utm_term": "webinar software",
            "utm_content": "top_banner",
            "confirmation_link": "https://webinars.webinargeek.com/webinar/subscribed/xyzxyzxyzxyz/",
            "watch_link": "https://webinars.webinargeek.com/watch/xyzxyzxyzxyz/",
            "watched": true,
            "watched_true_set_at": 1546250582,
            "watch_start": 1546250583,
            "watch_end": 1546254183,
            "watch_duration": 3600,
            "watched_live": true,
            "watched_replay": true,
            "watch_start_replay": 1546250583,
            "watch_end_replay": 1546254183,
            "watch_duration_replay": 3600,
            "captions_language": "en",
            "viewer_limit_hit_reason": "plan_limit",
            "given_access_after_viewer_limit": true,
            "payment_to_watch_completed": false,
            "eligible_to_watch": true,
            "unsubscribed": true,
            "unsubscription_source": "api",
            "unsubscribed_at": 1546254183,
            "time_zone": "Europe/Amsterdam",
            "browser_language": "en",
            "created_at": 1546250583,
            "email_updated_at": 1546250583,
            "email_verified": true,
            "email_verified_at": 1546250583,
            "assessment": {
                "result": false,
                "criteria": [
                    {
                        "type": "viewing_time",
                        "value": 1179,
                        "result": false
                    },
                    {
                        "type": "polls_count",
                        "value": 2,
                        "result": true
                    },
                    {
                        "type": "evaluation_form",
                        "value": true,
                        "result": true
                    },
                    {
                        "type": "correct_quizzes_count",
                        "value": 1,
                        "result": true
                    }
                ]
            },
            "poll_votes": [
                {
                    "question": "Have you ever worked with us before?",
                    "answers": [
                        "Yes"
                    ]
                }
            ],
            "quiz_answers": [
                {
                    "question": "Is this a REST API?",
                    "answered_correctly": true,
                    "answers": [
                        "Yes"
                    ]
                }
            ],
            "evaluation_form_answers": [
                {
                    "question": "How was the webinar?",
                    "answers": [
                        "I enjoyed it"
                    ]
                }
            ],
            "calls_to_action": [
                {
                    "title": "Visit my webpage",
                    "type": "url",
                    "url": "https://www.webinargeek.com",
                    "created_at": 1546250693
                },
                {
                    "title": "Click a button",
                    "type": "store",
                    "created_at": 1546250693
                },
                {
                    "title": "Fill in my form",
                    "type": "form",
                    "form": [
                        {
                            "key": "name",
                            "value": "Jane"
                        },
                        {
                            "key": "email",
                            "value": "jane@smith.com"
                        }
                    ],
                    "created_at": 1546250793
                }
            ],
            "messages": [
                {
                    "id": 1,
                    "type": "private",
                    "message": "Neque omnis et deserunt?",
                    "created_at": 1589483509
                }
            ],
            "payments": [
                {
                    "payment_key": "xyzxyzxyzxyz",
                    "provider_payment_id": "tr_1234567890",
                    "provider_payment_state": "paid",
                    "payment_method": "ideal",
                    "amount": "10.00",
                    "amount_paid": "12.10",
                    "amount_includes_taxes": true,
                    "amount_tax_calculated_automatically": true,
                    "currency": "EUR",
                    "discount_used": false,
                    "application_fee": "0.50",
                    "created_at": 1546250583,
                    "payment_completed_at": 1546250509
                }
            ],
            "broadcast": {
                "id": 1,
                "date": 1546250583,
                "has_ended": true,
                "cancelled": false,
                "started_at": 1546250583,
                "ended_at": 1546254183,
                "duration": 3600,
                "subscriptions_count": 1,
                "viewers_count": 1,
                "live_viewers_count": 1,
                "replay_viewers_count": 1,
                "active_yesterdays_replay": false,
                "active_jit": false,
                "enrichments": {
                    "summaries": {
                        "short": {
                            "en": "A concise overview of the webinar."
                        },
                        "long": {
                            "en": "A detailed summary of the webinar covering all key points discussed."
                        }
                    }
                },
            },
            "episode": {
                "id": 1,
                "title": "My webinar",
                "internal_title": null,
                "type": "live",
                "subscriptions_count": 1,
                "estimated_duration": 3600
            },
            "webinar": {
                "id": 1,
                "title": "My webinar",
                "internal_title": null,
                "url": "https://webinars.webinargeek.com/my-webinar",
                "ondemand": false
            }
        }

## Subscription payments [/subscription_payments]

Subscription payments are payments completed or refunded from a subscriber within the context of paid webinars.

Possible provider_payment_states: paid, refunded

### List all subscription payments [GET]

Request a list of payments for a specific broadcast, episode, webinar or for the whole account.

+ Parameters

    + episode_id: 1 (integer, optional) - Filter by episode

    + broadcast_id: 1 (integer, optional) - Filter by broadcast

    + webinar_id: 1 (integer, optional) - Filter by webinar

    + nested_resources: broadcast (enum[string], optional)
        Include optional resources, you may chain multiple resources using a comma
        + Members
            + broadcast
            + episode
            + webinar

    + order: created_at (enum[string], optional) - Order of subscription payments
        + Default: created_at
        + Members
            + created_at

    + sort: desc (enum[string], optional) - Sort order
        + Default: desc
        + Members
            + desc
            + asc

+ Response 200 (application/json)

        {
            "total_count": 1,
            "subscription_payments":
                [
                    {
                        "payment_key": "xyzxyzxyzxyz",
                        "provider_payment_id": "tr_1234567890",
                        "provider_payment_state": "paid",
                        "payment_method": "ideal",
                        "amount": "10.00",
                        "amount_paid": "12.10",
                        "amount_includes_taxes": true,
                        "amount_tax_calculated_automatically": true,
                        "currency": "EUR",
                        "discount_used": false,
                        "application_fee": "0.50",
                        "created_at": 1546250583,
                        "payment_completed_at": 1546250509,
                        "subscription": {
                            "id": 1,
                            "firstname": "John",
                            "surname": "Smith",
                            "company": "Smit, Inc.",
                            "job_title": "Sales Manager",
                            "email": "john@smith.com",
                            "street": "Street",
                            "house_number": "123",
                            "city": "Zoetermeer",
                            "postcode": "1234AA",
                            "province": "Zuid Holland",
                            "country": "NL",
                            "phone": "1234567890",
                            "external_id": "my_internal_id",
                            "extra_fields": {
                                "extra_field_123": "I am an API user"
                            },
                            "consent_fields": {
                                "Privacy policy": "I consent to the privacy policy."
                            },
                            "custom_field": "e.g. campaign ID",
                            "registration_ip": "192.168.0.1",
                            "registration_source": "api",
                            "auto_subscribe": false,
                            "utm_source": "facebook",
                            "utm_medium": "cpc",
                            "utm_campaign": "summer_sale",
                            "utm_term": "webinar software",
                            "utm_content": "top_banner",
                            "watch_link": "https://webinars.webinargeek.com/watch/xyzxyzxyzxyz/",
                            "watched": true,
                            "watched_true_set_at": 1546250582,
                            "watch_start": 1546250583,
                            "watch_end": 1546254183,
                            "watch_duration": 3600,
                            "watched_live": true,
                            "watched_replay": true,
                            "watch_start_replay": 1546250583,
                            "watch_end_replay": 1546254183,
                            "watch_duration_replay": 3600,
                            "captions_language": "en",
                            "viewer_limit_hit_reason": "plan_limit",
                            "given_access_after_viewer_limit": true,
                            "payment_to_watch_completed": false,
                            "eligible_to_watch": true,
                            "unsubscribed": false,
                            "unsubscription_source": null,
                            "unsubscribed_at": null,
                            "time_zone": "Europe/Amsterdam",
                            "browser_language": "en",
                            "created_at": 1546250583,
                            "email_updated_at": 1546250583,
                            "email_verified": true,
                            "email_verified_at": 1546250583
                        }
                    }
                ],
            "pages":
                {
                    "next": null,
                    "page": 1,
                    "per_page": 50,
                    "total_pages": 1
                }
        }

## Messages [/messages]

Messages are chat messages or questions by viewers, moderators or presenters.

### List all messages [GET]

There are three different message types: public (Public chat), private (Private chat) and question (Question box).

Messages can be retrieved from the account when no parameters are provided, or filtered by a specific broadcast, episode or webinar ID.

Part of the output is the recipient_id (subscription_id of recipient, as private messages are per subscriber) and whether a message is
from a viewer (is_viewer) or not, if not it means that the message is either sent by a moderator or presenter.

+ Parameters

    + episode_id: 1 (integer, optional) - Filter on episode

    + broadcast_id: 1 (integer, optional) - Filter on broadcast

    + webinar_id: 1 (integer, optional) - Filter on webinar

    + type: public (enum[string], optional)
        Message type
        + Members
            + public
            + private
            + question

    + order: created_at (enum[string], optional)
        Order of messages. Recipient ID can be used to group messages by conversation.
        + Default: created_at
        + Members
            + created_at
            + recipient_id

    + sort: desc (enum[string], optional) - Sorting of order
        + Default: desc
        + Members
            + desc
            + asc

+ Response 200 (application/json)

        {
            "total_count": 1,
            "messages":
                [
                    {
                        "id": 1,
                        "type": "private",
                        "message": "Quasi expedita praesentium blanditiis?",
                        "recipient_id": 1,
                        "is_viewer": true,
                        "is_reply": true,
                        "reply_to_id": 2,
                        "reply_to_name": "John",
                        "reply_to_message": "Duis aute irure dolor in reprehenderit in voluptate",
                        "created_at": 1589486710,
                        "subscription": {
                            "id": 1,
                            "firstname": "John",
                            "surname": "Smith",
                            "company": "Smit, Inc.",
                            "job_title": "Sales Manager",
                            "email": "john@smith.com",
                            "street": "Street",
                            "house_number": "123",
                            "city": "Zoetermeer",
                            "postcode": "1234AA",
                            "province": "Zuid Holland",
                            "country": "NL",
                            "phone": "1234567890",
                            "external_id": "my_internal_id",
                            "extra_fields": {
                                "extra_field_123": "I am an API user"
                            },
                            "consent_fields": {
                                "Privacy policy": "I consent to the privacy policy."
                            },
                            "custom_field": "e.g. campaign ID",
                            "registration_ip": "192.168.0.1",
                            "registration_source": "api",
                            "auto_subscribe": false,
                            "utm_source": "facebook",
                            "utm_medium": "cpc",
                            "utm_campaign": "summer_sale",
                            "utm_term": "webinar software",
                            "utm_content": "top_banner",
                            "watch_link": "https://webinars.webinargeek.com/watch/xyzxyzxyzxyz/",
                            "watched": true,
                            "watched_true_set_at": 1546250582,
                            "watch_start": 1546250583,
                            "watch_end": 1546254183,
                            "watch_duration": 3600,
                            "watched_live": true,
                            "watched_replay": true,
                            "watch_start_replay": 1546250583,
                            "watch_end_replay": 1546254183,
                            "watch_duration_replay": 3600,
                            "captions_language": "en",
                            "viewer_limit_hit_reason": "plan_limit",
                            "given_access_after_viewer_limit": true,
                            "payment_to_watch_completed": false,
                            "eligible_to_watch": true,
                            "unsubscribed": false,
                            "unsubscription_source": null,
                            "unsubscribed_at": null,
                            "time_zone": "Europe/Amsterdam",
                            "browser_language": "en",
                            "created_at": 1546250583,
                            "email_updated_at": 1546250583,
                            "email_verified": true,
                            "email_verified_at": 1546250583
                        }
                    }
                ],
            "pages":
                {
                    "next": null,
                    "page": 1,
                    "per_page": 50,
                    "total_pages": 1
                }
        }

## Questions [/questions]

Questions are posted by viewers using the Q&A webinar feature.

### List all questions [GET]

Questions can be retrieved from the account when no parameters are provided, or filtered by a specific broadcast, episode or webinar ID.

Questions can also include answers. There are two ways that questions can be answered in the QA feature.
The first is with a text answer, and the second is a live answer in the webinar. Only text answers are available in the API.

+ Parameters

    + episode_id: 1 (integer, optional) - Filter on episode

    + broadcast_id: 1 (integer, optional) - Filter on broadcast

    + webinar_id: 1 (integer, optional) - Filter on webinar

    + order: created_at (enum[string], optional)
        Order of questions.
        + Default: created_at
        + Members
            + created_at

    + sort: desc (enum[string], optional) - Sorting of order
        + Default: desc
        + Members
            + desc
            + asc

+ Response 200 (application/json)

        {
            "total_count": 1,
            "questions":
                [
                    {
                        "id": 1,
                        "broadcast_id": 1,
                        "question": "First question",
                        "upvotes_count": 1,
                        "subscription_name": "John Smith",
                        "subscription_email": "john@smith.com",
                        "subscription_level": "viewer",
                        "created_at": 1716372000,
                        "answers":
                            [
                                {
                                    "id": 1,
                                    "answer": "First answer to first question",
                                    "subscription_name": "John Doe",
                                    "subscription_email": "john@doe.com",
                                    "subscription_level": "presenter",
                                    "created_at": 1716372000
                                },
                                {
                                    "id": 2,
                                    "answer": "Second answer to first question",
                                    "subscription_name": "James Doe",
                                    "subscription_email": "james@doe.com",
                                    "subscription_level": "moderator",
                                    "created_at": 1716372000
                                }
                            ],
                        "subscription": {
                            "id": 1,
                            "firstname": "John",
                            "surname": "Smith",
                            "email": "john@smith.com",
                            "street": "Street",
                            "house_number": "123",
                            "city": "Zoetermeer",
                            "postcode": "1234AA",
                            "province": "Zuid Holland",
                            "country": "NL",
                            "phone": "1234567890",
                            "external_id": "my_internal_id",
                            "extra_fields": {
                                "extra_field_123": "I am an API user"
                            },
                            "consent_fields": {
                                "Privacy policy": "I consent to the privacy policy."
                            },
                            "custom_field": "e.g. campaign ID",
                            "registration_ip": "192.168.0.1",
                            "registration_source": "api",
                            "auto_subscribe": false,
                            "utm_source": "facebook",
                            "utm_medium": "cpc",
                            "utm_campaign": "summer_sale",
                            "utm_term": "webinar software",
                            "utm_content": "top_banner",
                            "watch_link": "https://webinars.webinargeek.com/watch/xyzxyzxyzxyz/",
                            "watched": true,
                            "watched_true_set_at": 1546250582,
                            "watch_start": 1546250583,
                            "watch_end": 1546254183,
                            "watch_duration": 3600,
                            "watched_live": true,
                            "watched_replay": true,
                            "watch_start_replay": 1546250583,
                            "watch_end_replay": 1546254183,
                            "watch_duration_replay": 3600,
                            "captions_language": "en",
                            "payment_to_watch_completed": false,
                            "eligible_to_watch": true,
                            "unsubscribed": false,
                            "unsubscription_source": null,
                            "unsubscribed_at": null,
                            "time_zone": "Europe/Amsterdam",
                            "browser_language": "en",
                            "created_at": 1546250583,
                            "email_updated_at": 1546250583,
                            "email_verified": true,
                            "email_verified_at": 1546250583
                        }
                    }
                ],
            "pages":
                {
                    "next": null,
                    "page": 1,
                    "per_page": 50,
                    "total_pages": 1
                }
        }


## Account [/account]

Information on the account.

### Retrieve account metadata [GET]

Request information about the account linked to the API. The information is
derived from your API key.

+ Response 200 (application/json)

        {
            "company": "My company",
            "email": "my@email.com"
        }

# Data Structures

## NotFoundError (object)

+ code: not_found (required, string) - Not found error code
+ message (required, string) - Message to indicate which requested resource is missing

## BadRequestError (object)

+ code: bad_request (required, string) - Bad request error code
+ message (required, string)
    Message to indicate which invalid user input was provided in the request

## ConflictError (object)

+ code: conflict_error (required, string) - Conflict error code
+ message (required, string)
    Message to indicate what kind of conflict exists between the request and the system state

## UnprocessableEntityError (object)

+ code: unprocessable_entity (required, string) - Unprocessable entity error code
+ message (required, string)
    Message to indicate why the request entity body could not be processed

## Subscription Base (object)
+ firstname: John (required, string) - First name of the subscribing user

+ surname: Smith (string) - Surname of the user

+ company: Smith, Inc. (string) - Company that the user belongs to

+ job_title: Sales Manager (string) - Job title

+ email: john@smith.com (required, string) - Email address

+ street: Street (string) - Street address

+ house_number: 123 (string) - House number

+ city: Zoetermeer (string) - City

+ postcode: 1234AA (string) - Zipcode or postal code

+ province: Zuid Holland (string) - State or province

+ country: NL (string) - ISO Country code of the user's residence

+ phone: 1234567890 (string) - Phone number in any format

+ `external_id`: my_internal_id (string)
    ID used by end-user to identify themselves in their organization

+ time_zone: Europe/Amsterdam (string) - Time zone
    + Default: Your webinar/account time zone as defined in the list of tz database time zones

+ browser_language: en (string) - Browser language of the subscriber at the time of registration, normalized to a language code (e.g. "en", "pt-BR")

+ extra_fields (object) - Additional webinar registration fields defined inside of the application
    + extra_field_123: I am an API user (string) - An extra registration field to gather additional user data

      To be able to pass extra fields, first a custom field in the registration fields tab needs to be added during the
      webinar setup. Once the custom field is created, the `GET webinars/:id` endpoint needs to be queried
      for the webinar at hand to note its `registration_fields` attribute. There the newly
      created custom field can be found. The "name" of the field is the one to use as the `extra_fields`. The name
      always starts with `extra_field_` and ends with a number ID like `123`.

+ consent_fields (object) - Key value pairs of your privacy consent fields
    + `Privacy policy`: I consent to the privacy policy. (string)

        The key indicates the name of your privacy policy in your language
        exactly as it's written in your registration page (e.g. "Privacy policy" including the space character).

        The value represents the consent sentence which the user agrees to.

+ `custom_field`: my_campaign_id (string) - Custom field to store additional information

+ subscription_utm_tag_attributes (object) - UTM tracking tags stored on the subscriber
    + utm_source: facebook (string)
    + utm_medium: cpc (string)
    + utm_campaign: summer_sale (string)
    + utm_term: webinar software (string)
    + utm_content: top_banner (string)

      Sent nested inside this object when creating a subscription, but returned as flat top-level fields in responses.

+ registration_ip: 192.158.1.38 (string)
    IP address of the client machine from where the subscription took place

<!-- Please note that skip_confirmation_mail is not a native field of the
Subscription resource but was used as a flag to decide on app specific logic.
It must be left on the resource to not introduce a breaking API change. -->
+ skip_confirmation_mail: false (boolean)
    Allows to skip confirmation email for a subscription. If not explicitly set
    to true, every subscription will trigger a confirmation email sending.

+ auto_subscribe: false (boolean)
    Enables auto-subscribing, which automatically subscribes the user to new
    broadcasts of the webinar when they are created.

    This value is only used when the webinar's auto subscribing setting leaves
    the choice per subscriber. When webinar's auto subscribing is set to "always subscribe", the
    `auto_subscribe` field will be `true` regardless of what you sent. When auto subscribing
    is turned off for the webinar, the `auto_subscribe` field will be `false` regardless of what you sent.