Create Folder
folders:write role.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/folders
POST /v1/folders
folders:write role.
| Header | Required | Description |
|---|---|---|
X-API-Key | Yes | Your API key |
Content-Type | Yes | application/json |
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Folder name |
parent_id | string | No | Parent folder ID for nesting |
curl -X POST https://api.surfacedocs.dev/v1/folders \
-H "X-API-Key: sd_live_..." \
-H "Content-Type: application/json" \
-d '{"name": "Engineering"}'
{
"id": "fld_abc123",
"name": "Engineering",
"parent_id": null,
"path": "/Engineering",
"depth": 0,
"created_at": "2025-01-15T10:30:00Z"
}
| Code | Description |
|---|---|
| 404 | Parent folder not found |