MagickMind

Composable context retrieval - query selected memory types in parallel

Supports an optional `x-api-key` header (Bearer token format) for API-key-scoped access.

POST
/v1/magickspaces/{id}/context

Authorization

BearerAuth
AuthorizationBearer <token>

MagickMind API key (mm_...) or user JWT, sent as Authorization: Bearer <token>. /v1/chat/completions accepts an API key only. JWTs (not mm_ keys) may alternatively be passed as a ?token= query parameter.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/magickspaces/string/context" \  -H "Content-Type: application/json" \  -d '{    "participant_id": "string"  }'
{  "chat_history": [    {      "content": "string",      "create_at": "string",      "id": "string",      "magickspace_id": "string",      "message_type": "string",      "reply_to_message_id": "string",      "sent_by_user_id": "string",      "status": "string",      "update_at": "string"    }  ],  "corpus": [    {      "content": "string"    }  ],  "fetcher": "string",  "magickspace_id": "string",  "participant_id": "string"}