DokuBrain
Guides

Projects

Organize documents into projects for structured management and team collaboration.

Projects

A project is a workspace for organizing related documents. Use projects to group invoices by quarter, contracts by client, or any grouping that fits your workflow.

Creating a project

Create a project
curl -X POST https://api.dokubrain.com/api/v1/projects \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Q1 2026 Invoices",
    "description": "All vendor invoices for Q1 2026"
  }'

Listing projects

List all projects
curl https://api.dokubrain.com/api/v1/projects \
  -H "Authorization: Bearer YOUR_API_KEY"

Adding documents to a project

Upload documents directly to a project:

Upload to a specific project
curl -X POST https://api.dokubrain.com/api/v1/ingestion \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@invoice.pdf" \
  -F "project_id=proj_abc123"

Listing documents in a project

List documents in a project
curl "https://api.dokubrain.com/api/v1/documents?project_id=proj_abc123" \
  -H "Authorization: Bearer YOUR_API_KEY"

Corpus Query (RAG)

The Corpus Query feature lets you ask natural-language questions across all documents in your library — or scoped to specific projects. It uses RAG (Retrieval-Augmented Generation) to find relevant document chunks and generate AI-powered answers with source citations.

Ask a question across your documents
curl -X POST https://api.dokubrain.com/api/v1/corpus/query \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "question": "What is the total amount owed to Acme Corp?",
    "project_ids": ["proj_abc123"]
  }'

The response includes an AI-generated answer with source citations pointing to specific document chunks. See the Search & RAG guide for full details.

On this page