Trakt · Example Payload

Trakt Addtohistory Example

VideoMoviesTelevisionMedia TrackingScrobbleRecommendationsSocialOAuth2Public APIs

Trakt Addtohistory Example is an example object payload from Trakt, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdrequestresponse

Example Payload

Raw ↑
{
  "operationId": "addToHistory",
  "request": {
    "method": "POST",
    "url": "https://api.trakt.tv/sync/history",
    "headers": {
      "Content-Type": "application/json",
      "Authorization": "Bearer YOUR_ACCESS_TOKEN",
      "trakt-api-version": "2",
      "trakt-api-key": "YOUR_CLIENT_ID"
    },
    "body": {
      "movies": [
        { "ids": { "imdb": "tt10394814" }, "watched_at": "2026-05-28T20:45:00Z" }
      ],
      "episodes": [
        { "ids": { "trakt": 56789 }, "watched_at": "2026-05-27T22:10:00Z" }
      ]
    }
  },
  "response": {
    "status": 200,
    "body": {
      "added": { "movies": 1, "episodes": 1, "shows": 0, "seasons": 0 },
      "not_found": {
        "movies": [],
        "shows": [],
        "seasons": [],
        "episodes": [],
        "ids": []
      }
    }
  }
}