API Reference
Every request is validated against the schemas below — the examples are generated from the same definitions, so they cannot drift. Failed calls are refunded; an empty balance returns 402 INSUFFICIENT_CREDITS. Machine-readable spec: GET /api/openapi.
/v1/search1–10 creditsQuery 9+ engines with filters, freshness, and localization. Cached hits cost 1 credit.
API key or session
curl -X POST http://localhost:3000/v1/search \
-H "Authorization: Bearer $JIRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"q":"q"}'/v1/graph/plan1 creditsDry run. Returns the validated graph, a cost estimate, the rationale for the shape chosen, and alternatives — without touching the network, so a run can be sized before it is paid for.
API key or session
curl http://localhost:3000/v1/graph/plan -H "Authorization: Bearer $JIRO_API_KEY"
/v1/graph/search10 creditsExecutes the graph and returns the run plus its evidence packet. Every claim in packet.claims carries the source_ids it rests on, so an answer can be traced back to the pages behind it. Branches that failed are reported in gaps[] with the node, query and reason. Refunded when the engine is unreachable.
API key or session
curl http://localhost:3000/v1/graph/search -H "Authorization: Bearer $JIRO_API_KEY"
/v1/scrape2 creditsExtract a page as markdown, html, text, json, or links.
API key or session
curl -X POST http://localhost:3000/v1/scrape \
-H "Authorization: Bearer $JIRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/article"}'/v1/ai/search8 creditsAn answer grounded in live results, with SSE streaming on /api/search/stream.
API key or session
curl -X POST http://localhost:3000/v1/ai/search \
-H "Authorization: Bearer $JIRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"q":"q"}'/v1/ai/synthesize6 creditsSummaries and reports from context text, a question, or source URLs.
API key or session
curl -X POST http://localhost:3000/v1/ai/synthesize \
-H "Authorization: Bearer $JIRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"q":"q","context":"context","sources":["https://example.com/article"],"format":"summary"}'/v1/agent15 creditsMulti-step agent task with cited sources. Served by the backend at /v1/ai/agent.
API key or session
curl -X POST http://localhost:3000/v1/agent \
-H "Authorization: Bearer $JIRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"q":"q"}'/v1/search/batch12 creditsUp to 10 queries × 5 engines, RRF-merged. Fully refunded when every engine fails.
API key or session
curl -X POST http://localhost:3000/v1/search/batch \
-H "Authorization: Bearer $JIRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"queries":["queries"]}'/v1/social/{platform}/{action}4–10 creditsSearch, scrape, or monitor across 12 platforms. Per-platform costs are admin-configurable.
API key or session
curl -X POST http://localhost:3000/v1/social/reddit/search \
-H "Authorization: Bearer $JIRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"platform":"platform","action":"search"}'/v1/credits0 creditsRemaining credits for the calling API key. Free.
API key
curl http://localhost:3000/v1/credits -H "Authorization: Bearer $JIRO_API_KEY"
/api/keys0 creditsIssue a jsk_live_* key for the signed-in account.
Session
curl -X POST http://localhost:3000/api/keys \
-H "Cookie: __session=$SESSION" \
-H "Content-Type: application/json" \
-d '{"name":"name"}'/api/credits/balance0 creditsRemaining credits for the signed-in account. Free.
Session
curl http://localhost:3000/api/credits/balance -H "Cookie: __session=$SESSION"
/api/mcp0–15 creditsJSON-RPC 2.0 for AI agents: 18 tools on Cloud (22 self-hosted), docs resources, and task prompts. Billed per tool.
API key
curl http://localhost:3000/api/mcp -H "Authorization: Bearer $JIRO_API_KEY"