Skip to main content
POST
/
folders
Create a folder
curl --request POST \
  --url https://app.generalcounsel.ai/api/external/v1/folders \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Q4 Contracts",
  "description": "<string>",
  "parent_folder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "<string>",
  "path": "/My Files/Contracts",
  "parent_folder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "folder_type": "<string>",
  "created_at": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.gc.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key for authentication. Format: gcai_xxxxxxxxx

Create API keys in the GC AI app under Settings → Organization → API Keys.

Body

application/json
name
string
required

Folder name (min 2 characters)

Minimum string length: 2
Example:

"Q4 Contracts"

description
string

Optional description

parent_folder_id
string<uuid>

Parent folder ID. If omitted, creates a top-level folder.

Response

Folder created

id
string<uuid>
required

Unique folder identifier

name
string
required

Folder name

description
string | null
required

Folder description, or null if unset

path
string
required

Full path from root, e.g. "/My Files/Contracts"

Example:

"/My Files/Contracts"

parent_folder_id
string<uuid> | null
required

Parent folder ID, or null for root

folder_type
string
required

Folder type (custom, my-files, etc.)

created_at
string
required

ISO 8601 creation timestamp