API Overview
URI: Obtain this from your Adobe representative.
HTTP Method: POST, with JSON request body.
API Calls
-
sessions
- Establishes a session with the server, and returns a Session ID used in subsequentevents
calls. Your app calls this once at the start of a tracking session.{uri}/api/v1/sessions
-
events
- Sends media tracking data.{uri}/api/v1/sessions/{session-id}/events
Request Body
{
"playerTime": {
"playhead": "{playhead position in seconds}",
"ts": "{timestamp in milliseconds}"
},
"eventType": "{event-type}",
"params": {
"{parameter-name}": "{parameter-value}",
"{parameter-name}": "{parameter-value}"
},
"qoeData" : {
"{parameter-name}": "{parameter-value}",
"{parameter-name}": "{parameter-value}"
},
"customMetadata": {
"{parameter-name}": "{parameter-value}",
"{parameter-name}": "{parameter-value}"
}
}
-
playerTime
- Mandatory for all requests. -
eventType
- Mandatory for all requests. -
params
- Mandatory for certaineventTypes
; check the JSON validation schema to determine which eventTypes are mandatory, and which are optional. -
qoeData
- Optional for all requests. -
customMetadata
- Optional for all requests, but only sent withsessionStart
,adStart
, andchapterStart
event types.
For each eventType
, there is a publicly available JSON validation schema that you should use to verify parameter types and whether a parameter is optional or required for a particular event.