TheWriter Retrieval API

Give your agents the context they need

Connect your unstructured data and give your agents accurate, cited answers from your knowledge base through API or MCP.

Free trial · No credit card required · Connect your first source in minutes

retrieval.sh
 curl -X POST https://api.thewriter.ai/v1/retrieval \
-H "Authorization: Bearer $WRITER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "Getting 401s after rotating our API key. How do I rotate keys without downtime?"}' | jq
{
  "answer": "Create the new key before revoking the old one. Keys activate immediately and
             both stay valid until you revoke the previous key, so there is no gap.",
  "citations": [
    { "source": "docs/authentication.md#rotation", "score": 0.94 },
    { "source": "support/ticket-4821",            "score": 0.88 }
  ],
  "latency_ms": 212
}
Every answer citedSource-level citations your users can follow back.
API or MCPDrop into any agent stack without rewriting it.
Any unstructured sourceDocs, wikis, tickets and files, as they already are.
Minutes to first queryConnect a source, get an API key, start retrieving.

Connect the knowledge you already have

  • Notion
  • Confluence
  • Google Drive
  • Slack
  • GitHub
  • Zendesk
  • PDFs
  • Markdown
  • Web pages
Built for your data

Make your unstructured knowledge useful to AI agents

Your knowledge already exists. It is just scattered across tools that were never built for retrieval.

01

Connect everything

Bring together docs, wikis, tickets, and files without forcing your team to restructure how they work.

02

Retrieve with confidence

Give every answer the relevant context it needs, with precise citations back to the source.

03

Ship through API or MCP

Meet your agents where they are with a retrieval layer that works across your entire stack.

Pricing

Start free, scale when you are ready

Evaluate retrieval against your own knowledge base today. Talk to us when you are putting agents in front of customers.

Free trial

Free500 retrieval queries included

Everything you need to evaluate retrieval with your own knowledge base.

  • 500 retrieval queries
  • Connect your knowledge base
  • API access
  • Cited answers
  • Developer documentation
Start free trial

Contact sales

Let's talkUsage-based, priced to your volume

Scale accurate retrieval across every agent, team, and workflow.

  • Unlimited knowledge sources
  • API and MCP access
  • Advanced permissions
  • Source-level citations
  • Dedicated support
Contact sales

See full pricing and FAQ, or get in touch about volume and security.

Start with the context

Everything you need to give your agents accurate retrieval, ready in minutes

Try it free