---
title: "Download a document"
method: GET
path: "/api/v1/trips/{tripExternalId}/documents/{documentExternalId}/download"
tags: ["Documents"]
---

# Download a document

`GET /api/v1/trips/{tripExternalId}/documents/{documentExternalId}/download`

## Request

- Base URL: `https://www.endlesstravelplans.com`
- URL: `https://www.endlesstravelplans.com/api/v1/trips/{tripExternalId}/documents/{documentExternalId}/download`
- Auth: HTTP bearer

The file bytes, sent with `Content-Disposition: attachment`, `X-Content-Type-Options: nosniff` and the
document's `mime_type` as `Content-Type`. A document the caller may not see answers 404, so its existence is
not confirmed. The file lives on the private disk and is never publicly accessible.

## Response `200`

file

## Other responses

- `401`: unauthenticated: No valid bearer token was sent.
- `429`: rate_limited: A throttle or a per-account allowance refused the request; `retry_after` or `remaining` may be present.
- `500`: server_error: Unhandled failure; quote `request_id` to support.

---

[API](https://skmtc.dev/endlesstravelplans/apis/endless-travel-plans-api.md) · [All operations](https://skmtc.dev/endlesstravelplans/apis/endless-travel-plans-api/llms.txt) · [OpenAPI document](https://skmtc.dev/endlesstravelplans/apis/endless-travel-plans-api/revisions/ae82ed3e4a8f?raw)
