API referenceMemory organizations

Create Memory Organization

POST/api/v1/memory-organizations

Authorization

AuthorizationBearer <token>

A workspace API key (a13n_...)

In: header

Header Parameters

X-Workspace-ID?|

The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.

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/api/v1/memory-organizations" \  -H "Content-Type: application/json" \  -d '{    "model": "string",    "target": {      "id": "string"    }  }'
{  "candidate_memory_id": "string",  "created_at": "2019-08-24T14:15:22Z",  "created_by_id": "string",  "id": "string",  "request": {    "history": {      "after": "2019-08-24T14:15:22Z",      "before": "2019-08-24T14:15:22Z",      "max_runs": 100,      "session_ids": [        "string"      ]    },    "instructions": "Organize the saved memory files.",    "model": "string",    "output": "direct",    "target": {      "id": "string",      "kind": "memory"    }  },  "run_id": "string",  "session_id": "string",  "sources": [    {      "run_id": "string",      "sealed_at": "2019-08-24T14:15:22Z",      "session_id": "string",      "thread_id": "string"    }  ],  "thread_id": "string",  "workspace_id": "string"}