---
title: "Get Document Thumbnail"
method: GET
path: "/documents/{child_id}/{document_id}/thumbnail"
tags: ["documents"]
---

# Get Document Thumbnail

`GET /documents/{child_id}/{document_id}/thumbnail`

## Request

- Base URL: `https://api.projectindi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.projectindi.com/documents/{child_id}/{document_id}/thumbnail`
- Auth: none declared

Generate a signed, sized URL for a document thumbnail.

Authentication: JWT required
RLS: User must have access to the document (family member or uploader)

Args:
    child_id: UUID of child
    document_id: UUID of document
    width: Target width (default: 96 for 2x retina of 48px display)
    height: Target height (omit to keep the aspect ratio)
    format: Output format (jpeg/webp/avif/png, default: webp)
    quality: Image quality 1-100 (default: 80)

Returns:
    Signed thumbnail URL with expiry

## Path parameters

- `child_id` string, required
- `document_id` string, required

## Query parameters

- `width` integer
- `height` integer, nullable
- `format` string
- `quality` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles.md) - [All operations](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles/llms.txt) - [OpenAPI document](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles/revisions/25a7813e21fd?raw)
