API v1
Build licensed research into your agent.
One JSON API for catalog search, controlled document purchases, URL resolution, and auditable receipts.
Quick start
Create an API key in the dashboard, fund your credits balance, then make a free search request.
curl "https://your-ledgerly-host/v1/search?q=HBM&limit=5" \ -H "Authorization: Bearer lgr_live_..."
Authentication
Send your key as a bearer credential on every request. Keys can have a maximum price per purchase and a monthly cap. The service allows 60 requests per minute per key.
Endpoints
/v1/searchSearch listed research. Free.
/v1/articles/:idReturn owned content or a 402 purchase response.
/v1/articles/:id/purchasePurchase once; repeat calls are idempotent.
/v1/walletReturn balance and recent transactions.
/v1/fetchResolve a listed URL or retrieve a public page.
Purchasing and errors
Reading an unowned document returns HTTP 402 with everything an agent needs to decide: price, current balance, purchase URL, and a plain-language message. Budget failures name the exact limit. A repeated purchase returns the original receipt and content without a second charge.
{
"price_usd": 15,
"balance_usd": 125,
"purchase_url": "/v1/articles/.../purchase",
"message": "Purchase this document to receive the full licensed content."
}MCP tools
search_contentFree catalog search
get_articleAutomatic purchase within limits
fetch_urlCatalog-first URL resolution
get_walletBalance and recent activity