---
title: "Download links (DOCX, PDF, page previews), or an artifact's page link"
method: GET
path: "/documents/{document_id}/outputs"
tags: ["Documents"]
---

# Download links (DOCX, PDF, page previews), or an artifact's page link

`GET /documents/{document_id}/outputs`

## Request

- Base URL: `https://api.eu.doconda.com/v1`
- URL: `https://api.eu.doconda.com/v1/documents/{document_id}/outputs`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Path parameters

- `document_id` string, required

## Response `200`

Outputs with 5-minute signed URLs; an artifact's page link works until the document's `expires_at`.

- object
  - `data` object[], required
    - `id` string, required
    - `kind` 'docx' | 'pptx' | 'xlsx' | 'pdf' | 'preview' | 'html' | 'md', required
    - `page` integer
    - `content_type` string, required
    - `bytes` integer, required
    - `width` integer
    - `height` integer
    - `url` string, required: Signed download URL, valid 5 minutes. For `html` (an artifact), the link to the page, which works until its retention ends or you delete it; with `retention: none`, the page to download.
    - `expires_at` string, date-time, nullable, required: When `url` stops working; null for an artifact's page, which works until the document's `expires_at`.

## Other responses

- `401`: unauthorized (missing, unknown or revoked key; expired session).
- `404`: not_found

---

[API](https://skmtc.dev/doconda/apis/doconda-api.md) · [All operations](https://skmtc.dev/doconda/apis/doconda-api/llms.txt) · [OpenAPI document](https://skmtc.dev/doconda/apis/doconda-api/revisions/27d29a7e8902?raw)
