Back to Custom GPT setup

OpenAPI starter schema

Minimal starter for GPT Actions. Align paths and methods with the live Memxus REST API (see API Reference). Replace servers.url if your deployment uses another host.

{
  "openapi": "3.1.0",
  "info": {
    "title": "Memxus",
    "version": "1.0.0",
    "description": "Persistent memory API — adjust paths to match /v1 routes documented at aimemory.lat/docs/api"
  },
  "servers": [{ "url": "https://api.aimemory.lat/v1" }],
  "paths": {
    "/memories": {
      "post": {
        "operationId": "createMemory",
        "summary": "Remember content",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["content"],
                "properties": {
                  "content": { "type": "string" },
                  "type": { "type": "string" },
                  "tags": { "type": "array", "items": { "type": "string" } }
                }
              }
            }
          }
        },
        "responses": { "200": { "description": "OK" } }
      }
    },
    "/memories/search": {
      "post": {
        "operationId": "searchMemories",
        "summary": "Recall by semantic search",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["query"],
                "properties": {
                  "query": { "type": "string" },
                  "limit": { "type": "integer", "default": 5 }
                }
              }
            }
          }
        },
        "responses": { "200": { "description": "OK" } }
      }
    },
    "/memories/{id}": {
      "delete": {
        "operationId": "deleteMemory",
        "summary": "Forget a memory",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": { "type": "string" }
          }
        ],
        "responses": { "204": { "description": "Deleted" } }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API Key"
      }
    }
  },
  "security": [{ "bearerAuth": [] }]
}