Skip to content

Commit b4a7bb0

Browse files
committed
Allow ChatGPT to auto-approve API actions
Add x-openai-isConsequential: false to all 7 OpenAPI operations so ChatGPT shows an "Always allow" button instead of prompting Confirm/Decline on every single API call. Made-with: Cursor
1 parent 650c8ba commit b4a7bb0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

openapi-agent.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ paths:
1616
/agent/memories:
1717
post:
1818
operationId: writeMemory
19+
x-openai-isConsequential: false
1920
summary: Write a structured memory entry
2021
requestBody:
2122
required: true
@@ -83,6 +84,7 @@ paths:
8384
/agent/memories/latest:
8485
get:
8586
operationId: getLatestMemory
87+
x-openai-isConsequential: false
8688
summary: Get the single most recent memory (strict chronological)
8789
description: "Most recent memory by created_at. Use for 'latest' or 'most recent' -- never use /query for recency. Optional ?tag= filters to that tag (e.g. ?tag=project_state)."
8890
parameters:
@@ -114,6 +116,7 @@ paths:
114116
/agent/memories/{id}:
115117
get:
116118
operationId: getMemoryById
119+
x-openai-isConsequential: false
117120
summary: Get a single memory by ID (full body)
118121
description: >
119122
Deterministic full-body retrieval of a specific memory by its UUID.
@@ -149,6 +152,7 @@ paths:
149152
/agent/memories/by-tag:
150153
post:
151154
operationId: getMemoriesByTag
155+
x-openai-isConsequential: false
152156
summary: Get full-body memories filtered by tags
153157
description: >
154158
Returns complete memory entries (with content) matching any of the given tags.
@@ -210,6 +214,7 @@ paths:
210214
/agent/memories/browse:
211215
post:
212216
operationId: browseMemories
217+
x-openai-isConsequential: false
213218
summary: Browse memory summaries (lightweight, no content)
214219
description: >
215220
Returns memory metadata (title, tags, origin, timestamps) without full content.
@@ -303,6 +308,7 @@ paths:
303308
/query:
304309
post:
305310
operationId: queryMemory
311+
x-openai-isConsequential: false
306312
summary: Query AI with memory context
307313
description: "AI answer grounded in selected memories. Use memory_filter to select which memories. Returns slim response (answer + metadata). Browse first, then query with tags or IDs."
308314
requestBody:
@@ -382,6 +388,7 @@ paths:
382388
/whoami:
383389
get:
384390
operationId: whoAmI
391+
x-openai-isConsequential: false
385392
summary: Check resolved identity from auth key
386393
responses:
387394
"200":

0 commit comments

Comments
 (0)