This repository was archived by the owner on Apr 6, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
370 lines (349 loc) · 11.2 KB
/
Copy pathopenapi.yaml
File metadata and controls
370 lines (349 loc) · 11.2 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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
openapi: 3.1.0
info:
title: StudioMeyer Memory API
description: |
Persistent, intelligent memory for AI agents. 52 MCP tools accessible via REST API.
## Authentication
All authenticated endpoints require a Bearer token in the `Authorization` header.
Get your API key by calling `POST /api/signup` with your email.
## MCP Protocol
For MCP-native access (Claude Desktop, Cursor, VS Code), connect to:
`https://memory.studiomeyer.io/mcp`
## Rate Limits
- Free: 200 calls/day
- Pro ($29/mo): 2,000 calls/day
- Team ($49/mo): Unlimited
Exceeded limits return `429 Too Many Requests` with an upgrade URL.
## Features
- Knowledge Graph with entities, observations, and typed relations
- Semantic search with vector embeddings + full-text + trigram matching
- Session tracking with automatic context loading
- Multi-agent support with cross-agent search
- Import from ChatGPT, Claude, Gemini, Copilot, Perplexity
- Contradiction Detection & Confidence Decay
- FadeMem Adaptive Decay (important memories fade 6x slower)
- OAuth 2.1 with PKCE for MCP connections
version: 3.0.0
contact:
name: StudioMeyer
url: https://studiomeyer.io
email: hello@studiomeyer.io
license:
name: Proprietary
url: https://memory.studiomeyer.io/terms
servers:
- url: https://memory.studiomeyer.io
description: Production (EU - Ireland)
tags:
- name: Public
description: Endpoints that don't require authentication
- name: Memory
description: Store and retrieve memories (learnings, decisions, entities)
- name: Search
description: Search across all stored knowledge
- name: Account
description: Account management and billing
- name: Import
description: Import AI history from other platforms
- name: Export
description: Export your data
security:
- BearerAuth: []
paths:
/api:
get:
tags: [Public]
summary: API Information
description: Returns API version, available endpoints, and feature list.
security: []
operationId: getApiInfo
responses:
'200':
description: API information
content:
application/json:
schema:
type: object
properties:
name:
type: string
example: StudioMeyer Memory API
version:
type: string
example: 3.0.0
/api/signup:
post:
tags: [Public]
summary: Create Account
description: Create a new account and get an API key (starts with `nex_`).
security: []
operationId: signup
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [email]
properties:
email:
type: string
format: email
example: developer@example.com
responses:
'200':
description: Account created
content:
application/json:
schema:
type: object
properties:
success: { type: boolean }
apiKey: { type: string, example: "nex_abc123" }
tenantId: { type: string, format: uuid }
message: { type: string }
/api/verify:
get:
tags: [Public]
summary: Verify Email
security: []
operationId: verifyEmail
parameters:
- name: token
in: query
required: true
schema: { type: string }
responses:
'200': { description: Email verified }
'400': { description: Invalid token }
/api/account:
get:
tags: [Account]
summary: Get Account Info
operationId: getAccount
responses:
'200':
description: Account information
content:
application/json:
schema:
type: object
properties:
email: { type: string, format: email }
plan: { type: string, enum: [free, pro, team] }
limits: { type: object }
usage: { type: object }
/api/checkout:
post:
tags: [Account]
summary: Create Checkout Session
operationId: createCheckout
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [plan]
properties:
plan: { type: string, enum: [pro, team] }
responses:
'200':
description: Checkout URL
content:
application/json:
schema:
type: object
properties:
url: { type: string, format: uri }
/api/learn:
post:
tags: [Memory]
summary: Store a Learning
description: Store a learning with duplicate detection (>95% skip, >90% update).
operationId: learn
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [category, content]
properties:
category: { type: string, description: "pattern, mistake, insight, research, architecture, etc." }
content: { type: string, maxLength: 10000 }
tags: { type: array, items: { type: string } }
agentId: { type: string }
source: { type: string, enum: [session, user, research, import, automated] }
memoryType: { type: string, enum: [episodic, semantic] }
confidence: { type: number, minimum: 0, maximum: 1 }
project: { type: string }
awaitEmbedding: { type: boolean }
responses:
'200':
description: Learning stored
content:
application/json:
schema:
type: object
properties:
success: { type: boolean }
action: { type: string, enum: [added, updated, skipped] }
id: { type: string }
message: { type: string }
'429': { description: Usage limit exceeded }
/api/search:
post:
tags: [Search]
summary: Unified Search
description: 5-phase parallel search across all knowledge.
operationId: search
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [query]
properties:
query: { type: string }
limit: { type: integer, minimum: 1, maximum: 100, default: 20 }
types: { type: array, items: { type: string, enum: [decision, learning, session, skill, evolution, entity] } }
agentId: { type: string }
recencyWeight: { type: number, minimum: 0, maximum: 1, default: 0.3 }
memoryType: { type: string, enum: [episodic, semantic, all] }
rerank: { type: boolean, default: false }
asOf: { type: string, format: date }
dateRangeStart: { type: string, format: date }
dateRangeEnd: { type: string, format: date }
responses:
'200':
description: Search results
content:
application/json:
schema:
type: object
properties:
success: { type: boolean }
results: { type: array, items: { type: object } }
count: { type: integer }
query: { type: string }
/api/decide:
post:
tags: [Memory]
summary: Log a Decision
operationId: decide
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [title, decision, reasoning]
properties:
title: { type: string }
decision: { type: string }
reasoning: { type: string }
project: { type: string }
agentId: { type: string }
responses:
'200':
description: Decision recorded
content:
application/json:
schema:
type: object
properties:
success: { type: boolean }
id: { type: string }
message: { type: string }
/api/entity:
post:
tags: [Memory]
summary: Create or Update Entity
operationId: createEntity
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [name, entityType, observations]
properties:
name: { type: string }
entityType: { type: string }
observations: { type: array, items: { type: string } }
project: { type: string }
responses:
'200':
description: Entity created/updated
content:
application/json:
schema:
type: object
properties:
success: { type: boolean }
entityId: { type: string }
observationsAdded: { type: integer }
message: { type: string }
/api/import:
post:
tags: [Import]
summary: Import AI History
description: Import from ChatGPT, Claude, Gemini, Copilot, Perplexity.
operationId: importHistory
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [data, action]
properties:
data: { type: string }
action: { type: string, enum: [analyze, import] }
platform: { type: string, enum: [chatgpt, claude, gemini, copilot, perplexity] }
responses:
'200':
description: Import results
content:
application/json:
schema:
type: object
properties:
success: { type: boolean }
platform: { type: string }
stats: { type: object }
message: { type: string }
/api/backfill:
post:
tags: [Memory]
summary: Backfill Embeddings
operationId: backfill
responses:
'200':
description: Backfill started
content:
application/json:
schema:
type: object
properties:
message: { type: string }
backfilled: { type: integer }
/api/export:
get:
tags: [Export]
summary: Export All Data
operationId: exportData
responses:
'200':
description: Markdown export
content:
text/markdown:
schema: { type: string }
components:
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: "API key from POST /api/signup. Keys start with nex_."