Create an interaction

Create a new annotation for a specified video. Supports visible interaction annotations (button, image, text, hotspot) and timed action annotations (redirect, jump, switch, pause, resourceTray, variable, reset_viewer, reset_interactions).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required

The video_id or token of the video you want to add the interaction to.

string
enum
required

Annotation type. Visible types require layout and click action fields. Timed action types use their type-specific fields. Supported values: button, image, text, hotspot, redirect, jump, switch, pause, resourceTray, variable, reset_viewer, reset_interactions.

float
required

When the interaction should appear on the screen

float

When a visible interaction should leave the screen. Optional for timed action annotations.

float

Visible interaction layout percentage persisted to pos_top. Required for button, image, text, and hotspot creates.

float

Visible interaction layout percentage persisted to pos_left. Required for button, image, text, and hotspot creates.

float

Visible interaction layout percentage persisted to pos_height. Required for button, image, text, and hotspot creates.

float

Visible interaction layout percentage persisted to pos_width. Required for button, image, text, and hotspot creates.

string
enum

Visible interaction click action. Required for button, image, text, and hotspot creates. Supported values: track, link, jump, video, back, message, view, genie, cart, openai, clip, audio, email, phone, modal, collect, download, resourceTray, show_card, get, post, redirect, pause, article, copy, none. Timed action annotations choose the matching action automatically.

string

Action value. For redirect this can be the URL; for jump this can be the target timestamp; for switch this can be Video Title ---TOKEN.

string

A button's text, a text's content, an image source URL, or empty for hotspot

string

Tooltip text shown when hovering over the interaction.

integer

Pause duration in seconds for type=pause or visible interactions that pause on click. Use -1 to pause until the viewer resumes.

boolean
string

Visible interaction text color. Defaults to the video design when omitted.

string

Visible interaction background color. Defaults to the video design when omitted.

string

Visible interaction border color. Defaults to the video design when omitted.

string

Visible interaction border radius. Defaults to the video design when omitted.

string

Visible interaction font size persisted to font_size.

string

Redirect destination URL for type=redirect. Alias for click_value on redirect annotations.

float

Target timestamp in seconds for type=jump. Alias for click_value on jump annotations.

string

Target video ID for type=switch. The API stores it as Video Title ---TOKEN in click_value.

string

Target video token for type=switch. The API stores it as Video Title ---TOKEN in click_value.

float

Start time in the target video for type=switch.

integer

Pause duration in seconds for type=pause. Use -1 to pause until the viewer resumes. Alias for pause_amount.

string

Variable name for type=variable.

string

Variable value for type=variable.

string

Tooltip text shown when hovering over the interaction.

boolean

Whether to pause video playback while this interaction is active.

boolean

Alias for click_required. Requires the viewer to click this interaction.

boolean

Hide this interaction by default.

boolean

Hide this interaction on mobile devices.

boolean

Hide this interaction on desktop devices.

string

Interaction border width.

string

Interaction text alignment.

string

Interaction entrance transition.

string

Interaction animation.

string

Caption for image and hotspot interactions.

boolean

Whether to show the caption for image and hotspot interactions.

string

Hotspot background image URL.

string

Hotspot polygon points as a JSON string or persisted string value.

boolean

Whether to show the hotspot ring.

integer

Hotspot ring width.

integer

Hotspot alignment value.

integer

Hotspot radius.

boolean

Whether to enable hotspot hover behavior.

boolean

Require lead capture before running the interaction action.

boolean

Spotlight the interaction.

string

Post-click state for the interaction.

string

Post-click background color.

string

Post-click text color.

string

Internal label for organization use.

boolean

Enable conditional display logic.

boolean

Show the interaction when the condition matches.

string

Conditional variable name.

string

Conditional comparison operator.

string

Conditional comparison value.

integer

Operator used when combining two conditions.

boolean

Enable a second conditional rule.

string

Second conditional variable name.

string

Second conditional comparison operator.

string

Second conditional comparison value.

boolean

Include the interaction in a tray.

string

Tray type, such as magic_menu or end_menu.

string

HubSpot field name.

string

HubSpot field value.

boolean

Map the interaction value to HubSpot.

boolean

Enable ClickFunnels integration.

string

ClickFunnels tag.

string

ClickFunnels custom attribute name.

string

ClickFunnels custom attribute value.

Responses

401

Not Authorized

404

Not Found

422

Unprocessable Entity

500

Error

503

Rate Limit Exceeded

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
*/*