-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.html
More file actions
254 lines (234 loc) · 15 KB
/
Copy pathapi.html
File metadata and controls
254 lines (234 loc) · 15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<!DOCTYPE html>
<html lang="en" class="scroll-smooth">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Developer API | SimplyCodes Truth Engine</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
sc: {
black: '#070707',
surface: '#111111',
border: '#222222',
neon: '#86FC4F',
text: '#E5E5E5',
muted: '#737373',
blue: '#3b82f6'
}
},
fontFamily: {
sans: ['Figtree', 'sans-serif'],
mono: ['JetBrains Mono', 'monospace'],
},
animation: {
'pulse-slow': 'pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite',
}
}
}
}
</script>
<style>
.neon-glow { box-shadow: 0 0 20px rgba(134, 252, 79, 0.15); }
.glass-panel { background: rgba(17, 17, 17, 0.7); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.08); }
.token-key { color: #3b82f6; } /* Blue */
.token-string { color: #86FC4F; } /* Neon */
.token-number { color: #f59e0b; } /* Orange */
</style>
</head>
<body class="bg-sc-black text-sc-text font-sans antialiased selection:bg-sc-neon selection:text-black">
<nav class="fixed top-0 w-full z-50 border-b border-sc-border bg-sc-black/90 backdrop-blur-md">
<div class="max-w-7xl mx-auto px-6 h-16 flex items-center justify-between">
<div class="flex items-center gap-8">
<a href="index.html" class="flex items-center gap-2 group">
<div class="w-6 h-6 rounded bg-sc-neon flex items-center justify-center text-black font-bold text-lg group-hover:neon-glow transition-all">S</div>
<span class="font-bold tracking-tight text-white">SimplyCodes</span>
</a>
<div class="hidden md:flex items-center gap-6 text-sm font-medium text-sc-muted">
<a href="live.html" class="hover:text-white transition-colors">Live Ledger</a>
<a href="truth.html" class="hover:text-white transition-colors">Methodology</a>
</div>
</div>
<div class="flex items-center gap-4">
<a href="api.html" class="hidden md:block text-sm font-mono text-white transition-colors border-b border-sc-neon pb-0.5">For Agents API</a>
<a href="#" class="text-sm font-medium hover:text-white transition-colors">Log In</a>
<a href="extension.html" class="bg-white text-black px-4 py-2 rounded-full text-sm font-bold hover:bg-sc-neon hover:neon-glow transition-all duration-300">
Get Extension
</a>
</div>
</div>
</nav>
<header class="pt-32 pb-24 px-6 relative overflow-hidden">
<div class="max-w-7xl mx-auto grid lg:grid-cols-2 gap-16 items-center">
<div>
<div class="inline-flex items-center gap-2 px-3 py-1 rounded bg-sc-black border border-sc-border text-xs font-mono text-sc-blue mb-8">
<span class="w-2 h-2 rounded-full bg-sc-blue animate-pulse-slow"></span>
API v1.0 • MCP COMPATIBLE
</div>
<h1 class="text-5xl md:text-7xl font-bold text-white tracking-tight mb-8">
Power your Agent with<br>
<span class="text-transparent bg-clip-text bg-gradient-to-r from-sc-blue to-white">The Truth Layer.</span>
</h1>
<p class="text-xl text-sc-muted leading-relaxed mb-12">
The only API that provides Verified Proof Packets for 400,000+ merchants. Reduce hallucination risk to near zero by grounding your AI in our real-time verification ledger.
</p>
<div class="flex flex-col sm:flex-row gap-4">
<a href="#" class="inline-flex items-center justify-center gap-3 bg-white text-black px-8 py-4 rounded-full text-lg font-bold hover:bg-sc-neon hover:neon-glow transition-all duration-300">
<span>Get API Keys</span>
</a>
<a href="#" class="inline-flex items-center justify-center gap-3 bg-sc-surface border border-sc-border text-white px-8 py-4 rounded-full text-lg font-bold hover:border-white transition-all">
<span>Read Docs</span>
</a>
</div>
</div>
<div class="relative">
<div class="absolute inset-0 bg-sc-blue opacity-5 blur-[100px] pointer-events-none"></div>
<div class="relative bg-sc-black border border-sc-border rounded-xl shadow-2xl overflow-hidden font-mono text-xs md:text-sm">
<div class="bg-sc-surface border-b border-sc-border px-4 py-3 flex items-center gap-4">
<div class="flex gap-1.5">
<div class="w-3 h-3 rounded-full bg-red-900/50 border border-red-800"></div>
<div class="w-3 h-3 rounded-full bg-yellow-900/50 border border-yellow-800"></div>
<div class="w-3 h-3 rounded-full bg-green-900/50 border border-green-800"></div>
</div>
<div class="text-sc-muted">GET /v1/merchant/nike/codes</div>
</div>
<div class="p-6 text-gray-300 overflow-x-auto">
<div class="mb-2 text-sc-muted">// Response: 200 OK</div>
<div>{</div>
<div class="pl-4">
<span class="token-key">"merchant"</span>: <span class="token-string">"nike.com"</span>,
</div>
<div class="pl-4">
<span class="token-key">"verified_count"</span>: <span class="token-number">4</span>,
</div>
<div class="pl-4">
<span class="token-key">"top_code"</span>: {
</div>
<div class="pl-8">
<span class="token-key">"code"</span>: <span class="token-string">"JUSTDOIT"</span>,
</div>
<div class="pl-8">
<span class="token-key">"health_score"</span>: <span class="token-number">98</span>,
</div>
<div class="pl-8">
<span class="token-key">"proof_packet"</span>: {
</div>
<div class="pl-12">
<span class="token-key">"last_verified"</span>: <span class="token-string">"2026-01-01T14:02:11Z"</span>,
</div>
<div class="pl-12">
<span class="token-key">"validator_id"</span>: <span class="token-string">"usr_88291"</span>,
</div>
<div class="pl-12">
<span class="token-key">"cart_success_rate"</span>: <span class="token-number">0.96</span>
</div>
<div class="pl-8">}</div>
<div class="pl-4">}</div>
<div>}</div>
</div>
</div>
</div>
</div>
</header>
<section class="py-24 px-6 border-y border-sc-border bg-sc-surface">
<div class="max-w-6xl mx-auto">
<h2 class="text-3xl font-bold text-white mb-16">Core Endpoints</h2>
<div class="space-y-8">
<div class="group p-8 rounded-xl border border-sc-border bg-sc-black hover:border-sc-blue transition-colors">
<div class="flex flex-col md:flex-row md:items-center justify-between gap-6 mb-6">
<div class="flex items-center gap-4">
<span class="px-3 py-1 bg-sc-blue/10 text-sc-blue border border-sc-blue/20 rounded font-mono text-sm font-bold">GET</span>
<code class="text-white font-mono text-lg">/v1/merchant/{id}/codes</code>
</div>
<span class="text-xs font-mono text-sc-muted border border-sc-border px-2 py-1 rounded">Rate Limit: 100/min</span>
</div>
<p class="text-sc-muted mb-6">
Returns all active verified codes for a specific merchant. Filters out expired or low-health codes (score < 50) by default to prevent agent hallucination.
</p>
<div class="bg-sc-surface rounded p-4 border border-sc-border font-mono text-xs text-sc-muted">
?include_graveyard=true <span class="text-gray-500">// Returns rejected codes for analysis</span>
</div>
</div>
<div class="group p-8 rounded-xl border border-sc-border bg-sc-black hover:border-sc-blue transition-colors">
<div class="flex flex-col md:flex-row md:items-center justify-between gap-6 mb-6">
<div class="flex items-center gap-4">
<span class="px-3 py-1 bg-sc-blue/10 text-sc-blue border border-sc-blue/20 rounded font-mono text-sm font-bold">GET</span>
<code class="text-white font-mono text-lg">/v1/verify/packet</code>
</div>
<span class="text-xs font-mono text-sc-muted border border-sc-border px-2 py-1 rounded">Rate Limit: 50/min</span>
</div>
<p class="text-sc-muted mb-6">
Returns the full forensic evidence chain for a specific code. Includes validator timestamps, screen captures (if available), and logic constraints (e.g., "New Customer Only").
</p>
</div>
<div class="group p-8 rounded-xl border border-sc-border bg-sc-black hover:border-sc-blue transition-colors">
<div class="flex flex-col md:flex-row md:items-center justify-between gap-6 mb-6">
<div class="flex items-center gap-4">
<span class="px-3 py-1 bg-green-900/20 text-green-400 border border-green-900/30 rounded font-mono text-sm font-bold">POST</span>
<code class="text-white font-mono text-lg">/v1/agent/feedback</code>
</div>
<span class="text-xs font-mono text-sc-muted border border-sc-border px-2 py-1 rounded">Rate Limit: 1000/min</span>
</div>
<p class="text-sc-muted">
Submit execution results (Success/Fail) from your agent back to the Truth Engine. Contributing agents receive higher rate limits and access to the "Gold" tier data.
</p>
</div>
</div>
</div>
</section>
<footer class="bg-sc-black border-t border-sc-border pt-20 pb-10 px-6">
<div class="max-w-7xl mx-auto">
<div class="grid grid-cols-2 md:grid-cols-4 gap-12 mb-20">
<div>
<h4 class="font-mono text-xs text-sc-muted uppercase tracking-widest mb-6">Platform</h4>
<ul class="space-y-4 text-sm font-medium text-gray-400">
<li><a href="extension.html" class="hover:text-white hover:text-sc-neon transition-colors">Extension</a></li>
<li><a href="mobile-app.html" class="hover:text-white hover:text-sc-neon transition-colors">Mobile App</a></li>
<li><a href="chatgpt.html" class="hover:text-white hover:text-sc-neon transition-colors">ChatGPT App</a></li>
<li><a href="api.html" class="text-white hover:text-sc-neon transition-colors">Developer API</a></li>
</ul>
</div>
<div>
<h4 class="font-mono text-xs text-sc-muted uppercase tracking-widest mb-6">Truth</h4>
<ul class="space-y-4 text-sm font-medium text-gray-400">
<li><a href="live.html" class="hover:text-white hover:text-sc-neon transition-colors">Live Ledger</a></li>
<li><a href="truth.html" class="hover:text-white hover:text-sc-neon transition-colors">Methodology</a></li>
<li><a href="taxonomy.html" class="hover:text-white hover:text-sc-neon transition-colors">Failure Taxonomy</a></li>
<li><a href="privacy.html" class="hover:text-white hover:text-sc-neon transition-colors">Privacy Promise</a></li>
</ul>
</div>
<div>
<h4 class="font-mono text-xs text-sc-muted uppercase tracking-widest mb-6">Workforce</h4>
<ul class="space-y-4 text-sm font-medium text-gray-400">
<li><a href="workforce.html" class="hover:text-white hover:text-sc-neon transition-colors">Join the Workforce</a></li>
<li><a href="leaderboards.html" class="hover:text-white hover:text-sc-neon transition-colors">Leaderboards</a></li>
<li><a href="#" class="hover:text-white hover:text-sc-neon transition-colors">ShopGraph Tasks</a></li>
</ul>
</div>
<div>
<h4 class="font-mono text-xs text-sc-muted uppercase tracking-widest mb-6">Status</h4>
<div class="flex items-center gap-2 mb-4">
<span class="w-2 h-2 rounded-full bg-sc-neon"></span>
<span class="text-sm text-white font-mono">Operational</span>
</div>
<p class="text-xs text-sc-muted">Latency: 12ms</p>
<p class="text-xs text-sc-muted">San Francisco, CA</p>
</div>
</div>
<div class="border-t border-sc-border pt-8 flex flex-col md:flex-row justify-between items-center gap-4">
<div class="text-sm text-sc-muted">© 2026 Demand.io. All rights reserved.</div>
<div class="flex gap-6 text-sm text-sc-muted">
<a href="#" class="hover:text-white">Twitter / X</a>
<a href="#" class="hover:text-white">LinkedIn</a>
</div>
</div>
</div>
</footer>
</body>
</html>