Skip to content

A recording's gate, button and end card

GET/v1/organization/{orgId}/marketing/video/items/{mediaId}

US Region: https://public-api.sessionboard.com · EU Region: https://public-api-eu.sessionboard.com

What happens around a recording on your public pages. settings holds what you chose (gate off, before or at gate_at_s; the button's cta_mode auto, custom or off and cta_at_s; end_card); resolved holds what viewers see today. With nothing chosen, anyone can watch, the button is "Register for" your next event at the end, and a "Watch next" card follows. Requires read:marketing; refused for a key restricted to particular events. Also at GET /v1/marketing/video/items/{mediaId}.

Request example

Terminal window
curl --request GET \
--url 'https://public-api.sessionboard.com/v1/organization/{orgId}/marketing/video/items/{mediaId}' \
--header 'x-access-token: <api-token>'

Try it

Authorization

Your token stays in this page. It is sent only to the region above and is never saved; it is gone when you leave or reload the page.

Path parameters
GET

Authorizations

  • x-access-tokenstringheader

    Organization API token. Generate from Organization Settings → API Tokens.

  • AuthorizationBearer <token>headeror

    OAuth 2.1 access token. Obtained via the OAuth PKCE flow at /oauth/token.

Send one of these. See Authentication.

Path parameters

  • orgIdstringpathrequired

    Your organization ID. Any other organization returns 404.

  • mediaIdstring<uuid>pathrequired

    The recording (Media item)

Responses

200application/json

payload is a VideoOptions

  • payloadVideoOptions

    What happens around a recording on your public pages.

    Show child attributes
    • media_idstring
    • settingsobject
      Show child attributes
      • gatestring
        Allowed values
        "off", "before", "at"
      • gate_at_sinteger | null
      • gate_form_idstring | null

        The sign-up form visitors fill in; share it as /subscribe/{gate_form_id}

      • cta_modestring

        auto = "Register for" your next event

        Allowed values
        "auto", "custom", "off"
      • cta_labelstring | null
      • cta_urlstring | null
      • cta_at_sinteger | null

        Show the button from this second; null = at the end

      • end_cardboolean

        Suggest what to watch next when it ends

    • resolvedobject

      What viewers see today (the button resolves to your next event when cta_mode is auto)

    • is_defaultboolean

403

  • SCOPE_REQUIRED — the token lacks read:marketing (reads) or write:marketing (writes).
  • ORG_WIDE_TOKEN_REQUIRED — the token is restricted to particular events; this operation reads the whole organization.
  • FORBIDDEN — the organization's plan does not include Marketing, or the token's user cannot change goals (writes need an organization admin or the organization settings permission).

404

The recording is not in your organization.

Response examples

{
"payload": {
"media_id": "<string>",
"settings": {
"gate": "off",
"gate_at_s": 123,
"gate_form_id": "<string>",
"cta_mode": "auto",
"cta_label": "<string>",
"cta_url": "<string>",
"cta_at_s": 123,
"end_card": true
},
"resolved": {},
"is_default": true
}
}