Skip to Content
Get started

Add your assets

Register movies, series, seasons and episodes with the Catalog API so Vionlabs can process them.

Every asset must be added to your catalog before anything else can happen. This is step 1 for every customer, including those who only use the Portal.

Adding assets is also called ingesting. Both words mean the same thing in these docs. It's usually connected to your content management system (CMS).

Your catalog tells Vionlabs:

  • which assets you have and their IDs, so results use your own IDs
  • how episodes belong to seasons and series
  • where each video file is, so it can be processed
  • when each asset is available to your viewers, for example its license period

Vionlabs also uses it to follow changes in your catalog over time and to check your assets and their information.

Before you start

  • Upload the video file to your Google Cloud Storage or AWS S3 bucket first. Adding an asset whose file isn't there yet gives an "asset not found" error.
  • Use the full path to the file, for example gs://your-bucket/series/s01e01.mp4.
  • Make sure Vionlabs can read the bucket.
  • Have an API key ready. Add ?catalog=YOUR_CATALOG to every request, as in the examples below.
  • Check the video requirements.

Your IDs

Each asset has an ID that you choose, called the inventory ID, for example ep-101. Use the same ID everywhere: in the Catalog, Tasks and Result APIs and in webhooks. Vionlabs never asks you to use its own IDs. Results may also include a vionlabs_id for reference.

  • An ID can't be empty and can't contain /.
  • Every ID must be unique in your catalog. An episode, a season, a series and a movie can't share an ID.
  • A season ID belongs to one series. You can't use it under another series, even after you delete the season.
  • You can't change an asset's ID later. To rename, delete the asset and add it again.

Add a movie

A movie or any other non-episodic asset uses the type standalone.

curl -X PUT "https://apis.prod.vionlabs.com/catalog/v1/item?catalog=YOUR_CATALOG" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "MOVIE-001",
    "type": "standalone",
    "title": "Sample Movie Title",
    "asset_info": { "file_uri": "gs://your-bucket/sample-movie.mp4" }
  }'

Add an episode

An episode uses the type episode. Describe its series and season in extended_episodic_info:

curl -X PUT "https://apis.prod.vionlabs.com/catalog/v1/item?catalog=YOUR_CATALOG" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "ep-101",
    "type": "episode",
    "title": "Pilot",
    "asset_info": { "file_uri": "gs://your-bucket/series/s01e01.mp4" },
    "extended_episodic_info": {
      "series_id": "SERIES-001", "series_title": "Example Series",
      "season_id": "SEASON-001", "season_title": "Season 1",
      "season_number": 1, "episode_number": 1
    }
  }'
  • Use extended_episodic_info on episodes. An episode sent with episodic_info is rejected.
  • season_id is optional. Without it, Vionlabs makes one from series_id and season_number.

Series and seasons

You don't have to add series and seasons yourself. Vionlabs creates them from the first episode that mentions them, and takes their titles from the episode you sent most recently.

To manage their information yourself, for example their titles, you can also add them as items with the type series or season. A season needs episodic_info to say which series it belongs to. A series needs no episodic information. Vionlabs recommends this where your CMS allows it.

The video file

asset_info.file_uri is the video Vionlabs processes. Movies and episodes need it.

To play a different file in the Portal than the one that is processed, add asset_info.video_playback_uri. It must start with gs:// or s3://. Without it, the Portal plays the file_uri. Ask your Vionlabs contact to switch this on for your catalog first.

Optional information that helps

None of these are required, but add as much as you can. They make matching, quality checks and new products easier to set up later.

FieldWhy add it
window_info (license start and end)Lets your teams find available, expired and upcoming titles in the Portal. See Availability windows.
poster_urlsPosters and artwork in the Portal and in Vionlabs' quality checks. See Posters.
external_ids (IMDb, TMDb), release yearHelps Vionlabs match your assets to its own content data and check results.
asset_info.duration (in seconds)Used in automatic quality checks.
Genres, keywords, cast and crew, descriptionsHelps match your assets and check results.

Availability windows

The availability window is the period an asset is available to your viewers, usually its license period. Send it in window_info:

"window_info": { "start": "2026-01-01T00:00:00Z", "end": "2026-12-31T23:59:59Z" }
  • start and end are dates with a time. Both are optional, and end must be after start.
  • You can add or change them every time you update the asset.
  • A missing date means no limit: without a start the asset is available now, without an end it never expires.
  • Dates are compared by day, not by time.

Where windows are used

WhereWhat happens
Portal: asset detailsShows the start and end, with an Expired or Upcoming label.
Portal: catalog filterLicense window can be All, Active or Upcoming. Active: today is inside the window. Upcoming: the window starts within the next 7, 14, 30, 60 or 90 days.
Portal: Smart ListsA Smart List that uses this filter is updated every day at 04:00 UTC, as titles enter or leave their window. Each change sends a smart_list.updated webhook.
Portal: recipes and artworkExpired titles are greyed out and can't be used to create recipes or generate artwork. Upcoming titles can.
Result APIsNot used. Results include all your assets, whatever their window.
ProcessingNot used. Assets are processed even outside their window.

Recommend only available titles

The Result APIs don't filter by window, so do one of these:

  • Use a Smart List. In the Portal, create a Smart List with License window: Active. Get its asset IDs with GET /smartlists/{id}/assets or from the smart_list.updated webhook, and send them as include_ids to the Recommender API.
  • Filter on your side. Leave out unavailable titles after you fetch the results.

What happens next

If products are switched on for your catalog, processing starts automatically. Otherwise, request it with the Tasks API. See Processing.

Changes are processed in the background, so an asset can take a short while to show up when you read it back.

Update, delete and reprocess

ActionHow
Update an assetSend the full item again with PUT /catalog/v1/item.
Delete an assetPUT /catalog/v1/delete/{type}/{inventory_id}, or send the item with "operations": { "deleted": true }
List assetsGET /catalog/v1/item
Replace the video fileSend the new file_uri and "operations": { "force_asset_reprocess": true }. Without the flag you get a 422.
Reprocess without changing anythingSend "operations": { "force_asset_reprocess": true }. Allowed once per 24 hours per asset.

Updates replace the whole item

An update isn't partial. Fields you leave out are cleared or set back to their defaults. To change one field, get the item, change that field and send the whole item back.

  • If nothing changed, nothing happens and nothing is processed again.
  • If file_uri stays the same, only the information is updated. The video isn't processed again.

Deleting

Deleting doesn't erase an asset. If you add the same type and ID again, it comes back with its earlier results.

  • Deleting the last episode of a season also deletes the season. If the series has no seasons left, it's deleted too.
  • Deleting a season or a series also deletes everything in it.

Reprocessing

force_asset_reprocess only works on an asset that exists and isn't deleted. It removes the asset's current results, then processes it again.

Move a season to another series

You can't move a season by changing its series_id, because a season ID belongs to one series (see Your IDs). Instead, move its episodes to a new season:

  1. Get the full details of every episode in the wrong season, and keep them.
  2. Choose a new, unique season_id for the right series, for example series2_season1. You can add the season yourself, or it's created when you send the first episode.
  3. For each episode, send the full item again. Keep the same episode id and file_uri. In extended_episodic_info, change series_id, series_title, season_id, season_title and season_number to the right series.
  4. Don't set force_asset_reprocess. With the same ID and video file, only the catalog changes and the video isn't processed again.
  5. When all episodes are moved and checked, delete the old season if you don't need it. Moving the episodes doesn't delete it. If the old series has no other seasons, deleting the season also deletes the series.

Full field reference: Catalog API. It also links to the Swagger and ReDoc versions.

On this page