Returns the image of a screenshot. The list of screenshots of a key is part of Get a key.
HTTP
GET /keys/{keyId}/assets/{assetId}Access: Session token only. API keys get 403 with insufficient_scope.
Role: Any role in the project.
Path parameters #
| Parameter | Description |
|---|---|
keyId | The id of the key. |
assetId | The id of the screenshot. |
Response 200 #
The image itself, not JSON. Content-Type is the mimeType of the screenshot, Content-Disposition is inline with its file name, and the response carries X-Content-Type-Options: nosniff. The request needs the Authorization header, so an <img> tag cannot load it directly: fetch it and show the result.
Errors #
| Status | error | When |
|---|---|---|
| 401 | unauthenticated | The token is missing or not valid. |
| 404 | not_found | The key does not exist, you have no access to its project, keyId or assetId is not a UUID, or the key has no such screenshot. |
| 429 | rate_limited | Too many requests, see Rate limiting. |
See Errors for the error format.