---
title: "Get all documents."
method: GET
path: "/api/v1/document"
tags: ["document"]
---

# Get all documents.

`GET /api/v1/document`

Get all documents. Returned as list or empty list.

## Query parameters

- `sort` boolean
- `reverse` boolean
- `text_search` string, nullable
- `doc_type` 'content' | 'api' | 'unassigned' — Document types.
- `created_by` string, nullable
- `modified_by` string, nullable

## Cookies

- `Session` string, nullable

## Response `200`

Successful Response

- DocumentResponse — Document response model.
  - `docId` string, nullable — Id of the document by language and description.
  - `description` string, required — Short description of document.
  - `document` string, required — Document itself.
  - `language` 'EN', required — Supported languages.
  - `id` string, required — Unique id in db.
  - `history` HistoryResponse, required — History response model.
    - `id` string, required — Id of entry in db.
    - `creator` string, required — User or email of the creator.
    - `created` string, date-time, required — Datetime when the entry has been created.
    - `modifier` string, required — User or email of the modifier.
    - `modified` string, date-time, required — Datetime when the entry has been modified.
    - `revision` number — Revision of entry, incremented by 1 for each update

## Other responses

- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Unprocessable entity
- `500` — Internal Server Error

---

[API](https://skmtc.dev/posti/apis/posti-developer-portal-backend-rest-api.md) · [All operations](https://skmtc.dev/posti/apis/posti-developer-portal-backend-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/posti/posti-developer-portal-backend-rest-api/revisions/4b67dce32742/schema)
