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,mediumorhigh - 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
| Product | Key |
|---|---|
| Metadata (Fingerprint+) | fingerprintplus |
| Thumbnails | jitthumbnails |
| Preview clips | jitpreviews |
| Vertical conversion | vertical_conversion |
| Binge markers | markers |
| Contextual ad breaks | contextual_adbreak |
| Scene tags | scene_tags |
| Content summary | content_summary |
Follow progress
| Status | Meaning |
|---|---|
pending | Waiting to run |
ready | Done, results are available |
failed | Didn't succeed |
inactive | The 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
PUTto the same path with/resetat the end. - Deactivate a task you no longer need. Send
DELETEto 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.