# Transcripts and media

Transcripts, subtitles, transcript search, photos and media files.

Base URL: https://api.audiobly.com

### POST /v1/branding/image/frame

Frame image

Save the part of an image that should show in a round headshot or a square logo.

The edit dialogs let people zoom and drag an image into its icon. The browser can show any
image but cannot read the pixels of one from another site, so the crop happens here: the
browser sends the visible square, and this stores that square as a new image under the
organisation's branding prefix, like any upload. A pasted link is fetched once through the
SSRF-guarded client (public addresses only), after which the picture is ours to serve, not
a hotlink someone else can break.

Scope: prep_manage

Body (JSON):

- `source` (string, required): An image this organisation uploaded (`/v1/media/branding/...`) or a public http(s) link to one.
- `x` (number, required): Left edge, as a fraction of the image width.
- `y` (number, required): Top edge, as a fraction of the image height.
- `width` (number, required): Width, as a fraction of the image width.
- `height` (number, required): Height, as a fraction of the image height.
- `shape` (one of circular, rounded): "circular" for a headshot (saved as JPEG), "rounded" for a logo (PNG, keeping transparency).

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.
