Skip to content
  • Type to search every guide, endpoint and MCP tool.
POST

Frame image

/v1/branding/image/frame

Scope prep_manage

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.

Request body (JSON)

sourcestringRequired
An image this organisation uploaded (`/v1/media/branding/...`) or a public http(s) link to one.
xnumberRequired
Left edge, as a fraction of the image width.
ynumberRequired
Top edge, as a fraction of the image height.
widthnumberRequired
Width, as a fraction of the image width.
heightnumberRequired
Height, as a fraction of the image height.
shapeone of circular, rounded
"circular" for a headshot (saved as JPEG), "rounded" for a logo (PNG, keeping transparency).

Responses

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