Adds a media item to the history list for a specific profile.
Duplicates: Unlike other lists, the history list allows duplicate entries. Each call to this endpoint creates a new history entry, even if the same media was watched before.
TV Shows:
For TV shows, season is required and episode is optional. When episode is omitted, the entry represents a “Default for Episode” item that applies to all episodes in the season where episode.air_date < historyItem.updatedAt. This allows updating multiple episodes with a single history entry. Frontend clients should treat entries without episode as applying to all episodes in the season whose air date is less than the history item’s updatedAt timestamp. The matching logic is a client-side concern and not exposed by the API.
Overriding Season Defaults:
When an episode has an explicit history entry (with episode specified), it takes precedence over any season default entries. This allows clients to override season-level completions for individual episodes. For example, to unmark an episode that was completed via a season default, create an explicit episode entry with progress < 80% (which will not be marked as completed). Explicit episode entries always override season defaults when determining completion status and progress for that specific episode.
Updated At:
You can optionally provide an updatedAt timestamp. If not provided, the current time will be used.
Progress:
You can optionally provide a progress value (0-100) to track playback progress.
Documentation Index
Fetch the complete documentation index at: https://docs.discovr.media/llms.txt
Use this file to discover all available pages before exploring further.
Bearer token authentication.
/profiles, /auth/session-token,
/auth/session) accept a long-lived refresh token
(rt_<hex>)./pages/*, /profile/*) accept a
short-lived session JWT.SDK clients use two typed API accessors (identityApi() with the
refresh token vs sessionApi() with the session JWT) — see the SDK
DiscovrAuth helper.
Format: Authorization: Bearer {token}
The media ID with prefix (MV_TMDBID for movies, TV_TMDBID for TV shows)
"TV_TMDBID1396"
ISO 8601 timestamp indicating when the history entry was last updated
"2023-01-15T00:00:00.000Z"
Playback progress percentage (0-100)
0 <= x <= 10045.5
Season number (required for TV shows)
x >= 11
Episode number (optional for TV shows). When omitted, creates a "Default for Episode" entry that applies to all episodes in the season where episode.air_date < historyItem.updatedAt. This allows updating multiple episodes with a single history entry.
Overriding Season Defaults: When provided, creates an explicit episode entry that takes precedence over any season default entries. To unmark an episode completed via season default, create an explicit entry with progress < 80% (which will not be marked as completed).
x >= 15
Source of import (e.g., "trakt") if this item was imported
"trakt"