Skip to main content
POST
Create a folder

Authorizations

Authorization
string
header
required

Workspace credential issued from the automation console at /automation. Send it as Authorization: Bearer vq_ws_.... This is NOT a Data API key: a vq_key_ credential is refused here and names the other product in the error.

Body

application/json

Everything a caller may set when creating a folder.

Both references are verified against the calling installation's organization before the row is written. Cycles are refused by the folders_prevent_cycle trigger, which is a database-level guarantee this API does not duplicate.

name
string
required

Display name for the folder. Trimmed; whitespace alone is refused.

Required string length: 1 - 100
Example:

"Closing Documents"

parentId
string | null

fld_ identifier of the folder to nest this one under. Must belong to your organization. A cycle is refused by the database.

Example:

"fld_9f2c8b1e4a7d43c9b6e0f1a2c3d4e5f6"

matterId
string | null

mat_ identifier to scope this folder to one matter. Must belong to your organization. Omit for a workspace-level folder shared across drafts and chats.

Example:

"mat_9f2c8b1e4a7d43c9b6e0f1a2c3d4e5f6"

Response

Successful Response

A folder as this API publishes it.

id
string
required

Public identifier, fld_ followed by 32 hex characters.

Example:

"fld_9f2c8b1e4a7d43c9b6e0f1a2c3d4e5f6"

name
string
required

The folder's display name.

Example:

"Closing Documents"

parentId
string | null

fld_ identifier of the containing folder. Absent when the folder sits at the root.

Example:

"fld_9f2c8b1e4a7d43c9b6e0f1a2c3d4e5f6"

matterId
string | null

mat_ identifier when the folder is scoped to one matter. Absent means a workspace-level folder, visible across drafts and chats.

Example:

"mat_9f2c8b1e4a7d43c9b6e0f1a2c3d4e5f6"

createdAt
string<date-time> | null

When the folder was created (RFC 3339).

Example:

"2026-08-19T14:32:10Z"

updatedAt
string<date-time> | null

When the folder was last modified (RFC 3339).

Example:

"2026-08-19T14:32:10Z"

Last modified on August 23, 2026