Lead Magnet Builder API

Read your lead magnets, subscribers, campaigns, and inbox from a script, a CI job, or an agentic tool like Claude Code.

Every number this API returns is computed by the same code that renders your dashboard. If the API says 181 emails sent, your dashboard says 181 too. That is a design constraint, not a coincidence: the counting logic lives in one place and both surfaces call it.

Base URL

https://resources.ashwanth.dev/api/v1

Your first call

Create a key in Settings, Developers, then:

curl https://resources.ashwanth.dev/api/v1/me \
  -H "Authorization: Bearer lmb_live_YOUR_KEY"

If that returns your account, everything else will work.

What you can do

Read your dashboard KPIs and funnel. List and filter subscribers by score, temperature, tag, magnet, or search term. Read campaigns and their full metrics, including per-step A/B breakdowns. Get a reply roll-up across your unified inbox. Check AI spend, scheduled-job history, and the health of every sending inbox.

What you cannot do yet

Version 1 is read-only. Nothing you call can send an email, create a subscriber, or delete anything.

That is deliberate. Creating a subscriber triggers a real delivery email from your own connected inbox, so an API key that could do it would carry your domain reputation with it. Write access arrives as separate scopes, which means keys you issue today can never silently gain it.

Conventions

Every list endpoint accepts limit (1 to 200, default 50) and offset, and returns:

{ "data": [], "has_more": false, "next_offset": null }

Timestamps are ISO 8601 in UTC. Day-bucketed series are in IST (UTC+5:30), matching what your dashboard charts show.

The machine-readable spec

https://resources.ashwanth.dev/api/v1/openapi.json

Public, unauthenticated, and generated from the same source as these pages. Point a code generator, Postman, or an agent straight at it.