The playout API of the Media Jay application provides access to the playout data and orchestrates extended queries.
To access the endpoints you require a X-API-Key in the header. Partners, please contact Transfermedia support@transfermedia.de to retrieve one.
To use a specific implementation version of this API place it to the request header X-API-Version. If the header is missed the latest implementation version 2025-08-04 is used. The response header X-API-Version returns the implementation version the request was processed with.
For further details please visit the documentation or contact Transfermedia support@transfermedia.de.
https://docs.jay-metadata.com/_mock/apis/playout/latest/openapi/
Retrieves the tracking session from the header or cookie sent by the client.
The tracking session contains information about the user's session including a unique identifier, creation timestamp, and optional user ID for cross-session tracking. This endpoint allows clients to verify if they have an active valid session.
Tries to retrieve the tracking session in this order:
__Secure-jay_tracking
__Secure-jay_tracking
Args:
request: The incoming HTTP request containing potential session data in cookies or headers
Raises:
HTTPException: If the session is invalid or not found (400 Bad Request).
Returns:
ResultResponse[TrackingSession]: The active tracking session.
https://docs.jay-metadata.com/_mock/apis/playout/latest/openapi/playouts/tracking/session
curl -i -X GET \
https://docs.jay-metadata.com/_mock/apis/playout/latest/openapi/playouts/tracking/session \
-H 'X-API-Key: string' \
-H '__Secure-jay_tracking: __Secure-jay_tracking=eyJzZX...'
Successfully retrieved the tracking session
Tracking session information for API usage analytics.
This model represents a user's session for tracking API interactions across requests. It contains identifying information about when and how a session was created, which can be used for analytics, debugging, and user journey analysis.
The session data is typically encoded as base64 and passed via cookies or headers.
{ "session_id": "b69d5c78-a2e9-4a7d-b3f8-c96c3a43d207", "start_time": "2023-04-21T14:32:17.123456", "source": "jay.api.playout.1.0.0", "user_id": "user-123456" }
Initiates a new tracking session for analytics and user behavior tracking.
Creates a new tracking session with a unique ID and current timestamp, and sets it as both a cookie and header in the response. The session data is base64-encoded JSON that contains the session ID, start timestamp, and source information.
The tracking session is used to correlate user actions across different API requests and provides analytics capabilities for understanding user behavior.
If the client can't process cookies or uses a library that doesn't support set-cookie headers, the client should extract the returned session value and manually add it as a header in subsequent requests.
Args:
response: The HTTP response object to which the cookie and header will be added user_id: Optional user identifier to track users across multiple sessions
Returns:
ResultResponse[TrackingSession]: The newly created tracking session object with session ID, timestamp, and source.
https://docs.jay-metadata.com/_mock/apis/playout/latest/openapi/playouts/tracking/session
curl -i -X POST \
'https://docs.jay-metadata.com/_mock/apis/playout/latest/openapi/playouts/tracking/session?user_id=string' \
-H 'X-API-Key: string' \
-H '__Secure-jay_tracking: __Secure-jay_tracking=eyJzZX...'
Successfully created a new tracking session
Tracking session cookie with encoded session data
Tracking session information for API usage analytics.
This model represents a user's session for tracking API interactions across requests. It contains identifying information about when and how a session was created, which can be used for analytics, debugging, and user journey analysis.
The session data is typically encoded as base64 and passed via cookies or headers.
{ "session_id": "b69d5c78-a2e9-4a7d-b3f8-c96c3a43d207", "start_time": "2023-04-21T14:32:17.123456", "source": "jay.api.playout.1.0.0", "user_id": "user-123456" }
Deletes the tracking session.
Removes the tracking session cookie from the client by sending appropriate cookie deletion headers. This effectively ends the tracking session and stops the correlation of user actions across different API requests.
Note that this only affects the cookie, not any header values the client might be storing independently. Clients using header-based tracking should stop sending the tracking header after calling this endpoint.
Args:
response: The HTTP response object to which cookie deletion headers will be added
request: The incoming HTTP request containing the session to be deleted
Returns:
ResultResponse[Dict[str, str]]: A message confirming the session was deleted
https://docs.jay-metadata.com/_mock/apis/playout/latest/openapi/playouts/tracking/session
curl -i -X DELETE \
https://docs.jay-metadata.com/_mock/apis/playout/latest/openapi/playouts/tracking/session \
-H 'X-API-Key: string' \
-H '__Secure-jay_tracking: __Secure-jay_tracking=eyJzZX...'
{ "message": "Tracking session deleted" }