Getting started
Documentation
Start here
Pick the way in that fits how you like to work.
- QuickstartAdd a site, copy its key and send a first lead, in a few minutes.
- How 1DB worksThe pieces, and what happens to every lead, before you write any code.
- Let Claude Code set it upSign in once from the terminal, then ask the agent to connect a site.
- Find your frameworkStatic HTML, React, Next.js, Workers or any backend.
What 1DB is
One database and one endpoint for every website you run. A site’s forms post each submission to 1DB, which checks it, stores it with its campaign, links it to a contact and company, and sends it on. Each site also shows its domain, hosting, DNS, repository and traffic, so you can see which ones need attention. More on how it works.
Step 1
Your sites
Any framework, any host. Each site has its own key and forms.
Step 2
One endpoint
Every form posts to POST /v1/leads, or uses the hosted form script.
Step 3
Checked and stored
Fields checked, repeats dropped, campaign kept, contact and company linked.
Step 4
Sent on
Email alerts and webhooks per form, partner APIs for the organization.
One request
Every integration comes down to this. The key and form slug are on your website’s Integrate tab.
curl https://gallant-goshawk-513.convex.site/v1/leads \
-H "Content-Type: application/json" \
-H "X-API-Key: 1db_YOUR_KEY" \
-d '{"formSlug":"acme-contact","email":"jane@acme.com","message":"Hello"}'AI agents can read /llms.txt first.
All docs
Getting started
Building blocks
Guides
- HTML formsCapture leads from any static site or plain HTML page.
- ReactTyped form flows with React and a server route.
- Next.jsApp Router route handlers and server actions.
- WebhooksPost each lead to your own endpoint.
- Lead forwardingSend leads to an API with profiles, templates and defaults.
- AI agents, MCP and CLILet Claude Code add websites and send leads for you.