Keep the source in reach.
Search results carry document and page citations. Open the source to check the passage behind an answer.
Read the docsDocument ingestion for developers
Turn files into searchable content and cited answers. One integration for ingestion, extraction, and retrieval.
REST API TypeScript SDK Streaming chat
curl "https://docslurp.io/v1/ingest/bulk" \
-H "Authorization: Bearer $DOCSLURP_API_KEY" \
-F "[email protected]"Returns a workspace, a run, and your documents. Processing continues asynchronously.
Add your API key to get started. Setup guide
Built for more than PDFs.
A small API. A complete workflow.
Keep the ingestion plumbing out of your application. Upload, wait for processing, then query the workspace.
Let the upload create a workspace, or pass a workspace ID to add to an existing corpus.
Processing happens in the background. The SDK polls until completion and surfaces failures.
Get relevant passages with citations. Use them in search, RAG, or your own agent workflow.
import { createDocSlurpClient } from '@docslurp/sdk';
import { createReadStream } from 'node:fs';
const client = createDocSlurpClient();
// Upload a file.
const { workspace, run } = await client.upload(createReadStream('handbook.pdf'));
// Processing is asynchronous. Wait before searching.
await client.waitForRun(run.id);
const { results } = await client.search({
workspaceId: workspace.id,
q: 'What is the parental leave policy?',
});
for (const hit of results) {
console.log(hit.text, hit.citation);
}Server-side example · Set DOCSLURP_API_KEY once; the client reads it automatically.
Built to be inspected
Know where an answer came from, control how documents are processed, and see what each run consumed.
Search results carry document and page citations. Open the source to check the passage behind an answer.
Read the docsChoose extraction, indexing, and enrichment settings for each corpus. Add structured output when your application needs a schema.
Read the docsUse the REST API, TypeScript client, or OpenAI-compatible chat endpoint. Stream answers into your UI, with a non-streaming option.
Read the docsInspect run progress, stage timing, token usage, and recorded costs. Follow a file from upload through extraction and indexing.
Read the docsBuild on your own documents
Try a file in the dashboard, or go straight to the API.