Skip to content

API: Media

Inspect an asset

GET /api/v1/projects/{id}/media/{asset_id}: Inspect an asset

Last updated:

GET/api/v1/projects/{id}/media/{asset_id}

Authentication#

Send the secret in the header Authorization: Bearer <secret>: the local token in local mode, an API key in network mode. An API key needs the read scope; the local token has every scope. See the API overview for both modes.

Path parameters#

NameTypeRequiredDescription
idstringyesmin length 1
asset_idstringyesmin length 1

Query parameters#

NameTypeRequiredDescription
timeline_idstringnoThe timeline of the project; required when the project has several.
sectionsstringnoComma separated: probe (default), transcript, silences, loudness, beats.
min_silencestringnoThe shortest silence to list, as a time; default 0.4s.
cursorstringnoThe next_cursor of the previous page.
limitintegernoThe page size; the default depends on the operation.

Responses#

200 OK#

Content type application/json. Schema: MediaInspectResult.

NameTypeRequiredDescription
asset_idstringno
availablearray of stringno
beatsBeatGrid or any or null or nullno
errorError or any or null or nullno
fillersTranscriptDetectResult or any or null or nullno
kindstringno
loudnessLoudness or any or null or nullno
next_cursorstring or nullno
probeProbeSummary or any or null or nullno
progressnumber (double)no
silencesarray of TimeRangeno
statestringno
stripStrip or any or null or nullno
textstringno
untrustedUntrustedData or any or null or nullno
untrusted_noticestringno
wordsTranscriptViewResult or any or null or nullno
zoomsarray of ClipZoomno

400#

Validation failed; errors maps each field to its messages and issues lists each problem with its code, key and params

Content type application/problem+json. Schema: Problem.

401 Unauthorized#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

403#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

404#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

429#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

Any other status#

Error (RFC 9457 problem details)

Content type application/problem+json. Schema: Problem.

curl -X GET "http://127.0.0.1:7878/api/v1/projects/PROJECT_ID/media/ASSET_ID" \
  -H "Authorization: Bearer $STUARTY_KEY"

Response examples

{
  "asset_id": "string",
  "available": [
    "string"
  ],
  "beats": {
    "confidence": 0,
    "count": 0,
    "first_ms": [
      0
    ],
    "reason": "string",
    "tempo_bpm": 0
  },
  "error": {
    "code": "string",
    "details": {},
    "hint": "string",
    "message": "string",
    "op_index": 0,
    "path": "string",
    "retryable": false
  },
  "fillers": {
    "asset_id": "string",
    "filler_rules": false,
    "language": "string",
    "project_id": "string",
    "revision": 0,
    "rule": "string",
    "suggestions": [
      {}
    ],
    "text": "string",
    "untrusted_notice": "string"
  },
  "kind": "string",
  "loudness": {
    "integrated_lufs": 0,
    "range_lu": 0,
    "true_peak_dbtp": 0
  },
  "next_cursor": "string",
  "probe": {
    "animated": false,
    "audio_codec": "string",
    "channels": 0,
    "container": "string",
    "duration": {
      "frame": 0,
      "seconds": 0
    },
    "frame_rate": "string",
    "frames": 0,
    "has_audio": false,
    "height": 0,
    "kind": "string",
    "loop_duration_ms": 0,
    "sample_rate": 0,
    "size_bytes": 0,
    "video_codec": "string",
    "width": 0
  },
  "progress": 0,
  "silences": [
    {
      "end": {},
      "start": {}
    }
  ],
  "state": "string",
  "strip": {
    "columns": 0,
    "count": 0,
    "interval_ms": 0,
    "tile_h": 0,
    "tile_w": 0
  },
  "text": "string",
  "untrusted": {
    "metadata": {},
    "name": "string",
    "suggestions": [
      {}
    ],
    "transcript": [
      {}
    ],
    "words": [
      {}
    ]
  },
  "untrusted_notice": "string",
  "words": {
    "asset_id": "string",
    "language": "string",
    "project_id": "string",
    "revision": 0,
    "skipped_items": [
      "string"
    ],
    "text": "string",
    "untrusted_notice": "string",
    "words": [
      {}
    ]
  },
  "zooms": [
    {
      "end": {},
      "item_id": "string",
      "n": 0,
      "start": {}
    }
  ]
}

The examples are built from the schemas of the OpenAPI document, so a value is a placeholder of its type. The fields that carry the real values are in the tables.