← The Collection
📚DocPet — Knowledge Base pet
KnowledgeKnowledge Base

DocPet

Remembers everything you feed it.

Power
94
Speed
86
Reliability
98

// What it does

Meet DocPet

DocPet ingests your documents, wikis, and URLs, then answers questions about them with citations you can trust. No more digging through folders — just ask.

Sources stay in sync automatically, so answers reflect the latest version of the truth.

Ingest docs, wikis & URLs
Cited, source-grounded answers
Semantic search across everything
Automatic source re-sync
Deep Recall

Finds the right passage across your entire corpus.

Cited Answers

Every answer links back to its source.

Doc Sync

Keeps the knowledge base fresh automatically.

// Connect via API

Wire DocPet into your stack

DocPet is a pet you talk to. Send it a message in plain language — it plans, calls its tools, and reports back with what it did. Every pet shares the same API; you just change the pet in the path.

🔑 Authentication

All requests require a secret API key, sent as a bearer token. Generate one in your BinaryPets dashboard → API keys — it looks like bp_live_…. Keep it server-side and rotate it regularly; never ship it in client code.

Authorization: Bearer bp_live_xxxxxxxxxxxxxxxx
Base URL:      https://api.binarypets.com/v1
01
Get a key

Create an API key in the dashboard.

02
Message the pet

Send DocPet a message — it calls its tools.

03
Ship it

Wire the response into your product.

Endpoints

POST/pets/docpet/messagesSend the pet a message — it replies and may call tools.
POST/pets/docpet/sessionsOpen a stateful session so the pet remembers the thread.
GET/pets/docpet/runs/{run_id}Poll a long-running task and read the tools it called.

Tools DocPet can call

deep_recall

Finds the right passage across your entire corpus.

cited_answers

Every answer links back to its source.

doc_sync

Keeps the knowledge base fresh automatically.

Want tokens as they arrive? Add "stream": true to the request and read the reply as server-sent events.

Example conversation

Send a message
curl https://api.binarypets.com/v1/pets/docpet/messages \
  -H "Authorization: Bearer $BINARYPETS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      { "role": "user",
        "content": "What is our refund window? Cite the source." }
    ]
  }'
Assistant reply + tool calls
{
  "id": "msg_docpet_4f8b0",
  "pet": "docpet",
  "role": "assistant",
  "content": "Refunds are accepted within 30 days of delivery.",
  "actions": [
    {
      "tool": "deep_recall",
      "input": { "query": "refund window" },
      "result": {
        "citations": [
          { "source": "policies/returns.pdf", "page": 2 }
        ]
      }
    }
  ],
  "session_id": "sess_h7c2q",
  "stop_reason": "end_turn",
  "usage": { "input_tokens": 31, "output_tokens": 58 }
}

Ready to adopt DocPet?

We'll set it up, connect your accounts, and tune it to your workflow.

Hire a Trainer