Welcome to DocBit AI Partner API
The DocBit AI Partner API allows you to integrate our AI-powered document Q&A capabilities directly into your application. Your users can ask questions about their documents and receive accurate, cited responses.What You Can Do
Chat
Send questions and receive AI-generated answers with citations
Upload Documents
Upload documents for your clients and users
Track Usage
Monitor API usage per client and user
Control Access
Use roles to control which documents users can access
How It Works
- You get an API key - One key per partner organization
- You identify your clients - Pass
X-External-Org-Idheader - You identify your users - Pass
X-External-User-Idheader - You pass their roles - Pass
X-External-Rolesheader - We handle the rest - Document isolation, access control, usage tracking
Key Features
Multi-Tenant Isolation
Each of your clients (organizations) has completely isolated document storage. Documents uploaded for “Acme Corp” are never visible to “Beta Inc”.Role-Based Access Control
Control which documents each user can access using roles. A user with the “hr” role only sees HR documents.Per-User Tracking
Track usage at the individual user level for billing, analytics, and audit purposes.Streaming Responses
Get real-time AI responses with Server-Sent Events for a responsive user experience.Next Steps
Quick Start
Make your first API call in 5 minutes
Authentication
Learn how API key authentication works