Dashboard
DocsAPI ReferenceProjects API

Projects API

CRUD operations for managing projects. All endpoints require authentication.

GET/api/projects
List all projects for the authenticated user.

Response

json
[
  {
    "id": "uuid",
    "name": "My Research Project",
    "user_id": "clerk_user_id",
    "created_at": "2025-01-01T00:00:00Z"
  }
]
POST/api/projects
Create a new project.

Request Body

ParameterTypeDescription
name requiredstringName for the new project

Response

json
{
  "id": "uuid",
  "name": "My New Project",
  "user_id": "clerk_user_id",
  "created_at": "2025-01-01T00:00:00Z"
}
DELETE/api/projects/{project_id}
Delete a project and all associated data (documents, chunks, chats, messages).

Path Parameters

ParameterTypeDescription
project_id requireduuidID of the project to delete

Response

Returns 204 No Content on success.

GET/api/projects/{project_id}/settings
Get the RAG settings for a project.

Response

json
{
  "rag_strategy": "basic",
  "agent_type": "simple",
  "embedding_model": "text-embedding-3-large",
  "num_chunks": 5,
  "final_context_size": 5,
  "similarity_threshold": 0.3,
  "use_reranking": false,
  "multi_query_count": 3,
  "vector_weight": 0.7,
  "keyword_weight": 0.3
}
PUT/api/projects/{project_id}/settings
Update RAG settings for a project.

Request Body

ParameterTypeDescription
rag_strategystringOne of: basic, hybrid, multi_query_vector, multi_query_hybrid
agent_typestringOne of: simple, agentic
num_chunksintegerNumber of chunks to retrieve (1–20)
similarity_thresholdfloatMinimum similarity score (0.0–1.0)
use_rerankingbooleanEnable/disable cross-encoder reranking
Was this page helpful?