Projects & Folders

Project Endpoints

MethodPathScopeDescription
GET/projectsprojects:readList projects
POST/projectsprojects:writeCreate a project
GET/projects/:idprojects:readGet a project
PATCH/projects/:idprojects:writeUpdate a project
DELETE/projects/:idprojects:writeDelete a project
POST/projects/:id/moveprojects:writeMove project to a folder

Folder Endpoints

MethodPathScopeDescription
GET/foldersprojects:readList folders
POST/foldersprojects:writeCreate a folder
GET/folders/:idprojects:readGet a folder
PATCH/folders/:idprojects:writeUpdate a folder
DELETE/folders/:idprojects:writeDelete a folder

Folders organize projects or brandings into a hierarchy up to 3 levels deep. Project folders require a Pro or Business plan; branding folders require Business.


List Projects

bash
curl "https://my.clarife.app/api/v1/projects?limit=20&offset=0" \
  -H "Authorization: Bearer clrf_your_key"

Query parameters:

ParamTypeDefaultDescription
limitinteger50Results per page (max 100)
offsetinteger0Number of results to skip
folder_iduuid-Filter by parent folder

Response:

json
{
  "data": [
    {
      "id": "p1a2b3c4-...",
      "name": "Product Docs",
      "description": null,
      "icon": "book",
      "folder_id": null,
      "sort_order": 0,
      "visibility": "private",
      "created_at": "2026-03-10T08:00:00Z",
      "updated_at": "2026-03-28T12:00:00Z"
    }
  ],
  "total": 1,
  "limit": 20,
  "offset": 0
}

Create a Project

bash
curl -X POST https://my.clarife.app/api/v1/projects \
  -H "Authorization: Bearer clrf_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Onboarding Guides",
    "icon": "graduation-cap",
    "folder_id": "f1a2b3c4-..."
  }'
FieldTypeRequiredDescription
namestringYesProject name (1-200 chars)
descriptionstringNoDescription (max 2000 chars)
iconstringNoIcon identifier (max 100 chars)
folder_iduuidNoParent folder

Get a Project

bash
curl https://my.clarife.app/api/v1/projects/p1a2b3c4-... \
  -H "Authorization: Bearer clrf_your_key"

Returns the project details including its document count (document_count).


Update a Project

bash
curl -X PATCH https://my.clarife.app/api/v1/projects/p1a2b3c4-... \
  -H "Authorization: Bearer clrf_your_key" \
  -H "Content-Type: application/json" \
  -d '{ "name": "New Name" }'

Delete a Project

bash
curl -X DELETE https://my.clarife.app/api/v1/projects/p1a2b3c4-... \
  -H "Authorization: Bearer clrf_your_key"

⚠️ Warning: Deleting a project does not delete its documents - only the link between them is removed.


Move a Project

Move a project into a different folder (or to the root level by passing null):

bash
curl -X POST https://my.clarife.app/api/v1/projects/p1a2b3c4-.../move \
  -H "Authorization: Bearer clrf_your_key" \
  -H "Content-Type: application/json" \
  -d '{ "folder_id": "f2b3c4d5-..." }'

List Folders

bash
curl "https://my.clarife.app/api/v1/folders?entity_type=project" \
  -H "Authorization: Bearer clrf_your_key"

Create a Folder

bash
curl -X POST https://my.clarife.app/api/v1/folders \
  -H "Authorization: Bearer clrf_your_key" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Q2 Documentation", "entity_type": "project" }'
FieldTypeRequiredDescription
namestringYesFolder name (1-200 chars)
entity_typestringYesproject or branding
parent_iduuidNoParent folder (max 3 levels)
colorstringNoHex color, e.g. #6366F1 (default #6b7280)

Update a Folder

bash
curl -X PATCH https://my.clarife.app/api/v1/folders/f1a2b3c4-... \
  -H "Authorization: Bearer clrf_your_key" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Renamed Folder" }'

Delete a Folder

bash
curl -X DELETE https://my.clarife.app/api/v1/folders/f1a2b3c4-... \
  -H "Authorization: Bearer clrf_your_key"

⚠️ Warning: Deleting a folder also deletes its subfolders (cascade). Projects inside are not deleted - they only lose their folder assignment.