Skip to main content

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

  1. You get an API key - One key per partner organization
  2. You identify your clients - Pass X-External-Org-Id header
  3. You identify your users - Pass X-External-User-Id header
  4. You pass their roles - Pass X-External-Roles header
  5. 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