
DocPet
Remembers everything you feed it.
// 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.
Finds the right passage across your entire corpus.
Every answer links back to its source.
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.
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/v1Create an API key in the dashboard.
Send DocPet a message — it calls its tools.
Wire the response into your product.
Endpoints
/pets/docpet/messagesSend the pet a message — it replies and may call tools./pets/docpet/sessionsOpen a stateful session so the pet remembers the thread./pets/docpet/runs/{run_id}Poll a long-running task and read the tools it called.Tools DocPet can call
deep_recallFinds the right passage across your entire corpus.
cited_answersEvery answer links back to its source.
doc_syncKeeps 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
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." }
]
}'{
"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