Media Library

Get the media context/preset registry

The single source of truth for field ratios, min-dimensions and derivatives. Cache forever on the client.

get/api/v1/media/contexts

Response

Successful Response

idstring required

Full context id, e.g. 'pwa.logo'.

sectionstring required
fieldstring required
ratiostring nullable

e.g. '1:1', '9:16'; null when unconstrained.

ratioMode'required' | 'recommended'
minWidthinteger nullable
minHeightinteger nullable
formatsstring[] required

Accepted input mime types.

presetsstring[] required

Derivatives generated on attach.

Changes

No recorded changes to this endpoint across all 1 revision of this API.