---
title: "Get the media context/preset registry"
method: GET
path: "/api/v1/media/contexts"
tags: ["Media Library"]
---

# Get the media context/preset registry

`GET /api/v1/media/contexts`

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

## Response `200`

Successful Response

- MediaContextDTO[]
  - `id` string, required — Full context id, e.g. 'pwa.logo'.
  - `section` string, required
  - `field` string, required
  - `ratio` string, nullable — e.g. '1:1', '9:16'; null when unconstrained.
  - `ratioMode` 'required' | 'recommended'
  - `minWidth` integer, nullable
  - `minHeight` integer, nullable
  - `formats` string[], required — Accepted input mime types.
  - `presets` string[], required — Derivatives generated on attach.

---

[API](https://skmtc.dev/pwapps/apis/curie-api.md) · [All operations](https://skmtc.dev/pwapps/apis/curie-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pwapps/curie-api/revisions/b0af9064dfef/schema)
