Skip to content

GET /media/

Get Media

GET
/media/{media_key}

Serve a media file as a direct file download.

Looks up the Media document by media_key to retrieve the original
filename and content type, then streams the file from
{media_root}/{media_key} using FastAPI's FileResponse. The
Content-Disposition header will include the original filename.

Emits: (direct transaction — no event class)

Required scope: attachment:media:read

Authorizations

OAuth2PasswordBearer
password Flow
Token URL"/api/auth"
Scopes:
  • "admin"User can access and edit users and system settings
  • "library"User can access and edit products
  • "production"User can access and edit production plans
  • "operator"User can access the operator panel and make production declarations

Parameters

Path Parameters

media_key*
Type
string
Required

Responses

Successful Response

Samples

Powered by VitePress OpenAPI

Released under the Apache 2.0 License.