On this pageAgent Quickstart
Agent Quickstart
DocImprint ·
How do agents integrate with DocImprint?
Follow the Agent Quickstart at /docs/agents: get a Bearer API key, paste Claude Desktop (mcp-remote) or Cursor config for https://api.docimprint.com/mcp, call extract_text, then verify_bundle. Discovery: /.well-known/agent.json and /openapi.json.
First verified win with MCP in about five minutes: get a key, paste a host config, run one tool, verify the bundle.
Get an API key
MCP requires a Bearer API key. Free credits are enough for this walkthrough.
Add DocImprint to your agent host
Replace dr_live_YOUR_KEY with your key. Claude Desktop needs the mcp-remote bridge; Cursor can use a remote URL + headers.
{
"mcpServers": {
"docimprint": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.docimprint.com/mcp",
"--header",
"Authorization:${DOCIMPRINT_AUTH}"
],
"env": {
"DOCIMPRINT_AUTH": "Bearer dr_live_YOUR_KEY"
}
}
}
}{
"mcpServers": {
"docimprint": {
"url": "https://api.docimprint.com/mcp",
"headers": {
"Authorization": "Bearer dr_live_YOUR_KEY"
}
}
}
}Save the config, fully quit and reopen the host, then confirm a docimprint server appears with tools loaded. Endpoint: https://api.docimprint.com/mcp
First win — extract a document
Ask your agent to call extract_text on the sample PDF:
Use the DocImprint extract_text tool on https://bitcoin.org/bitcoin.pdf.
Return the bundle_id and manifest_sha256 from the result.Sample source: https://bitcoin.org/bitcoin.pdf
You should see an envelope with at least:
{
"bundle_id": "ev_3f8a1c2d-7e4b-4a9f-b2c1-d5e6f7a8b9c0",
"manifest_sha256": "a3f8c2d1e4b76f9c0d2e5a8b1c4f7e2d9a6b3c8f1e4d7a0b2c5f8e1d4a7b0c3",
"text": "…"
}Verify the evidence
Prove the agent read a signed bundle — via MCP or REST. Bundle tools return a receipt field (rcpt_…); verify it with verify_action_receipt or GET /v1/extract/receipts/{id}/verify.
Use verify_bundle with bundle_id ev_3f8a1c2d-7e4b-4a9f-b2c1-d5e6f7a8b9c0
and confirm the evidence signature is valid.# Replace bundle_id with the value from your extract response
curl https://api.docimprint.com/v1/extract/ev_3f8a1c2d-7e4b-4a9f-b2c1-d5e6f7a8b9c0/verify \
-H "Authorization: Bearer dr_live_..."
# Quick status-only check:
# curl "https://api.docimprint.com/v1/extract/ev_3f8a1c2d-7e4b-4a9f-b2c1-d5e6f7a8b9c0/verify?quick=true" \
# -H "Authorization: Bearer dr_live_..."What's next
Full MCP tool catalog (21 tools). Protocol notes on the MCP pillar page.
Document
extract_textPDF or image → raw text via OCRextract_tablesPDF or image → Markdown tablesparse_invoiceInvoice/receipt → merchant, line items, totalscheck_claimsDocument + claims[] → supported / contradicted / not_foundextract_structuredDocument + JSON schema → typed fields with citationssummarize_documentDocument → summary + key_points[]
URL
extract_urlHTTPS URL → page textsummarize_urlHTTPS URL → summary + key_points[]qa_urlHTTPS URL + question → cited answertranslate_urlHTTPS URL + target language → translated text
Bundle
verify_bundlebundle_id → integrity check (returns receipt)get_bundlebundle_id → metadata + artifacts (returns receipt)notarize_bundleAnchor manifest hash on Base L2 (returns receipt)verify_action_receiptrcpt_… → signature + manifest binding check
Collections
create_collectionCreate a named document corpuslist_collectionsList collections you ownadd_document_to_collectionIndex a bundle into a collection (returns receipt)search_collectionSemantic search over indexed chunksask_collectionCross-document Q&A with citations
Ops
get_job_statusPoll async job by job_idget_quotaCredits used / remaining (free)
Also MCP prompts: claim_check_workflow, invoice_intake.
Discovery (no docs required)
GET /FreeHealth check plus links to agent.json, OpenAPI, and SKILL.md. No auth required.
Open live →GET /.well-known/agent.jsonFreeA2A discovery document: capabilities, auth, pricing, and endpoint URLs for agent orchestrators.
Open live →GET /.well-known/darkroom-keys.jsonFreeSame payload as GET /v1/keys — well-known path for clients that expect /.well-known/darkroom-keys.json.
Open live →GET /openapi.jsonFreeOpenAPI 3.1 schema for the full REST surface — use for codegen, SDKs, and HTTP agents.
Open live →GET /SKILL.mdFreePlain-text onboarding for LLMs: when to call which endpoint and how to pay.
Open live →
Agent card: /.well-known/agent.json · OpenAPI: /openapi.json
Also see: MCP pillar (product / SEO) · For agents (concepts) · REST Quickstart