Zum Inhalt springen
DeutschlandGPT

List document folders

Returns all active document folders for the enterprise workspace. Supports optional text search. limit and offset apply only when a query is provided; without query, all folders are returned. Results are filtered by the API key's folder permissions when the key is user-scoped and has folder restrictions enabled.

GEThttps://api.deutschlandgpt.de/v2/document-folders

Example request

curl https://api.deutschlandgpt.de/v2/document-folders \
  -X GET \
  -H "Authorization: Bearer $DGPT_API_KEY"

Parameters

querystringoptional

Optional text search query to filter folders by name

limitintegeroptional

Maximum number of results to return

offsetintegeroptional

Number of results to skip

Response

200application/json
{
  "object": "list",
  "data": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "name": "string",
      "description": "string",
      "visibility": "string",
      "createdAt": "2025-01-01T00:00:00Z",
      "fileCount": 0
    }
  ]
}

List of document folders

objectstring
dataDocumentFolder[]
idstring<uuid>
namestring
descriptionstring
visibilitystring
createdAtstring<date-time>
fileCountinteger

Response codes

200

List of document folders

object
401

Unauthorized

402

Insufficient credits or spending limit exceeded

Error
403

Requires enterprise workspace

Was this page helpful?