Skip to main content
POST
Get Documents
Use this API to retrieve specific documents or all documents from an organization.
Prior to using this API, you must:
  • Enable advanced queries option in the console
  • Deploy v4 series of the Velt SDK.

Endpoint

POST https://api.velt.dev/v2/organizations/documents/get

Headers

string
required
Your API key.
string
required

Body

Params

object
required

Example Requests

1. Get all documents from organization

2. Get specific documents from organization

3. Get documents by organizationId, folderId

Response

Success Response

Failure Response

Partial Failures

When you request specific documentIds and any of them cannot be returned, this endpoint returns HTTP 500 and puts a per-item breakdown in error.details, as an array in the same order you sent the IDs.
A missing document is reported as 500 INTERNAL even though nothing went wrong on the server. Branch on the per-item code rather than the HTTP status when deciding whether to retry. Retrying on the status alone will loop on not-found, which will never succeed.This also means get is not a reliable existence check today: asking whether a document exists and receiving 500 is the expected answer for “no”. Read code to tell that apart from a real failure.
string
Why this particular item could not be returned. Present on every entry with "success": false.