API reference

API reference · API

The document's assets mapped onto stored media

GET/v1/studio/projects/{id}/mediaAPI key

Each asset of the document matched to a stored file by doc_asset_id, by its own sa_ id, or by the job that made it, with our door to fetch the bytes. An API key with the read scope. Rate limited per key at the key's own requests a minute, in a window of its own. An agent's key is refused (403 policy_violation). Every /v1/studio door is a 404 while video and sound jobs are switched off.

Parameters

Path and query parameters
FieldTypeWhat it is
id (path)requiredstringThe project's id, stp_ followed by hex.

Answer 200

The mapping.

Fields of the 200 answer
FieldTypeWhat it is
objectstringOne of "studio.project.media".
dataarray of object
data[].assetstringThe editor's Asset.id.
data[].storedobject or null
data[].content_urlstring or nullOur own content door for the bytes; never a link to the store.

Errors

  • 401OpenAI shaped error.
  • 403OpenAI shaped error.
  • 404OpenAI shaped error.
  • 429OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Antimatter