Zum Inhalt springen
DeutschlandGPT

Create document folder

Creates a new document folder in the enterprise workspace.

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

Example request

curl https://api.deutschlandgpt.de/v2/document-folders \
  -X POST \
  -H "Authorization: Bearer $DGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "description": ""
}'

Request body

namestringrequired

Folder name

descriptionstringoptional

Folder description

Response

201application/json
{
  "id": "00000000-0000-0000-0000-000000000000",
  "name": "string",
  "description": "string",
  "visibility": "string",
  "createdAt": "2025-01-01T00:00:00Z",
  "fileCount": 0
}

Created folder

idstring<uuid>
namestring
descriptionstring
visibilitystring
createdAtstring<date-time>
fileCountinteger

Response codes

201

Created folder

DocumentFolder
401

Unauthorized

402

Insufficient credits or spending limit exceeded

Error
403

Requires enterprise workspace

Was this page helpful?