---
title: "List documents"
method: GET
path: "/api/v1/documents"
tags: ["Document"]
---

# List documents

`GET /api/v1/documents`

Returns paginated response with a list of document objects.

## Query parameters

- `page_size` integer
- `cursor` string
- `id` integer[]
- `email` integer[]
- `creator` integer[]
- `created_at_before` string, date-time
- `created_at_after` string, date-time
- `arrived_at_before` string, date-time
- `arrived_at_after` string, date-time
- `original_file_name` string
- `attachment_status` 'null' | 'filtered_by_inbox_resolution' | 'filtered_by_inbox_size' | 'filtered_by_inbox_mime_type' | 'filtered_by_inbox_file_name' | 'filtered_by_hook_custom' | 'filtered_by_queue_mime_type' | 'hook_additional_file' | 'hook_converted' | 'filtered_by_insecure_mime_type' | 'extracted_archive' | 'failed_to_extract' | 'processed' | 'password_protected_archive' | 'broken_image', nullable — Reason why the Document got filtered out on Email ingestion.
- `parent` integer
- `ordering` 'id' | '-id' | 'arrived_at' | '-arrived_at' | 'created_at' | '-created_at' | 'original_file_name' | '-original_file_name' | 'mime_type' | '-mime_type' | 'attachment_status' | '-attachment_status'

## Response `200`

OK

- object
  - `results` Document[], required
    - `id` integer — ID of the document
    - `url` string, url — URL of the document
    - `s3_name` string — Storage key of the document file. Internal use only.
    - `parent` string, url, nullable — URL of the parent document (e.g. the zip file it was extracted from)
    - `email` string, uri, nullable — URL of the email object that document was imported by (only for document imported by email).
    - `annotations` string[] — List of annotations related to the document. Usually there is only one annotation.
    - `mime_type` string — MIME type of the document (e.g. `application/pdf`)
    - `creator` string, url, nullable — User that created the annotation.
    - `created_at` string, date-time — Timestamp of document upload or incoming email attachment extraction.
    - `arrived_at` string, date-time — See `created_at`
    - `original_file_name` string — File name of the attachment or upload.
    - `content` string, url — Link to the document's raw content (e.g. PDF file). May be `null` if there is no file associated.
    - `attachment_status` 'null' | 'filtered_by_inbox_resolution' | 'filtered_by_inbox_size' | 'filtered_by_inbox_mime_type' | 'filtered_by_inbox_file_name' | 'filtered_by_hook_custom' | 'filtered_by_queue_mime_type' | 'hook_additional_file' | 'hook_converted' | 'filtered_by_insecure_mime_type' | 'extracted_archive' | 'failed_to_extract' | 'processed' | 'password_protected_archive' | 'broken_image', nullable — Reason why the Document got filtered out on Email ingestion.
    - `metadata` Metadata — Client data. May be used to store e.g. external system object IDs. See [Metadata](/guides/overview#metadata) for more details.
  - `pagination` Pagination, required
    - `next` string, uri, nullable — URL for the next page of results. Contains an opaque signed `cursor` query parameter. Use this URL directly to fetch the next page — do not attempt to construct or modify the cursor value.
    - `previous` string, uri, nullable — URL for the previous page of results. Contains an opaque signed `cursor` query parameter. Use this URL directly to fetch the previous page — do not attempt to construct or modify the cursor value.

## Other responses

- `400` — Invalid input data.
- `401` — The username/password is invalid or token is invalid (e.g. expired).
- `403` — Insufficient permission, missing authentication, invalid CSRF token and similar issue.
- `404` — The specified resource was not found.
- `409` — Conflict
- `429` — Request rate is too high, wait before sending more requests. See [Rate Limiting](/guides/overview#rate-limiting) for more details.
- `500` — Server failure while processing the request.
- `502` — Invalid response from the upstream server.
- `503` — We're temporarily offline for maintenance. Please try again later.
- `504` — Upstream server could not complete the request in time.

---

[API](https://skmtc.dev/rossum/apis/rossum-api.md) · [All operations](https://skmtc.dev/rossum/apis/rossum-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rossum/rossum-api/revisions/f1b5a910991d/schema)
