Skip to Content
Guides

Process assets on request

Choose which products run on which assets, set priorities, follow progress, and restart or stop tasks.

The Tasks API lets you decide exactly what is processed: one product, in one version, on one asset. Use it to set priorities, test or compare product versions, or process only selected assets. Products set to automatic processing don't need it. See Processing.

Before you start

  • The asset must already be in your catalog. See Add your assets. Use your own inventory ID: the Tasks API doesn't create IDs.
  • The product version must be switched on for your catalog. Otherwise the task returns 403 "The requested product version is forbidden for use with your catalog". Ask your Vionlabs contact.

Create a task

curl -X POST "https://apis.prod.vionlabs.com/tasks/catalog-item/ep-101/product/markers/version/30?catalog=YOUR_CATALOG" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "priority": "high" }'
  • Path: /tasks/catalog-item/{inventory_id}/product/{product}/version/{version}
  • Priority: low, medium or high
  • You can create the task right after adding the asset. You don't need to wait.
  • One task per product. To run thumbnails and vertical conversion, create two tasks.

Product keys

ProductKey
Metadata (Fingerprint+)fingerprintplus
Thumbnailsjitthumbnails
Preview clipsjitpreviews
Vertical conversionvertical_conversion
Binge markersmarkers
Contextual ad breakscontextual_adbreak
Scene tagsscene_tags
Content summarycontent_summary

Follow progress

StatusMeaning
pendingWaiting to run
readyDone, results are available
failedDidn't succeed
inactiveThe task was deactivated

To check a task, send GET to the same path. To see all tasks for an asset, send GET /tasks/catalog-item/{inventory_id}.

Webhooks don't include a status. When a webhook arrives, check the task here if you need to know whether it succeeded. If you poll instead, wait 30 to 60 seconds between checks.

Restart or stop a task

  • Reset a failed task to run it again, for example after fixing the video file. Send PUT to the same path with /reset at the end.
  • Deactivate a task you no longer need. Send DELETE to the same path.

To process an asset again after you replace its video file, add it again with the Catalog API and force_asset_reprocess. See Add your assets.

If a task fails, contact support with the inventory ID, product and version.

Full reference: Tasks API.

On this page