---
title: "Get Documents"
method: POST
path: "/organizations/documents/get"
tags: ["Documents"]
---

# Get Documents

`POST /organizations/documents/get`

## Request

- Base URL: `https://api.velt.dev/v2`
- URL: `https://api.velt.dev/v2/organizations/documents/get`
- Auth: API key in header `x-velt-api-key` and API key in header `x-velt-auth-token`

Use this API to retrieve specific documents or all documents from an organization.

**Requirements:**
- Enable advanced queries option in the Velt Console
- Deploy v4 series of the Velt SDK

## Request body

- object
  - `data` object, required
    - `organizationId` string, required: Organization ID
    - `documentIds` string[]: Array of Document IDs (max 30)
    - `folderId` string: Filters documents by folder ID
    - `pageSize` integer: Number of items per page
    - `pageToken` string: Page token from previous API call

## Response `200`

Documents retrieved successfully

- object
  - `result` object
    - `status` string
    - `message` string
    - `data` Document[]
      - `documentId` string, required: Unique identifier for the document
      - `documentName` string: Display name of the document
      - `accessType` 'public' | 'restricted': Access type of the document
      - `disabled` boolean: Whether the document is disabled
    - `pageToken` string

## Other responses

- `400`: Invalid request

---

[API](https://skmtc.dev/velt-js/apis/velt-rest-api.md) - [All operations](https://skmtc.dev/velt-js/apis/velt-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/velt-js/apis/velt-rest-api/revisions/0f5af15fa267?raw)
