> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.labric.co/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.labric.co/_mcp/server.

# View an image annotation

GET https://platform.labric.co/api/v1/images/{file_id}/annotations/{annotation_id}/view

Look at one saved annotation to judge whether its mask is right.

Returns a webp of a square of the image around the annotation, with the
mask's painted area tinted orange. Pass show_mask=false to get the same
square without the tint, which shows the pixels the mask covers. A small
annotation is enlarged to 256 pixels across. The X-Image-View response
header describes the view, and its summary says when the annotation is too
long to fit in the square. Get annotation ids from get_image_annotations.
Returns 400 for an annotation that cannot be shown, such as one whose mask
is empty.

Requires an API key with the `read` scope.

Reference: https://docs.labric.co/api-reference/labric-api/images/view-annotation

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `file_id` (string, required)
- `annotation_id` (string, required)

### Query parameters

- `show_mask` (boolean, optional, default: true)

## Response

### 200

The view as a webp

- File download.

## Errors

### 400 Bad Request Error

Bad Request

- `detail` (string, required)

### 401 Unauthorized Error

Unauthorized

- `detail` (string, required)

### 403 Forbidden Error

Forbidden

- `detail` (string, required)

### 404 Not Found Error

Not Found

- `detail` (string, required)

### 422 Unprocessable Entity Error

Unprocessable Content

- `detail` (list of map from string to any, required)

### 500 Internal Server Error

Internal Server Error

- `detail` (string, required)

### 502 Bad Gateway Error

Bad Gateway

- `detail` (string, required)

## Examples

**SDK Code**

```python
import requests

url = "https://platform.labric.co/api/v1/images/file_id/annotations/annotation_id/view"

headers = {"Authorization": "Bearer <api_key>"}

response = requests.get(url, headers=headers)

print(response.json())
```