Manual
CLI
API
Log in Get started free

Attach a screenshot to a key

Uploads an image that shows translators where a key appears.

Uploads an image that shows translators where a key appears.

HTTP
POST /keys/{keyId}/assets

Access: Session token only. API keys get 403 with insufficient_scope.

Role: Project reviewer or manager. The plan of the organisation must include screenshots.

Path parameters #

ParameterDescription
keyIdThe id of the key.

Request body #

multipart/form-data.

FieldTypeRequiredDescription
filefileyesA PNG, JPEG, WebP or GIF image of at most 5 MB. The type is taken from the content of the file, not from its name. SVG is not accepted.

A key can have up to 10 screenshots. When a branch is created, its keys get the screenshots of the keys they are copied from. Merging a branch adds screenshots to the keys of the base branch that do not have them yet.

Response 201 #

The screenshot.

JSON
{ "id": "0197a3ca-8197-7e88-9bdf-3f7c9a4e6108", "filename": "cart.png", "mimeType": "image/png", "size": 48210, "createdAt": "2026-10-16T09:44:55+00:00" }

Response fields #

FieldTypeDescription
idstringThe id of the screenshot.
filenamestringThe name of the uploaded file, without slashes and control characters, at most 120 characters.
mimeTypestringimage/png, image/jpeg, image/webp or image/gif.
sizeintegerThe size in bytes.
createdAtstringWhen it was uploaded, in ISO 8601.

Errors #

StatuserrorWhen
401unauthenticatedThe token is missing or not valid.
402plan_limitThe plan does not include screenshots. limit is assets.
403forbiddenYou are a translator in the project.
404not_foundThe key does not exist, you have no access to its project, or keyId is not a UUID.
422invalid_requestfields.file says why: missing, too_large, unsupported (not a PNG, JPEG, WebP or GIF image) or too_many (the key has 10 screenshots).
429rate_limitedToo many requests, see Rate limiting.

See Errors for the error format.