Skip to content

HubSpot: Media bridge schemas

7 HubSpot schemas with complete fields and constraints.

← Media bridge operations · All schemas

Create Event — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
_hsencstringOptionalAn encoded string used for HubSpot-specific encoding purposes.
contactIdintegerOptionalThe unique identifier for the contact associated with the event.
Format: int64
contactUtkstringOptionalThe unique tracking key for the contact, used for tracking purposes.
derivedValuesModelOptionalExpand Create Event — request body — body derived Values
externalIdstringOptionalAn external identifier for the event, typically used to correlate with external systems.
externalPlayContextstringOptionalAdditional context about the play event, typically used for external integrations.
One of: EMAIL, EXTERNAL_PAGE
mediaBridgeIdintegerOptionalThe unique identifier for the media bridge instance.
Format: int64
mediaNamestringOptionalThe name of the media involved in the event.
mediaTypestringRequired within parentThe type of media involved in the event. Valid values include 'VIDEO', 'AUDIO', 'DOCUMENT', 'OTHER', and 'IMAGE'.
One of: AUDIO, DOCUMENT, IMAGE, OTHER, VIDEO
mediaUrlstringOptionalThe URL of the media involved in the event.
occurredTimestampintegerRequired within parentThe timestamp when the event occurred, represented as a Unix timestamp in milliseconds.
Format: int64
pageIdintegerOptionalThe unique identifier for the page where the event occurred.
Format: int64
pageNamestringOptionalThe name of the page where the event occurred.
pageUrlstringOptionalThe URL of the page where the event occurred.
rawDataMapobjectRequired within parentA map of raw data key-value pairs providing additional context about the event.
Additional keys: see wildcard field
rawDataMap.*integerAdditional keysFormat: int32
rawDataStringstringOptionalA raw data string containing additional information about the event.
sessionIdstringRequired within parentThe unique identifier for the session during which the event occurred.

Referenced models: Create Event — request body — body derived Values

Create Event — request body — body derived Values

FieldTypePresenceDescription and constraints
$objectRoot
totalPercentPlayednumberRequired within parentThe percentage of the media content that was played. This is a numerical value indicating how much of the total content was viewed, expressed as a percentage.
totalSecondsPlayedintegerRequired within parentThe total duration in seconds that the media content was played. This is a numerical value representing the cumulative playtime.
Format: int32

Create Event — response body

FieldTypePresenceDescription and constraints
$objectRoot
contactIdJSONRequired within parent
contactId (anyOf 1)integerAlternativeA string representing the unique identifier for the contact associated with the event.
Format: int64
contactId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
externalPlayContextstringOptionalA string providing additional context about the play event from an external source.
Known values: EMAIL, EXTERNAL_PAGE
mediaBridgeIdJSONRequired within parent
mediaBridgeId (anyOf 1)integerAlternativeA string representing the unique identifier for the media bridge instance.
Format: int64
mediaBridgeId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
mediaBridgeObjectCoordinatesstringRequired within parentA string detailing the coordinates of the media bridge object.
mediaBridgeObjectTypeIdstringRequired within parentA string representing the type identifier for the media bridge object.
mediaNamestringRequired within parentA string representing the name of the media content.
mediaTypestringRequired within parentA string indicating the type of media involved in the event, such as 'VIDEO', 'AUDIO', etc.
Known values: AUDIO, DOCUMENT, IMAGE, OTHER, VIDEO
mediaUrlstringOptionalA string containing the URL of the media content.
occurredTimestampJSONRequired within parent
occurredTimestamp (anyOf 1)integerAlternativeA string representing the timestamp of when the event occurred, in ISO 8601 format.
Format: int64
occurredTimestamp (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
pageIdJSONOptional
pageId (anyOf 1)integerAlternativeA string representing the unique identifier for the page.
Format: int64
pageId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
pageNamestringOptionalA string representing the name of the page where the media was accessed.
pageObjectCoordinatesstringOptionalA string detailing the coordinates of the page object.
pageUrlstringOptionalA string containing the URL of the page where the media was accessed.
percentRangestringRequired within parentA string indicating the range of percentages that were played during the session.
portalIdJSONRequired within parent
portalId (anyOf 1)integerAlternativeAn integer representing the unique identifier for the HubSpot portal.
Format: int32
portalId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
providerIdJSONRequired within parent
providerId (anyOf 1)integerAlternativeA string representing the unique identifier for the media provider.
Format: int32
providerId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
rawDatastringOptionalA string containing raw data associated with the event.
sessionIdstringRequired within parentA string representing the unique identifier for the session during which the media was played.
totalPercentPlayedJSONRequired within parent
totalPercentPlayed (anyOf 1)numberAlternativeA number indicating the total percentage of the media that was played.
totalPercentPlayed (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
totalSecondsPlayedJSONOptional
totalSecondsPlayed (anyOf 1)integerAlternativeA number representing the total seconds of media that were played.
Format: int32
totalSecondsPlayed (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Create — media Bridge media Played — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
_hsencstringOptionalAn encoding parameter used internally by HubSpot.
contactIdintegerOptionalThe unique identifier for the contact associated with the media play event.
Format: int64
contactUtkstringOptionalThe unique tracking key for the contact, used for tracking purposes.
externalIdstringOptionalAn external identifier for the media, used to correlate with external systems.
externalPlayContextstringOptionalAdditional context about the media play event, provided by external systems.
One of: EMAIL, EXTERNAL_PAGE
iframeUrlstringOptionalThe URL of the iframe containing the media, if applicable.
mediaBridgeIdintegerOptionalA unique identifier for the media bridge instance.
Format: int64
mediaNamestringOptionalThe name of the media that was played.
mediaTypestringRequired within parentThe type of media that was played, such as 'VIDEO', 'AUDIO', 'DOCUMENT', 'OTHER', or 'IMAGE'.
One of: AUDIO, DOCUMENT, IMAGE, OTHER, VIDEO
mediaUrlstringOptionalThe URL of the media that was played.
occurredTimestampintegerRequired within parentThe timestamp when the media play event occurred, in Unix time format.
Format: int64
pageIdintegerOptionalA unique identifier for the page where the media was played.
Format: int64
pageNamestringOptionalThe name of the page where the media was played.
pageUrlstringOptionalThe URL of the page where the media was played.
sessionIdstringRequired within parentA unique identifier for the session during which the media was played.
statestringRequired within parentThe state of the media play event, indicating the current status.
One of: STARTED, VIEWED

Create — media Bridge media Played — response body

FieldTypePresenceDescription and constraints
$objectRoot
contactIdJSONRequired within parent
contactId (anyOf 1)integerAlternativeThe unique identifier for the contact associated with this media event.
Format: int64
contactId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
externalPlayContextstringOptionalAdditional context provided by external systems about the play event.
Known values: EMAIL, EXTERNAL_PAGE
iframeUrlstringOptionalThe URL of the iframe where the media was embedded and played.
mediaBridgeIdJSONRequired within parent
mediaBridgeId (anyOf 1)integerAlternativeThe unique identifier for the media bridge instance associated with this event.
Format: int64
mediaBridgeId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
mediaBridgeObjectCoordinatesstringRequired within parentCoordinates that specify the location or context of the media bridge object.
mediaBridgeObjectTypeIdstringRequired within parentThe type identifier of the media bridge object involved in the event.
mediaNamestringRequired within parentThe name of the media content that was played.
mediaTypestringRequired within parentThe type of media that was played, such as video or audio.
Known values: AUDIO, DOCUMENT, IMAGE, OTHER, VIDEO
mediaUrlstringOptionalThe URL where the media content is hosted.
occurredTimestampJSONRequired within parent
occurredTimestamp (anyOf 1)integerAlternativeA Unix timestamp in milliseconds indicating when the media play event occurred.
Format: int64
occurredTimestamp (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
pageIdJSONOptional
pageId (anyOf 1)integerAlternativeThe unique identifier for the page where the media was played.
Format: int64
pageId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
pageNamestringOptionalThe name of the page where the media was played.
pageObjectCoordinatesstringOptionalCoordinates that specify the location or context of the page object.
pageUrlstringOptionalThe URL of the page where the media was played.
portalIdJSONRequired within parent
portalId (anyOf 1)integerAlternativeThe unique identifier of the HubSpot portal where the event occurred.
Format: int32
portalId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
providerIdJSONRequired within parent
providerId (anyOf 1)integerAlternativeThe unique identifier for the media provider.
Format: int32
providerId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
sessionIdstringRequired within parentThe unique identifier for the session during which the media was played.
statestringRequired within parentThe state of the media play event, such as 'started' or 'completed'.
Known values: STARTED, VIEWED

Record Media Played Percentage — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
_hsencstringOptionalHubSpot encoding parameter for tracking purposes.
contactIdintegerOptionalThe unique identifier for the contact associated with the media play event.
Format: int64
contactUtkstringOptionalThe user token key associated with the contact.
externalIdstringOptionalAn external identifier for the media, provided by the user.
externalPlayContextstringOptionalAdditional context provided externally about the media play event.
One of: EMAIL, EXTERNAL_PAGE
mediaBridgeIdintegerOptionalThe unique identifier for the media bridge instance.
Format: int64
mediaNamestringOptionalThe name of the media that was played.
mediaTypestringRequired within parentThe type of media that was played. Valid values include 'VIDEO', 'AUDIO', 'DOCUMENT', 'OTHER', and 'IMAGE'.
One of: AUDIO, DOCUMENT, IMAGE, OTHER, VIDEO
mediaUrlstringOptionalThe URL where the media is hosted.
occurredTimestampintegerRequired within parentThe timestamp when the media play event occurred.
Format: int64
pageIdintegerOptionalThe unique identifier for the page where the media was played.
Format: int64
pageNamestringOptionalThe name of the page where the media was played.
pageUrlstringOptionalThe URL of the page where the media was played.
playedPercentintegerRequired within parentThe percentage of the media that has been played.
Format: int32
sessionIdstringRequired within parentThe unique identifier for the session in which the media was played.

Record Media Played Percentage — response body

FieldTypePresenceDescription and constraints
$objectRoot
contactIdJSONRequired within parent
contactId (anyOf 1)integerAlternativeThe unique identifier for the contact associated with the media event. It is a string value.
Format: int64
contactId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
externalPlayContextstringOptionalContextual information about the external environment where the media is played. It is a string value.
Known values: EMAIL, EXTERNAL_PAGE
mediaBridgeIdJSONRequired within parent
mediaBridgeId (anyOf 1)integerAlternativeThe unique identifier for the media bridge instance. It is a string value.
Format: int64
mediaBridgeId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
mediaBridgeObjectCoordinatesstringRequired within parentCoordinates that specify the location of the media bridge object. It is a string value.
mediaBridgeObjectTypeIdstringRequired within parentThe type identifier for the media bridge object. It is a string value.
mediaNamestringRequired within parentThe name of the media content being played. It is a string value.
mediaTypestringRequired within parentThe type of media being played, such as 'VIDEO', 'AUDIO', etc. It is a string value.
Known values: AUDIO, DOCUMENT, IMAGE, OTHER, VIDEO
mediaUrlstringOptionalThe URL of the media content being played. It is a string value.
occurredTimestampJSONRequired within parent
occurredTimestamp (anyOf 1)integerAlternativeThe timestamp when the media play event occurred. It is a string value in ISO 8601 format.
Format: int64
occurredTimestamp (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
pageIdJSONOptional
pageId (anyOf 1)integerAlternativeThe unique identifier for the page where the media is being played. It is a string value.
Format: int64
pageId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
pageNamestringOptionalThe name of the page where the media is being played. It is a string value.
pageObjectCoordinatesstringOptionalCoordinates that specify the location of the page object. It is a string value.
pageUrlstringOptionalThe URL of the page where the media is being played. It is a string value.
playedPercentJSONRequired within parent
playedPercent (anyOf 1)integerAlternativeThe percentage of the media content that has been played. It is a number value.
Format: int32
playedPercent (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
portalIdJSONRequired within parent
portalId (anyOf 1)integerAlternativeThe unique identifier for the HubSpot portal. It is an integer value.
Format: int32
portalId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
providerIdJSONRequired within parent
providerId (anyOf 1)integerAlternativeThe unique identifier for the media provider. It is a string value.
Format: int32
providerId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
sessionIdstringRequired within parentThe unique identifier for the session during which the media was played. It is a string value.

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.