Offline operation: TMDb prefetch now checks local identity files first (
identities/_index.json+*.tmdb.json). If local files exist, no external API call is made. Internet is only needed for initial data seeding.
TMDb enrichment is an optional identity enrichment step that can be run after Pipeline face detection completes. The workflow is:
{file_uuid}.tmdb.jsonsource='tmdb') + save identity.json + download profile image to {OUTPUT}/identities/{uuid}/profile.jpgMOMENTRY_TMDB_PROBE_ENABLED=truePOST /api/v1/agents/tmdb/prefetchAuth: Required Scope: file-level
Fetch TMDb cast data for a registered file and cache it locally. This is the only step requiring internet access.
| Field | Type | Required | Description |
|---|---|---|---|
file_uuid |
string | Yes | File UUID to enrich |
curl -s -X POST "$API/api/v1/agents/tmdb/prefetch" \
-H "Content-Type: application/json" \
-H "X-API-Key: $KEY" \
-d '{"file_uuid": "'"$FILE_UUID"'"}'
{"success": true, "file_uuid": "...", "cache_path": "/output/...tmdb.json"}
POST /api/v1/file/:file_uuid/tmdb-probeAuth: Required Scope: file-level
Read local TMDb cache and create/update identities. Requires prefetch to have been run first.
curl -s -X POST "$API/api/v1/file/$FILE_UUID/tmdb-probe" \
-H "X-API-Key: $KEY" | jq '{identities_created, movie_title}'
{"success": true, "identities_created": 15, "movie_title": "Charade"}
{"success": false, "message": "No TMDb cache found. Run tmdb-prefetch first."}
GET /api/v1/resource/tmdbAuth: Required Scope: system-level
View TMDb resource status including configuration, identity counts, and cache file count.
curl -s "$API/api/v1/resource/tmdb" -H "X-API-Key: $KEY" \
| jq '{identities_seeded, cache_files}'
POST /api/v1/resource/tmdb/checkAuth: Required Scope: system-level
Ping the TMDb API to verify connectivity and measure latency.
curl -s -X POST "$API/api/v1/resource/tmdb/check" \
-H "X-API-Key: $KEY" | jq '.status'
{
"api_key_configured": true,
"enabled": false,
"api_reachable": true,
"api_latency_ms": 120
}