---
title: "List documents"
method: GET
path: "/api/v1/trips/{tripExternalId}/documents"
tags: ["Documents"]
---

# List documents

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

## Request

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

The documents of a trip that the caller may see: all of them for the trip owner, otherwise the caller's own
and the shared ones. Newest first. `can` is what the caller may do with each; `size_bytes` is null when the
stored file cannot be measured.

## Response `200`

- object
  - `documents` object[]
    - `external_id` string
    - `trip_id` integer
    - `document_type` string
    - `name` string
    - `file_url` string
    - `mime_type` string
    - `notes` string
    - `shared_with_trip` boolean
    - `uploaded_by` object
      - `id` integer
      - `first_name` string
    - `can_delete` boolean
    - `can` object
      - `update` boolean
      - `delete` boolean
      - `share` boolean
    - `size_bytes` integer
    - `created_at` string
    - `updated_at` string

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