Projects

Projects organize your documents and analysis sessions.

Create Project

POST /api/projects

Request Body

FieldTypeRequiredDescription
namestringYesName of the project
systemPromptstringNoDefault AI personality

Example

curl -X POST "https://api.getneji.com/api/projects" \
  -H "Authorization: Bearer sk_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Financial Reports Q4",
    "systemPrompt": "You are a financial analyst expert."
  }'

Response

{
  "success": true,
  "projectId": "proj_abc123",
  "name": "Financial Reports Q4",
  "path": "/vault/key_xyz/proj_abc123"
}

List Projects

GET /api/projects

Response

{
  "success": true,
  "projects": [
    {
      "projectId": "proj_abc123",
      "name": "Financial Reports Q4",
      "systemPrompt": "You are a financial analyst...",
      "createdAt": 1699999999999
    }
  ]
}

Get Project Details

GET /api/projects/:projectId

Update Project

PATCH /api/projects/:projectId

Request Body

FieldTypeRequiredDescription
systemPromptstringYesNew system prompt (or null to clear)

Delete Project

DELETE /api/projects/:projectId

⚠️ Warning: This permanently deletes the project, all files, and all sessions.