arazzo: 1.0.1
info:
title: Mux Asset Library Drilldown
summary: List assets in the environment, then read the first asset's full detail and its input info.
description: >-
A browsing pattern for building a Mux Video asset library view. The workflow
lists assets in the current environment, captures the id of the first asset,
reads that asset's full detail including playback IDs and tracks, and then
reads its input info to expose the source file characteristics. Every step
spells out its request inline so the flow can be read and executed without
opening the underlying OpenAPI description.
version: 1.0.0
x-realizes-capability-ids:
- BC-3710
x-capability-derivation:
method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
min_confidence: 0.7
sources:
- capability_id: BC-3710
capability_name: Media Asset Management
spec: mux-com-assets-api-openapi.yml
confidence: 0.9
model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: assetsApi
url: ../openapi/mux-com-assets-api-openapi.yml
type: openapi
workflows:
- workflowId: asset-library-drilldown
summary: List assets, then read the first asset's detail and input info.
description: >-
Lists assets, reads the first asset's full detail, then reads that asset's
input info.
inputs:
type: object
properties:
limit:
type: integer
description: Maximum number of assets to return in the list.
default: 25
page:
type: integer
description: Page of assets to fetch.
default: 1
steps:
- stepId: listAssets
description: >-
List assets in the current environment, ordered by most recent.
operationId: listAssets
parameters:
- name: limit
in: query
value: $inputs.limit
- name: page
in: query
value: $inputs.page
successCriteria:
- condition: $statusCode == 200
outputs:
assets: $response.body#/data
firstAssetId: $response.body#/data/0/id
- stepId: getAsset
description: >-
Read the first asset's full detail, including its playback IDs and tracks.
operationId: getAsset
parameters:
- name: ASSET_ID
in: path
value: $steps.listAssets.outputs.firstAssetId
successCriteria:
- condition: $statusCode == 200
outputs:
asset: $response.body#/data
status: $response.body#/data/status
- stepId: getInputInfo
description: >-
Read the first asset's input info to expose the characteristics of the
source file Mux ingested.
operationId: get-asset-input-info
parameters:
- name: ASSET_ID
in: path
value: $steps.listAssets.outputs.firstAssetId
successCriteria:
- condition: $statusCode == 200
outputs:
inputInfo: $response.body#/data
outputs:
assets: $steps.listAssets.outputs.assets
asset: $steps.getAsset.outputs.asset
inputInfo: $steps.getInputInfo.outputs.inputInfo
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.