---
title: "Get Artefact Download Url"
method: GET
path: "/artefacts/{child_id}/{artefact_id}/download"
tags: ["artefacts"]
---

# Get Artefact Download Url

`GET /artefacts/{child_id}/{artefact_id}/download`

## 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/artefacts/{child_id}/{artefact_id}/download`
- Auth: none declared

Get signed download URL for an artefact's file.

When the artefact has a stored PDF (``file_url`` set), returns a
signed URL directly. When ``file_url`` is NULL (markdown-only
artefact), renders the PDF on-the-fly, uploads to temp storage,
and returns a signed URL for that.

Authentication: JWT required
RLS: User must have access via family membership, ownership or clinician access.

## Path parameters

- `child_id` string, required
- `artefact_id` string, required

## Response `200`

Successful Response

- SrcApiArtefactsRoutesDownloadUrlResponse
  - `signed_url` string, required
  - `expires_at` string, required
  - `file_name` string, required
  - `file_type` string, required

## 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)
