Personal scripts
Create a key in the app and call the API from your own machine: dashboards, Home Assistant, exports.
Your key starts with rfk_. Create a key
Personal scripts
Create a key in the app and call the API from your own machine: dashboards, Home Assistant, exports.
Your key starts with rfk_. Create a key
Sign in with Refract
Let any member connect your app. OAuth 2.1 with PKCE, refresh tokens, and scopes the member approves. Register an app
TVs and terminals
No keyboard? Show a short code; the member approves it on getrefract.app/device from their phone. Read the guide
| Data | Endpoint | Scope |
|---|---|---|
| The member | GET /v1/me |
profile:read |
| Library, with progress and rewatches | GET /v1/library |
library:read |
| Watchlist | GET /v1/watchlist |
library:read |
| Watched episodes | GET /v1/history/episodes |
history:read |
| Movie plays | GET /v1/history/movies |
history:read |
| Rewatches of episodes, seasons and shows | GET /v1/history/rewatches |
history:read |
| Ratings | GET /v1/ratings |
ratings:read |
| Lists and their titles | GET /v1/lists |
lists:read |
| Up next | GET /v1/up-next |
history:read |
| Calendar of their shows and planned games | GET /v1/calendar |
library:read |
| Profile stats | GET /v1/stats |
history:read |
| Changes, for sync | GET /v1/changes |
library:read |
| Games: library, playthroughs, play sessions | GET /v1/games/library, /v1/games/playthroughs, /v1/games/sessions |
library:read, history:read |
| Game ratings, the games in a list | GET /v1/ratings/games, GET /v1/lists/{id}/games |
ratings:read, lists:read |
| Change | Endpoint | Scope |
|---|---|---|
| A title’s status, the watchlist | PUT /v1/library/{id}, PUT /v1/watchlist/{id} |
library:write |
| An episode watched or not | PUT / DELETE /v1/history/episodes/{id}/{season}/{number} |
history:write |
| A movie play | POST /v1/history/movies |
history:write |
| An episode rewatch | POST /v1/history/rewatches |
history:write |
| A game’s status, its play time and progress | PUT /v1/games/library/{id}, PUT /v1/games/library/{id}/play |
library:write, history:write |
Rating, removing a title or a play, and editing lists arrive later. Follow the changelog.