@nordsym/apiclaw 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/ISSUE_TEMPLATE/add-api.yml +123 -0
- package/BRIEFING.md +30 -0
- package/CONCEPT.md +494 -0
- package/README.md +272 -0
- package/backend/convex/README.md +90 -0
- package/backend/convex/_generated/api.d.ts +55 -0
- package/backend/convex/_generated/api.js +23 -0
- package/backend/convex/_generated/dataModel.d.ts +60 -0
- package/backend/convex/_generated/server.d.ts +143 -0
- package/backend/convex/_generated/server.js +93 -0
- package/backend/convex/apiKeys.ts +75 -0
- package/backend/convex/purchases.ts +74 -0
- package/backend/convex/schema.ts +45 -0
- package/backend/convex/transactions.ts +57 -0
- package/backend/convex/tsconfig.json +25 -0
- package/backend/convex/users.ts +94 -0
- package/backend/package-lock.json +521 -0
- package/backend/package.json +15 -0
- package/dist/credits.d.ts +54 -0
- package/dist/credits.d.ts.map +1 -0
- package/dist/credits.js +209 -0
- package/dist/credits.js.map +1 -0
- package/dist/discovery.d.ts +37 -0
- package/dist/discovery.d.ts.map +1 -0
- package/dist/discovery.js +109 -0
- package/dist/discovery.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +355 -0
- package/dist/index.js.map +1 -0
- package/dist/registry/apis.json +20894 -0
- package/dist/registry/parse_apis.py +146 -0
- package/dist/revenuecat.d.ts +61 -0
- package/dist/revenuecat.d.ts.map +1 -0
- package/dist/revenuecat.js +166 -0
- package/dist/revenuecat.js.map +1 -0
- package/dist/test.d.ts +6 -0
- package/dist/test.d.ts.map +1 -0
- package/dist/test.js +81 -0
- package/dist/test.js.map +1 -0
- package/dist/types.d.ts +96 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/dist/webhooks/revenuecat.d.ts +48 -0
- package/dist/webhooks/revenuecat.d.ts.map +1 -0
- package/dist/webhooks/revenuecat.js +119 -0
- package/dist/webhooks/revenuecat.js.map +1 -0
- package/docs/revenuecat-setup.md +89 -0
- package/landing/next-env.d.ts +5 -0
- package/landing/next.config.mjs +6 -0
- package/landing/package-lock.json +1666 -0
- package/landing/package.json +27 -0
- package/landing/postcss.config.js +6 -0
- package/landing/src/app/api/keys/route.ts +71 -0
- package/landing/src/app/api/log/route.ts +37 -0
- package/landing/src/app/api/stats/route.ts +37 -0
- package/landing/src/app/globals.css +261 -0
- package/landing/src/app/layout.tsx +37 -0
- package/landing/src/app/page.tsx +753 -0
- package/landing/src/app/page.tsx.bak +567 -0
- package/landing/src/components/AddKeyModal.tsx +159 -0
- package/landing/tailwind.config.ts +34 -0
- package/landing/tsconfig.json +20 -0
- package/newsletter-template.html +71 -0
- package/outreach/OUTREACH-SYSTEM.md +211 -0
- package/outreach/email-template.html +179 -0
- package/outreach/targets.md +133 -0
- package/package.json +39 -0
- package/src/credits.ts +261 -0
- package/src/discovery.ts +147 -0
- package/src/index.ts +396 -0
- package/src/registry/apis.json +20894 -0
- package/src/registry/parse_apis.py +146 -0
- package/src/revenuecat.ts +239 -0
- package/src/test.ts +97 -0
- package/src/types.ts +110 -0
- package/src/webhooks/revenuecat.ts +187 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
name: "🦞 Add Your API"
|
|
2
|
+
description: Submit your API to the APIClaw marketplace
|
|
3
|
+
title: "[API] "
|
|
4
|
+
labels: ["api-submission", "triage"]
|
|
5
|
+
body:
|
|
6
|
+
- type: markdown
|
|
7
|
+
attributes:
|
|
8
|
+
value: |
|
|
9
|
+
Thanks for submitting your API to APIClaw! 🦞
|
|
10
|
+
|
|
11
|
+
We'll review your submission and get back to you within a few days.
|
|
12
|
+
|
|
13
|
+
- type: input
|
|
14
|
+
id: api_name
|
|
15
|
+
attributes:
|
|
16
|
+
label: API Name
|
|
17
|
+
description: The name of your API
|
|
18
|
+
placeholder: "e.g., Acme Email API"
|
|
19
|
+
validations:
|
|
20
|
+
required: true
|
|
21
|
+
|
|
22
|
+
- type: input
|
|
23
|
+
id: api_url
|
|
24
|
+
attributes:
|
|
25
|
+
label: API URL
|
|
26
|
+
description: Link to your API documentation or homepage
|
|
27
|
+
placeholder: "https://api.example.com"
|
|
28
|
+
validations:
|
|
29
|
+
required: true
|
|
30
|
+
|
|
31
|
+
- type: textarea
|
|
32
|
+
id: description
|
|
33
|
+
attributes:
|
|
34
|
+
label: Description
|
|
35
|
+
description: What does your API do? (2-3 sentences)
|
|
36
|
+
placeholder: "Our API enables developers to..."
|
|
37
|
+
validations:
|
|
38
|
+
required: true
|
|
39
|
+
|
|
40
|
+
- type: dropdown
|
|
41
|
+
id: category
|
|
42
|
+
attributes:
|
|
43
|
+
label: Category
|
|
44
|
+
description: Primary category for your API
|
|
45
|
+
options:
|
|
46
|
+
- SMS/Messaging
|
|
47
|
+
- Email
|
|
48
|
+
- Search
|
|
49
|
+
- LLM/AI
|
|
50
|
+
- TTS/Voice
|
|
51
|
+
- Payments
|
|
52
|
+
- Storage
|
|
53
|
+
- Auth/Identity
|
|
54
|
+
- Analytics
|
|
55
|
+
- Other
|
|
56
|
+
validations:
|
|
57
|
+
required: true
|
|
58
|
+
|
|
59
|
+
- type: dropdown
|
|
60
|
+
id: auth_type
|
|
61
|
+
attributes:
|
|
62
|
+
label: Authentication Type
|
|
63
|
+
description: How do users authenticate?
|
|
64
|
+
options:
|
|
65
|
+
- API Key
|
|
66
|
+
- OAuth 2.0
|
|
67
|
+
- Bearer Token
|
|
68
|
+
- Basic Auth
|
|
69
|
+
- No Auth
|
|
70
|
+
- Other
|
|
71
|
+
validations:
|
|
72
|
+
required: true
|
|
73
|
+
|
|
74
|
+
- type: dropdown
|
|
75
|
+
id: pricing
|
|
76
|
+
attributes:
|
|
77
|
+
label: Pricing Model
|
|
78
|
+
description: How is your API priced?
|
|
79
|
+
options:
|
|
80
|
+
- Free
|
|
81
|
+
- Freemium
|
|
82
|
+
- Pay-as-you-go
|
|
83
|
+
- Subscription
|
|
84
|
+
- Enterprise only
|
|
85
|
+
validations:
|
|
86
|
+
required: true
|
|
87
|
+
|
|
88
|
+
- type: input
|
|
89
|
+
id: regions
|
|
90
|
+
attributes:
|
|
91
|
+
label: Supported Regions
|
|
92
|
+
description: Where is your API available?
|
|
93
|
+
placeholder: "Global, EU, US, etc."
|
|
94
|
+
validations:
|
|
95
|
+
required: false
|
|
96
|
+
|
|
97
|
+
- type: textarea
|
|
98
|
+
id: additional
|
|
99
|
+
attributes:
|
|
100
|
+
label: Additional Information
|
|
101
|
+
description: Anything else we should know?
|
|
102
|
+
placeholder: "Rate limits, compliance certifications, special features..."
|
|
103
|
+
validations:
|
|
104
|
+
required: false
|
|
105
|
+
|
|
106
|
+
- type: input
|
|
107
|
+
id: contact
|
|
108
|
+
attributes:
|
|
109
|
+
label: Contact Email
|
|
110
|
+
description: Email for follow-up questions
|
|
111
|
+
placeholder: "api-team@example.com"
|
|
112
|
+
validations:
|
|
113
|
+
required: true
|
|
114
|
+
|
|
115
|
+
- type: checkboxes
|
|
116
|
+
id: terms
|
|
117
|
+
attributes:
|
|
118
|
+
label: Confirmation
|
|
119
|
+
options:
|
|
120
|
+
- label: I confirm this API has public documentation
|
|
121
|
+
required: true
|
|
122
|
+
- label: I am authorized to submit this API on behalf of the provider
|
|
123
|
+
required: true
|
package/BRIEFING.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# APIClaw — Symbot Briefing
|
|
2
|
+
|
|
3
|
+
**Vad det är:** Agent-native API discovery & purchasing via MCP
|
|
4
|
+
**Status:** AKTIVT BYGGE — feedback välkommet
|
|
5
|
+
|
|
6
|
+
## Länkar
|
|
7
|
+
- **Landing:** https://landing-peach-delta.vercel.app
|
|
8
|
+
- **GitHub:** https://github.com/nordsym/apiclaw
|
|
9
|
+
- **Stripe Pro ($99/mo):** https://buy.stripe.com/fZu3cx3W48uC0mo1CMcMM0g
|
|
10
|
+
- **Convex Backend:** https://blessed-chicken-640.convex.cloud
|
|
11
|
+
|
|
12
|
+
## Vad det gör
|
|
13
|
+
1. Agenter frågar "I need SMS API"
|
|
14
|
+
2. APIClaw returnerar rankade alternativ med pricing
|
|
15
|
+
3. Agent köper access → får credentials direkt
|
|
16
|
+
4. Ingen dashboard, ingen signup
|
|
17
|
+
|
|
18
|
+
## Stats
|
|
19
|
+
- 1,400+ APIs i registret
|
|
20
|
+
- 51 kategorier
|
|
21
|
+
- Free (5% fee) / Pro $99/mo (2% fee)
|
|
22
|
+
- USDC on Base (Coinbase Agent Wallet)
|
|
23
|
+
|
|
24
|
+
## Om någon frågar
|
|
25
|
+
- Välkomna feedback!
|
|
26
|
+
- Logga deras intresse/frågor
|
|
27
|
+
- Erbjud att visa demo eller förklara mer
|
|
28
|
+
- Om de vill lista sin API → github.com/nordsym/apiclaw/issues/new?template=add-api.yml
|
|
29
|
+
|
|
30
|
+
## Del av OpenClaw-universumet 🦞
|
package/CONCEPT.md
ADDED
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
# Agent-Native API Discovery Platform
|
|
2
|
+
|
|
3
|
+
**Vision:** The place where AI agents discover, evaluate, and purchase API access directly. No dashboard. No manual signup. Apps are dead. API-first. Agent-native.
|
|
4
|
+
|
|
5
|
+
**Research Date:** 2026-02-16
|
|
6
|
+
**Status:** Concept Phase
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Executive Summary
|
|
11
|
+
|
|
12
|
+
| Aspect | Finding |
|
|
13
|
+
|--------|---------|
|
|
14
|
+
| **Market Gap** | 🔴 Critical — No unified discover+purchase flow for agents |
|
|
15
|
+
| **Timing** | 🟢 Perfect — MCP exploding, agent payments just launching |
|
|
16
|
+
| **Competition** | 🟡 Emerging — Fragmented, no clear leader |
|
|
17
|
+
| **Technical Feasibility** | 🟢 High — MCP + Stripe Agent Toolkit + Crossmint exist |
|
|
18
|
+
| **Revenue Potential** | 🟢 High — Every agent transaction = fee opportunity |
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Part 1: Competitive Landscape Analysis
|
|
23
|
+
|
|
24
|
+
### 1.1 RapidAPI (Marketplace)
|
|
25
|
+
|
|
26
|
+
**What they do:**
|
|
27
|
+
- World's largest API marketplace (~50,000+ APIs)
|
|
28
|
+
- Unified billing and key management
|
|
29
|
+
- Discovery via search + categories
|
|
30
|
+
|
|
31
|
+
**Strengths:**
|
|
32
|
+
- ✅ Massive catalog
|
|
33
|
+
- ✅ One subscription, many APIs
|
|
34
|
+
- ✅ API testing in browser
|
|
35
|
+
|
|
36
|
+
**Gaps for Agent-Native:**
|
|
37
|
+
- ❌ **Human-centric UI** — Requires dashboard navigation
|
|
38
|
+
- ❌ **Manual signup** — Email verification, plan selection
|
|
39
|
+
- ❌ **No programmatic purchase** — Agent can't buy access autonomously
|
|
40
|
+
- ❌ **No semantic discovery** — Search is keyword-based, not intent-based
|
|
41
|
+
|
|
42
|
+
**Verdict:** Built for developers, not agents. The dashboard IS the product.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
### 1.2 Merge.dev (Unified API)
|
|
47
|
+
|
|
48
|
+
**What they do:**
|
|
49
|
+
- Single API for multiple integrations (HRIS, ATS, CRM, etc.)
|
|
50
|
+
- 220+ integrations across categories
|
|
51
|
+
- OAuth flows for customer auth
|
|
52
|
+
|
|
53
|
+
**Strengths:**
|
|
54
|
+
- ✅ Unified schema across providers
|
|
55
|
+
- ✅ One integration = many connections
|
|
56
|
+
- ✅ Real-time sync
|
|
57
|
+
|
|
58
|
+
**Gaps for Agent-Native:**
|
|
59
|
+
- ❌ **B2B SaaS focus** — Not general-purpose APIs
|
|
60
|
+
- ❌ **Customer-facing** — Designed for apps to offer integrations, not agents
|
|
61
|
+
- ❌ **No discovery layer** — You must know what you want
|
|
62
|
+
- ❌ **Enterprise sales cycle** — Not self-serve for agents
|
|
63
|
+
|
|
64
|
+
**Verdict:** Solves integration hell for SaaS companies, not API discovery for agents.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
### 1.3 Zapier MCP
|
|
69
|
+
|
|
70
|
+
**What they do:**
|
|
71
|
+
- 8,000+ app connections via MCP
|
|
72
|
+
- 30,000+ actions available
|
|
73
|
+
- Bridge between LLMs and services
|
|
74
|
+
|
|
75
|
+
**Strengths:**
|
|
76
|
+
- ✅ Massive action library
|
|
77
|
+
- ✅ MCP-native (AI-first)
|
|
78
|
+
- ✅ Already integrated with Claude, Cursor, etc.
|
|
79
|
+
|
|
80
|
+
**Gaps for Agent-Native:**
|
|
81
|
+
- ❌ **Workflow focus** — Actions, not raw API access
|
|
82
|
+
- ❌ **Pricing opacity** — 2 tasks per MCP call, complex billing
|
|
83
|
+
- ❌ **No API marketplace** — You get Zapier's curated actions, not raw APIs
|
|
84
|
+
- ❌ **Slow innovation** — AI API still in beta after 1+ year
|
|
85
|
+
|
|
86
|
+
**Verdict:** Powerful for workflows, not for raw API consumption.
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
### 1.4 MCP Directories (mcp.so, mcpmarket.com, mcpservers.org)
|
|
91
|
+
|
|
92
|
+
**What they do:**
|
|
93
|
+
- Community-driven MCP server catalogs
|
|
94
|
+
- Discovery via search + categories
|
|
95
|
+
- Installation instructions
|
|
96
|
+
|
|
97
|
+
**Strengths:**
|
|
98
|
+
- ✅ Growing rapidly (17+ registries exist)
|
|
99
|
+
- ✅ Open-source focus
|
|
100
|
+
- ✅ Easy discovery
|
|
101
|
+
|
|
102
|
+
**Gaps for Agent-Native:**
|
|
103
|
+
- ❌ **Human browsing required** — Not programmatic discovery
|
|
104
|
+
- ❌ **No purchasing** — Just links to repos
|
|
105
|
+
- ❌ **No quality ranking** — Curation is manual
|
|
106
|
+
- ❌ **No billing** — Self-host or figure it out
|
|
107
|
+
|
|
108
|
+
**Verdict:** Yellow pages for MCP, not a marketplace.
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
### 1.5 Agent Payment Infrastructure (Emerging)
|
|
113
|
+
|
|
114
|
+
**Key Players:**
|
|
115
|
+
| Company | Solution | Status |
|
|
116
|
+
|---------|----------|--------|
|
|
117
|
+
| **Crossmint** | Headless Checkout for AI agents | Live |
|
|
118
|
+
| **Stripe** | USDC payments on Base for agents | Just launched (2 days ago) |
|
|
119
|
+
| **Openfort** | Agent wallets for autonomous purchasing | Live |
|
|
120
|
+
| **Auth0** | AI agent authentication | Beta |
|
|
121
|
+
|
|
122
|
+
**The Crossmint Model:**
|
|
123
|
+
- User loads "credits" once
|
|
124
|
+
- Agent spends credits via API
|
|
125
|
+
- No captchas, no 2FA friction
|
|
126
|
+
- Crossmint is Merchant of Record
|
|
127
|
+
- Works with 1B+ products (Amazon, Shopify)
|
|
128
|
+
|
|
129
|
+
**What This Means:**
|
|
130
|
+
> The payment rails for agent commerce are being built RIGHT NOW. The missing piece is the API discovery + provisioning layer.
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Part 2: The Gap Analysis
|
|
135
|
+
|
|
136
|
+
### 2.1 How Agents "Buy" APIs Today
|
|
137
|
+
|
|
138
|
+
**Answer: They don't.**
|
|
139
|
+
|
|
140
|
+
Current flow:
|
|
141
|
+
1. Human developer signs up for API
|
|
142
|
+
2. Human creates API key
|
|
143
|
+
3. Human hardcodes key into agent
|
|
144
|
+
4. Agent uses API
|
|
145
|
+
|
|
146
|
+
**Problems:**
|
|
147
|
+
- 🚫 No dynamic API discovery
|
|
148
|
+
- 🚫 No runtime API acquisition
|
|
149
|
+
- 🚫 No cost optimization (agent can't switch providers)
|
|
150
|
+
- 🚫 No capability matching (agent can't say "I need SMS" and get options)
|
|
151
|
+
|
|
152
|
+
### 2.2 The Friction Points
|
|
153
|
+
|
|
154
|
+
| Friction | Current State | Agent-Native Solution |
|
|
155
|
+
|----------|--------------|----------------------|
|
|
156
|
+
| **Discovery** | Google search or asking human | Semantic query: "I need to send SMS to Sweden" |
|
|
157
|
+
| **Evaluation** | Read docs, try endpoints | Structured comparison: latency, price, features |
|
|
158
|
+
| **Signup** | Email, verify, dashboard | Instant: API call creates account |
|
|
159
|
+
| **Payment** | Credit card form | Delegated wallet or credits |
|
|
160
|
+
| **Provisioning** | Copy API key from dashboard | Return credentials in response |
|
|
161
|
+
| **Monitoring** | Check dashboard for usage | Webhook or pull endpoint |
|
|
162
|
+
|
|
163
|
+
### 2.3 The Whitespace
|
|
164
|
+
|
|
165
|
+
**Nobody is doing this:**
|
|
166
|
+
```
|
|
167
|
+
Agent: "I need to send 10,000 SMS messages to Swedish numbers.
|
|
168
|
+
Budget: $0.05/SMS. Delivery time: <30 seconds."
|
|
169
|
+
|
|
170
|
+
System: Returns ranked providers:
|
|
171
|
+
1. 46elks (SE-native, €0.04/SMS, 2s delivery)
|
|
172
|
+
2. Twilio (Global, €0.05/SMS, 5s delivery)
|
|
173
|
+
3. Vonage (Global, €0.045/SMS, 8s delivery)
|
|
174
|
+
|
|
175
|
+
Agent: "Purchase access to 46elks, 10,000 SMS credits"
|
|
176
|
+
|
|
177
|
+
System: {
|
|
178
|
+
"status": "activated",
|
|
179
|
+
"api_key": "sk_live_xxx",
|
|
180
|
+
"balance": 10000,
|
|
181
|
+
"expires": null,
|
|
182
|
+
"docs_url": "https://..."
|
|
183
|
+
}
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
**This is the opportunity.**
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## Part 3: Concept Design
|
|
191
|
+
|
|
192
|
+
### 3.1 Discovery: How It Works
|
|
193
|
+
|
|
194
|
+
**Interface:** MCP Server + REST API
|
|
195
|
+
|
|
196
|
+
**Agent Query Types:**
|
|
197
|
+
1. **Capability search:** "I need to send email"
|
|
198
|
+
2. **Feature search:** "Email API with attachments and tracking"
|
|
199
|
+
3. **Constraint search:** "Email API, GDPR compliant, <$0.001/email"
|
|
200
|
+
4. **Similar search:** "Something like Twilio but cheaper"
|
|
201
|
+
|
|
202
|
+
**Response Format:**
|
|
203
|
+
```json
|
|
204
|
+
{
|
|
205
|
+
"query": "send SMS to Swedish numbers",
|
|
206
|
+
"results": [
|
|
207
|
+
{
|
|
208
|
+
"provider": "46elks",
|
|
209
|
+
"capability": "sms.send",
|
|
210
|
+
"pricing": {
|
|
211
|
+
"model": "per_message",
|
|
212
|
+
"price_usd": 0.04,
|
|
213
|
+
"currency": "SEK",
|
|
214
|
+
"minimum_purchase": null
|
|
215
|
+
},
|
|
216
|
+
"performance": {
|
|
217
|
+
"latency_p50_ms": 200,
|
|
218
|
+
"latency_p99_ms": 2000,
|
|
219
|
+
"uptime_30d": 99.97
|
|
220
|
+
},
|
|
221
|
+
"features": ["delivery_receipts", "sender_id", "unicode"],
|
|
222
|
+
"compliance": ["GDPR"],
|
|
223
|
+
"integration": {
|
|
224
|
+
"auth": "basic",
|
|
225
|
+
"docs": "https://46elks.com/docs",
|
|
226
|
+
"mcp_server": "mcp://46elks.apimarket.dev"
|
|
227
|
+
},
|
|
228
|
+
"rating": {
|
|
229
|
+
"score": 4.8,
|
|
230
|
+
"reviews": 234,
|
|
231
|
+
"agent_success_rate": 0.97
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
**Ranking Factors:**
|
|
239
|
+
- Agent success rate (real usage data)
|
|
240
|
+
- Price per operation
|
|
241
|
+
- Latency metrics
|
|
242
|
+
- Feature match score
|
|
243
|
+
- Compliance match
|
|
244
|
+
- Community rating
|
|
245
|
+
|
|
246
|
+
### 3.2 Purchase: How It Works
|
|
247
|
+
|
|
248
|
+
**Pre-requisite:** Agent has delegated spending authority
|
|
249
|
+
|
|
250
|
+
**Options:**
|
|
251
|
+
1. **Credit Balance** — Agent's owner pre-loads credits
|
|
252
|
+
2. **Direct Debit** — Linked bank/card, per-transaction
|
|
253
|
+
3. **Crypto Wallet** — USDC on Base (Stripe just launched this)
|
|
254
|
+
|
|
255
|
+
**Purchase Flow:**
|
|
256
|
+
```
|
|
257
|
+
POST /v1/purchase
|
|
258
|
+
{
|
|
259
|
+
"provider": "46elks",
|
|
260
|
+
"product": "sms_credits",
|
|
261
|
+
"quantity": 10000,
|
|
262
|
+
"spending_auth": "auth_xxx" // Pre-authorized spending token
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
Response:
|
|
266
|
+
{
|
|
267
|
+
"purchase_id": "pur_abc123",
|
|
268
|
+
"status": "active",
|
|
269
|
+
"credentials": {
|
|
270
|
+
"type": "basic",
|
|
271
|
+
"username": "u_xxx",
|
|
272
|
+
"password": "p_xxx"
|
|
273
|
+
},
|
|
274
|
+
"balance": {
|
|
275
|
+
"type": "credits",
|
|
276
|
+
"remaining": 10000,
|
|
277
|
+
"unit": "sms"
|
|
278
|
+
},
|
|
279
|
+
"cost": {
|
|
280
|
+
"amount": 400.00,
|
|
281
|
+
"currency": "USD"
|
|
282
|
+
},
|
|
283
|
+
"access": {
|
|
284
|
+
"mcp_server": "mcp://46elks.apimarket.dev",
|
|
285
|
+
"rest_endpoint": "https://api.46elks.com",
|
|
286
|
+
"docs": "https://..."
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
### 3.3 Usage Tracking
|
|
292
|
+
|
|
293
|
+
**Real-time Monitoring:**
|
|
294
|
+
```
|
|
295
|
+
GET /v1/usage/pur_abc123
|
|
296
|
+
|
|
297
|
+
{
|
|
298
|
+
"purchase_id": "pur_abc123",
|
|
299
|
+
"provider": "46elks",
|
|
300
|
+
"usage": {
|
|
301
|
+
"sms_sent": 4521,
|
|
302
|
+
"remaining": 5479,
|
|
303
|
+
"cost_incurred": 180.84
|
|
304
|
+
},
|
|
305
|
+
"performance": {
|
|
306
|
+
"success_rate": 0.98,
|
|
307
|
+
"avg_latency_ms": 215
|
|
308
|
+
},
|
|
309
|
+
"alerts": [
|
|
310
|
+
{"type": "low_balance", "threshold": 1000, "triggered": false}
|
|
311
|
+
]
|
|
312
|
+
}
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
**Webhooks:**
|
|
316
|
+
- `usage.threshold` — Balance running low
|
|
317
|
+
- `usage.depleted` — Credits exhausted
|
|
318
|
+
- `provider.degraded` — Performance issues
|
|
319
|
+
- `provider.outage` — Service down
|
|
320
|
+
|
|
321
|
+
### 3.4 Revenue Model
|
|
322
|
+
|
|
323
|
+
**Three Revenue Streams:**
|
|
324
|
+
|
|
325
|
+
| Stream | Model | Example |
|
|
326
|
+
|--------|-------|---------|
|
|
327
|
+
| **Transaction Fee** | % of purchase | 5% on $400 purchase = $20 |
|
|
328
|
+
| **Spread** | Buy wholesale, sell retail | Buy SMS at $0.035, sell at $0.04 |
|
|
329
|
+
| **Premium Features** | Subscription | $99/mo for advanced analytics, SLA |
|
|
330
|
+
|
|
331
|
+
**Hybrid Approach (Recommended):**
|
|
332
|
+
- Free tier: Discovery + basic purchase (5% fee)
|
|
333
|
+
- Pro tier ($99/mo): Lower fees (2%), priority support, advanced analytics
|
|
334
|
+
- Enterprise: Volume discounts, custom integrations, SLA
|
|
335
|
+
|
|
336
|
+
**Unit Economics (Conservative):**
|
|
337
|
+
- Average transaction: $100
|
|
338
|
+
- Take rate: 5%
|
|
339
|
+
- Gross revenue per tx: $5
|
|
340
|
+
- 1000 agents × 10 tx/month = $50,000 MRR
|
|
341
|
+
|
|
342
|
+
---
|
|
343
|
+
|
|
344
|
+
## Part 4: MVP Specification
|
|
345
|
+
|
|
346
|
+
### 4.1 Minimum Viable Product
|
|
347
|
+
|
|
348
|
+
**Scope:** 10 high-value APIs, single MCP server, credit-based purchasing
|
|
349
|
+
|
|
350
|
+
**Core Features:**
|
|
351
|
+
1. ✅ MCP-native discovery endpoint
|
|
352
|
+
2. ✅ Semantic search (via embeddings)
|
|
353
|
+
3. ✅ Credit purchase + instant provisioning
|
|
354
|
+
4. ✅ Usage tracking API
|
|
355
|
+
5. ✅ Basic webhook notifications
|
|
356
|
+
|
|
357
|
+
**NOT in MVP:**
|
|
358
|
+
- ❌ Direct billing (use credits)
|
|
359
|
+
- ❌ Enterprise features
|
|
360
|
+
- ❌ Custom integrations
|
|
361
|
+
- ❌ Mobile app/dashboard (agent-first!)
|
|
362
|
+
|
|
363
|
+
### 4.2 Tech Stack
|
|
364
|
+
|
|
365
|
+
| Layer | Choice | Rationale |
|
|
366
|
+
|-------|--------|-----------|
|
|
367
|
+
| **MCP Server** | TypeScript + MCP SDK | Standard, fast iteration |
|
|
368
|
+
| **API** | Hono on Cloudflare Workers | Edge-native, fast |
|
|
369
|
+
| **Database** | Supabase (Postgres) | Quick setup, real-time |
|
|
370
|
+
| **Search** | Supabase pgvector | Semantic search, no extra service |
|
|
371
|
+
| **Payments** | Stripe Agent Toolkit | Native MCP support |
|
|
372
|
+
| **Auth** | Clerk or custom JWT | Simple agent identity |
|
|
373
|
+
| **Queue** | Inngest | Background jobs, webhooks |
|
|
374
|
+
| **Monitoring** | Axiom | Log aggregation |
|
|
375
|
+
|
|
376
|
+
**Architecture:**
|
|
377
|
+
```
|
|
378
|
+
Agent → MCP Server → API Gateway → Provider Adapters
|
|
379
|
+
↓
|
|
380
|
+
Supabase (state)
|
|
381
|
+
↓
|
|
382
|
+
Stripe (billing)
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
### 4.3 First 10 APIs to Integrate
|
|
386
|
+
|
|
387
|
+
**Selection Criteria:**
|
|
388
|
+
- High agent utility
|
|
389
|
+
- Clear pricing
|
|
390
|
+
- Good API documentation
|
|
391
|
+
- Programmatic key provisioning (or workaround)
|
|
392
|
+
|
|
393
|
+
| # | Category | Provider | Why |
|
|
394
|
+
|---|----------|----------|-----|
|
|
395
|
+
| 1 | **SMS** | 46elks | Swedish, simple, good pricing |
|
|
396
|
+
| 2 | **SMS** | Twilio | Global standard |
|
|
397
|
+
| 3 | **Email** | Resend | Developer-friendly, modern |
|
|
398
|
+
| 4 | **Email** | Postmark | Transactional focus |
|
|
399
|
+
| 5 | **Search** | Brave Search | Privacy-first, good API |
|
|
400
|
+
| 6 | **AI/LLM** | OpenRouter | Multi-model gateway |
|
|
401
|
+
| 7 | **Storage** | Cloudflare R2 | S3-compatible, cheap |
|
|
402
|
+
| 8 | **Database** | Supabase | Instant Postgres |
|
|
403
|
+
| 9 | **Payments** | Stripe | Essential for commerce |
|
|
404
|
+
| 10 | **Voice** | ElevenLabs | TTS, high demand |
|
|
405
|
+
|
|
406
|
+
### 4.4 Launch Strategy
|
|
407
|
+
|
|
408
|
+
**Phase 1: Private Alpha (Week 1-4)**
|
|
409
|
+
- Build MVP with 5 APIs
|
|
410
|
+
- 10 hand-picked power users
|
|
411
|
+
- Iterate on UX and pricing
|
|
412
|
+
|
|
413
|
+
**Phase 2: Public Beta (Week 5-8)**
|
|
414
|
+
- Launch on MCP registries (mcp.so, mcpmarket.com)
|
|
415
|
+
- Twitter/X launch thread
|
|
416
|
+
- Target AI agent builders (Claude Code users, AutoGPT, CrewAI)
|
|
417
|
+
|
|
418
|
+
**Phase 3: Growth (Month 3+)**
|
|
419
|
+
- API provider outreach (become their agent channel)
|
|
420
|
+
- Integration with major agent frameworks
|
|
421
|
+
- Community-contributed providers
|
|
422
|
+
|
|
423
|
+
**Distribution Channels:**
|
|
424
|
+
1. MCP registries (organic discovery)
|
|
425
|
+
2. AI agent framework docs (CrewAI, LangChain, etc.)
|
|
426
|
+
3. Developer Twitter/X
|
|
427
|
+
4. Hacker News launch
|
|
428
|
+
5. ProductHunt
|
|
429
|
+
|
|
430
|
+
---
|
|
431
|
+
|
|
432
|
+
## Part 5: Risks & Mitigations
|
|
433
|
+
|
|
434
|
+
| Risk | Severity | Mitigation |
|
|
435
|
+
|------|----------|------------|
|
|
436
|
+
| **API providers don't allow resale** | High | Start with affiliate model, prove value |
|
|
437
|
+
| **Payment fraud** | Medium | Spending limits, verification tiers |
|
|
438
|
+
| **Agent abuse** | Medium | Rate limits, reputation system |
|
|
439
|
+
| **No demand** | Medium | Validate with 10 agents before building |
|
|
440
|
+
| **Big player enters** | Low | Move fast, own the niche |
|
|
441
|
+
|
|
442
|
+
---
|
|
443
|
+
|
|
444
|
+
## Part 6: Success Metrics
|
|
445
|
+
|
|
446
|
+
**North Star:** Monthly Active Agents (MAA)
|
|
447
|
+
|
|
448
|
+
**Leading Indicators:**
|
|
449
|
+
- Discovery queries per day
|
|
450
|
+
- Purchase conversion rate
|
|
451
|
+
- Average spend per agent
|
|
452
|
+
- Provider NPS
|
|
453
|
+
|
|
454
|
+
**Targets (Month 6):**
|
|
455
|
+
- 500 MAA
|
|
456
|
+
- $25,000 MRR
|
|
457
|
+
- 25 integrated APIs
|
|
458
|
+
- 95% agent success rate
|
|
459
|
+
|
|
460
|
+
---
|
|
461
|
+
|
|
462
|
+
## Appendix: Raw Research Notes
|
|
463
|
+
|
|
464
|
+
### Agent Payment Infrastructure Headlines (Feb 2026)
|
|
465
|
+
|
|
466
|
+
> "An Openclaw software agent autonomously provisioned a virtual private server, funded it with bitcoin via the Lightning Network, and purchased AI API credits — all without a human clicking 'confirm.'"
|
|
467
|
+
> — CoinSpectator, Feb 13, 2026
|
|
468
|
+
|
|
469
|
+
> "Stripe has launched USDC payment system for AI agents on Base blockchain... agents could purchase datasets, compute resources, or other digital inputs without human authorization"
|
|
470
|
+
> — FinanceFeeds, Feb 13, 2026
|
|
471
|
+
|
|
472
|
+
### Key Insight
|
|
473
|
+
|
|
474
|
+
The infrastructure for autonomous agent commerce is being built RIGHT NOW:
|
|
475
|
+
- Stripe: USDC agent payments (2 days old)
|
|
476
|
+
- Crossmint: Headless checkout for agents
|
|
477
|
+
- Openfort: Agent wallets
|
|
478
|
+
- Auth0: AI agent authentication
|
|
479
|
+
|
|
480
|
+
**The missing piece is the marketplace layer that sits on top.**
|
|
481
|
+
|
|
482
|
+
---
|
|
483
|
+
|
|
484
|
+
## Next Steps
|
|
485
|
+
|
|
486
|
+
1. [ ] Validate demand with 5 AI agent builders
|
|
487
|
+
2. [ ] Prototype MCP server with 3 APIs
|
|
488
|
+
3. [ ] Test Stripe Agent Toolkit integration
|
|
489
|
+
4. [ ] Design credit/wallet system
|
|
490
|
+
5. [ ] Build landing page (agent-native pitch)
|
|
491
|
+
|
|
492
|
+
---
|
|
493
|
+
|
|
494
|
+
*Research compiled by Symbot | 2026-02-16*
|