API Reference
Episodes
Episode-level operations (preferred file selection, canonical URLs)
Sets which of the episode's media files the player should default to. The provided media_file_id must already be matched to this episode.
Authorization
bearerAuth AuthorizationBearer <token>
Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X PATCH "https://example.com/api/v1/episodes/string/preferred" \ -H "Content-Type: application/json" \ -d '{ "media_file_id": "string" }'Empty
Resolves the user-preferred matched media file (or largest by size when no preference is set) and returns its web watch URL plus a direct stream URL. Used by the CLI/agent surface.
Authorization
bearerAuth AuthorizationBearer <token>
Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.
In: header
Path Parameters
id*string
Response Body
application/json
curl -X GET "https://example.com/api/v1/episodes/string/watch-url"{ "anime_id": "string", "episode_id": "string", "watch_url": "http://example.com", "stream_url": "http://example.com", "matched_file": "string"}