Skip to main content
POST
/
folder
Create a folder
curl --request POST \
  --url https://www.getsnippets.ai/api/prompts/folder \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "folderName": "<string>",
  "folderColor": "#3B82F6",
  "teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "parentFolderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "success": true,
  "data": {
    "folder": {}
  },
  "usage": {
    "remainingRequests": 123
  },
  "metadata": {
    "folderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "folderName": "<string>",
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

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

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

Authorizations

Authorization
string
header
required

API key authentication using Bearer token. Include your API key in the Authorization header.

Body

application/json
folderName
string
required

Name of the folder

Required string length: 1 - 1000
folderColor
string
required

Color for the folder (e.g., hex code)

Maximum string length: 100
Example:

"#3B82F6"

teamId
string<uuid>
required

ID of the team this folder belongs to

parentFolderId
string<uuid> | null

Optional parent folder ID for nested folders

Response

Folder created successfully

success
boolean
Example:

true

data
object
usage
object
metadata
object