Document Intelligence API
AI-powered document analysis API. Upload documents, analyze them with custom prompts, and extract structured data.
Features
- Structured Extraction - Define a JSON Schema, get validated structured data back
- Document Analysis - Analyze documents with custom prompts
- Image Analysis - Claude Vision for receipts, charts, diagrams
- Multi-turn Chat - Have conversations about your documents
- Batch Processing - Process hundreds of documents efficiently
- Custom Agents - Define specialized AI agents
Quick Start
# 1. Upload a document
curl -X POST "https://api.getneji.com/api/files/upload?projectId=proj_xxx&filename=doc.pdf" \
-H "Authorization: Bearer sk_your_key" \
-H "Content-Type: application/pdf" \
--data-binary @document.pdf
# 2. Analyze it
curl -X POST "https://api.getneji.com/api/analyze" \
-H "Authorization: Bearer sk_your_key" \
-H "Content-Type: application/json" \
-d '{"projectId": "proj_xxx", "fileId": "file_xxx", "prompt": "Summarize this document"}'
Base URL
https://api.getneji.com
Authentication
All endpoints require authentication via API key in the Authorization header:
Authorization: Bearer <your-api-key>
Get your API key from the dashboard.
Response Format
All responses are JSON:
{
"success": true,
"data": {...}
}
Errors:
{
"error": "Error message"
}