{"openapi":"3.1.0","info":{"title":"Mnemix Public API","version":"1.0.0-alpha","description":"Public frozen-3 API for Mnemix, the memory and enrichment layer for AI agents. The GA public surface is POST /v1/recall_and_enrich, POST /v1/calls/end, and GET /v1/caller/{phone_number}.","x-mnemix-canonical":"https://mnemix.ai/agents.json","x-mnemix-public-surface":"frozen-3"},"servers":[{"url":"https://mcp.mnemix.ai"}],"security":[{"bearerAuth":[]}],"paths":{"/v1/recall_and_enrich":{"post":{"operationId":"recallAndEnrich","summary":"Voice-entry caller memory recall and enrichment.","description":"Auto-creates the contact when needed, recalls same-number memory, and fires Trestle, Twilio Lookup, and Baylio enrichment for cold and returning callers. Use this as the pre-call hook for voice agents.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecallAndEnrichRequest"}}}},"responses":{"200":{"description":"Voice-entry enrichment and memory response.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/v1/calls/end":{"post":{"operationId":"endCall","summary":"End a voice call and persist its memory write-back.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallEndRequest"}}}},"responses":{"204":{"description":"Call memory persisted."},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/ValidationError"}}}},"/v1/caller/{phone_number}":{"get":{"operationId":"getCaller","summary":"Read-only caller profile lookup by phone number.","parameters":[{"name":"phone_number","in":"path","required":true,"description":"Caller phone number in E.164 format.","schema":{"type":"string"},"examples":{"us":{"value":"+15551234567"}}}],"responses":{"200":{"description":"Caller profile.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"description":"Caller not found."}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"responses":{"Unauthorized":{"description":"Missing or invalid bearer token."},"ValidationError":{"description":"Invalid request body."}},"schemas":{"RecallAndEnrichRequest":{"type":"object","required":["phone_number"],"properties":{"phone_number":{"type":"string","description":"Caller phone number, preferably E.164."},"call_id":{"type":"string"},"metadata":{"type":"object","additionalProperties":true}},"additionalProperties":true},"CallEndRequest":{"type":"object","required":["session_id","phone_number"],"properties":{"session_id":{"type":"string"},"phone_number":{"type":"string"},"transcript":{"type":"string"},"outcome":{"type":"string"},"metadata":{"type":"object","additionalProperties":true}},"additionalProperties":true}}}}