The D50 REST API
One HTTPS + JSON API over the whole platform — find customers, run the CRM, place AI calls, generate content, screen candidates. The same 100+ capabilities as the MCP server, addressable from any language or backend.
Authentication
Create an API key at app.d50.ai → Settings → API keys and send it as a bearer token on every request:
Authorization: Bearer d50_live_…
Keys can be scoped to a named set of tools and given an expiry. They're stored only as a hash — copy the key when it's created. Every call is billed to the account's unified credit wallet (1 credit = $1), the same rate whether a human or an agent makes it.
Quickstart
Search the 300M+ business-contact network and reveal the top result's contact:
# 1) search
curl https://app.d50.ai/api/v1/leads/search \
-H "Authorization: Bearer d50_live_…" \
-H "Content-Type: application/json" \
-d '{"industry":"saas","country":"AE","limit":25}'
# 2) reveal a contact (bills 0.30 credits)
curl https://app.d50.ai/api/v1/leads/reveal \
-H "Authorization: Bearer d50_live_…" \
-d '{"leadId":"lead_…"}'
Endpoint surface
Endpoints are grouped by mission. Each maps 1:1 to the equivalent MCP tool.
| Area | What you can do |
|---|---|
| Leads | Search the 300M+ contact network, filter, reveal contacts, enrich (basic/standard/premium) |
| CRM | Contacts, companies, deals, pipelines, notes, activities, stats |
| Outreach | Email, SMS, WhatsApp, AI phone calls, web calls, call status |
| Content | Scripts, captions, images, AI video, logos, static ads, ad copy, render |
| Funnels | Build/edit/publish funnels & pages, clone a landing page, analytics |
| Recruiting | Candidates, AI screening calls, AI interviews, pipeline stages |
| SEO & Intel | Keyword volume, backlinks, LLM-mention sweeps, competitor & ad intel |
| Agents | Create, deploy, list, monitor, and stop AI agents |
| Account | Credit balance & history, analytics, invoices |
tools/list — no per-endpoint wiring.Rate limits
| Plan | Rate limit | Included |
|---|---|---|
| Free | — | API access on paid plans |
| Pro · $99/mo | 300 req/min | All tools, $30 credits/mo |
| Agency · $299/mo | 1,000 req/min | All tools, white-label, $100 credits/mo |
Errors
Standard HTTP status codes with a JSON body: 400 bad request, 401 invalid/expired key, 402 insufficient credits, 403 tool not in key scope, 429 rate limited, 5xx server error. Each error returns { "error": { "code", "message" } }.
Ready to build? Create an API key — or wire an agent up through the MCP server.