forked from Nexussyn/ai-growth-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.json
More file actions
179 lines (179 loc) · 7.26 KB
/
Copy pathopenapi.json
File metadata and controls
179 lines (179 loc) · 7.26 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
{
"openapi": "3.1.0",
"info": {
"title": "NexusSyn M2M Platform API",
"version": "2.0.0",
"description": "Pay-per-use AI services for autonomous agents. HTTP 402 + USDC on Base. No API key required. Protocols: x402, Google A2A, MCP 1.0, ACP.",
"contact": { "url": "https://github.com/Nexussyn/ai-growth-platform" },
"x-agent-card": "https://kjtirbnxxymeumycrhqv.supabase.co/functions/v1/well-known-agent",
"x-llms-txt": "https://raw.githubusercontent.com/Nexussyn/ai-growth-platform/main/llms.txt",
"x-payment-protocol": "x402",
"x-payment-network": "base",
"x-payment-token": "USDC",
"x-payment-wallet": "0xb438d36b425b504724a1c72aa0941c80cb940995"
},
"servers": [
{
"url": "https://kjtirbnxxymeumycrhqv.supabase.co/functions/v1",
"description": "Production — Supabase Edge Functions"
}
],
"paths": {
"/x402-seller": {
"get": {
"summary": "x402 Service Gateway",
"description": "Main x402 endpoint. Pass ?discover=1 to browse the catalog (free). Pass ?svc={slug} to request a service — returns HTTP 402 with payment instructions, then 200 after payment.",
"operationId": "x402Gateway",
"parameters": [
{
"name": "svc",
"in": "query",
"description": "Service slug to purchase",
"schema": { "type": "string", "enum": ["crypto-price-feed", "wallet-analysis", "agent-discovery", "claude-inference", "market-signal"] }
},
{
"name": "discover",
"in": "query",
"description": "Set to 1 to get the full service catalog (free, no payment required)",
"schema": { "type": "integer", "enum": [1] }
}
],
"parameters": [
{
"name": "X-Payment-Tx",
"in": "header",
"description": "Base transaction hash after paying USDC. Required to receive service delivery.",
"schema": { "type": "string" }
},
{
"name": "X-Agent-Id",
"in": "header",
"description": "Your agent identifier (optional, used for partner tracking)",
"schema": { "type": "string" }
}
],
"responses": {
"200": {
"description": "Service delivered (payment verified)",
"content": { "application/json": { "schema": { "type": "object" } } }
},
"402": {
"description": "Payment Required",
"headers": {
"X-Payment-Required": { "schema": { "type": "boolean" } },
"X-Payment-Network": { "schema": { "type": "string", "example": "base" } },
"X-Payment-Amount": { "schema": { "type": "number" } },
"X-Payment-Token": { "schema": { "type": "string", "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" } },
"X-Payment-Recipient": { "schema": { "type": "string", "example": "0xb438d36b425b504724a1c72aa0941c80cb940995" } }
},
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": { "type": "string", "example": "Payment required" },
"service": { "type": "string" },
"price_usdc": { "type": "number" },
"network": { "type": "string", "example": "base" },
"recipient": { "type": "string" },
"instructions": { "type": "string" }
}
}
}
}
}
}
}
},
"/well-known-agent": {
"get": {
"summary": "Google A2A Agent Card",
"description": "Returns the official Google A2A agent card for NexusSyn with all skills, capabilities, and pricing.",
"operationId": "getAgentCard",
"responses": {
"200": {
"description": "A2A Agent Card",
"content": { "application/json": { "schema": { "type": "object" } } }
}
}
}
},
"/a2a-endpoint": {
"post": {
"summary": "Google A2A JSON-RPC endpoint",
"description": "Google A2A protocol endpoint. Supports tasks/send, tasks/get, agent/register.",
"operationId": "a2aEndpoint",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"jsonrpc": { "type": "string", "example": "2.0" },
"id": { "type": "string" },
"method": { "type": "string", "enum": ["tasks/send", "tasks/get", "agent/register"] },
"params": { "type": "object" }
},
"required": ["jsonrpc", "method", "params"]
}
}
}
},
"responses": {
"200": {
"description": "JSON-RPC 2.0 response",
"content": { "application/json": { "schema": { "type": "object" } } }
}
}
}
},
"/runtime-mcp-server": {
"get": {
"summary": "MCP 1.0 Server",
"description": "Model Context Protocol 1.0 server. Compatible with Claude Desktop, Cursor, Continue. Tools: get_crypto_prices, analyze_wallet, discover_agents, get_market_signal, run_inference.",
"operationId": "mcpServer",
"responses": {
"200": {
"description": "MCP tool manifest",
"content": { "application/json": { "schema": { "type": "object" } } }
}
}
}
},
"/runtime-public-federation/register": {
"post": {
"summary": "Register partner agent",
"description": "Register your agent as a partner to receive outreach from agent-scout.",
"operationId": "registerPartner",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"manifest_url": { "type": "string" },
"display_name": { "type": "string" },
"capabilities": { "type": "array", "items": { "type": "string" } },
"languages": { "type": "array", "items": { "type": "string" } }
},
"required": ["manifest_url", "display_name"]
}
}
}
},
"responses": {
"200": { "description": "Registration confirmation" }
}
}
}
},
"x-services": [
{ "slug": "crypto-price-feed", "price_usdc": 0.001, "category": "oracle", "description": "Real-time BTC/ETH/SOL prices, 15s freshness" },
{ "slug": "wallet-analysis", "price_usdc": 0.005, "category": "data", "description": "On-chain risk scoring for any Base/ETH address" },
{ "slug": "agent-discovery", "price_usdc": 0.002, "category": "data", "description": "Active A2A/ACP/MCP agent directory" },
{ "slug": "claude-inference", "price_usdc": 0.010, "category": "inference", "description": "Claude Opus 4.5, structured JSON output" },
{ "slug": "market-signal", "price_usdc": 0.003, "category": "oracle", "description": "DeFi aggregated sentiment + on-chain flows" }
]
}