API Documentation
Extended compatibility and utility endpoints, including messages interoperability, request audit access, and auxiliary control APIs.
Additional APIs
POSTmessagesGETrequests
The endpoints below are part of the current public v1 surface and are useful for provider-native compatibility and request forensics.
POST
/api/v1/messagesAnthropic Messages-compatible endpoint with Mnexium features (history, recall, learn, prompts, memory policies, state).
Scope:
chat:writex-api-keyrequiredheader
Anthropic API key.
x-mnexium-keyrequiredheader
Mnexium API key.
x-mnx-memory-policyheader
Optional memory policy override (policy ID or
false).mnxobject
Optional Mnexium config in body (or pass via x-mnx headers).
bash
curl -X POST "https://www.mnexium.com/api/v1/messages" \
-H "x-mnexium-key: $MNX_KEY" \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "x-mnx-memory-policy: mp_support_assistant" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-20250514",
"messages": [{ "role": "user", "content": "Remember that I prefer morning meetings." }],
"mnx": { "subject_id": "user_123", "history": true, "learn": true, "recall": true }
}'GET
/api/v1/audit/requestsQuery raw request/response audit logs (including provider payloads and injected memory metadata).
Scope:
audit:readaudit_idstring
Get one record by ID.
chat_idstring
Filter by chat.
subject_idstring
Filter by subject.
directionstring
request or response.
request_typestring
chat, responses, or messages.
limitnumber
Default: 100, Max: 1000.
offsetnumber
Pagination offset.