# Context Memory

## POST /app/api/v1/context-memory/create

> Create a new user Context Memory Item (+ optional tenant union OR tenant id/label). Prefer tenant\_union\_id for union-scoped context (multiple integration slots); tenant\_id+tenant\_label for upstream tenant scoping.

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"in":"header","name":"Authorization","type":"apiKey"}}},"paths":{"/app/api/v1/context-memory/create":{"post":{"description":"Create a new user Context Memory Item (+ optional tenant union OR tenant id/label). Prefer tenant_union_id for union-scoped context (multiple integration slots); tenant_id+tenant_label for upstream tenant scoping.","operationId":"context_memory_create_create","requestBody":{"content":{"application/json":{"schema":{"properties":{"content":{"default":"Hello world","type":"string"},"tenant_id":{"default":null,"type":"string"},"tenant_label":{"default":null,"type":"string"},"tenant_union_id":{"default":null,"type":"number"}},"type":"object"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"item_id":{"type":"number"}},"type":"object"}}},"description":"Context Memory Item created"},"400":{"content":{"application/json":{"schema":{"properties":{"error_msg":{"type":"string"}},"type":"object"}}},"description":"Bad request - invalid input"},"401":{"content":{"application/json":{"schema":{"properties":{"error_msg":{"type":"string"}},"type":"object"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"type":"object"}}},"description":"Access denied"},"500":{"content":{"application/json":{"schema":{"properties":{"error_msg":{"type":"string"}},"type":"object"}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"properties":{"error_msg":{"type":"string"}},"type":"object"}}},"description":"System not ready for requests"}},"tags":["context-memory"]}}}}
```

## DELETE /app/api/v1/context-memory/delete/{item\_id}

> Delete an existing user Context Memory Item

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"in":"header","name":"Authorization","type":"apiKey"}}},"paths":{"/app/api/v1/context-memory/delete/{item_id}":{"delete":{"description":"Delete an existing user Context Memory Item","operationId":"context_memory_delete_destroy","parameters":[{"in":"path","name":"item_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"item_id":{"type":"number"}},"type":"object"}}},"description":"Context Memory Item deleted"},"401":{"content":{"application/json":{"schema":{"properties":{"error_msg":{"type":"string"}},"type":"object"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"type":"object"}}},"description":"Access denied"},"404":{"content":{"application/json":{"schema":{"properties":{"error_msg":{"type":"string"}},"type":"object"}}},"description":"Resource not found"},"500":{"content":{"application/json":{"schema":{"properties":{"error_msg":{"type":"string"}},"type":"object"}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"properties":{"error_msg":{"type":"string"}},"type":"object"}}},"description":"System not ready for requests"}},"tags":["context-memory"]}}}}
```

## PUT /app/api/v1/context-memory/update/{item\_id}

> Update an existing user Context Memory Item (+ optional tenant union OR tenant id/label). Prefer tenant\_union\_id for union-scoped context (multiple integration slots); tenant\_id+tenant\_label for upstream tenant scoping.

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"in":"header","name":"Authorization","type":"apiKey"}}},"paths":{"/app/api/v1/context-memory/update/{item_id}":{"put":{"description":"Update an existing user Context Memory Item (+ optional tenant union OR tenant id/label). Prefer tenant_union_id for union-scoped context (multiple integration slots); tenant_id+tenant_label for upstream tenant scoping.","operationId":"context_memory_update_update","parameters":[{"in":"path","name":"item_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"content":{"default":"Hello world","type":"string"},"tenant_id":{"default":null,"type":"string"},"tenant_label":{"default":null,"type":"string"},"tenant_union_id":{"default":null,"type":"number"}},"type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"item_id":{"type":"number"}},"type":"object"}}},"description":"Context Memory Item updated"},"400":{"content":{"application/json":{"schema":{"properties":{"error_msg":{"type":"string"}},"type":"object"}}},"description":"Bad request - invalid input"},"401":{"content":{"application/json":{"schema":{"properties":{"error_msg":{"type":"string"}},"type":"object"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"}},"type":"object"}}},"description":"Access denied"},"404":{"content":{"application/json":{"schema":{"properties":{"error_msg":{"type":"string"}},"type":"object"}}},"description":"Resource not found"},"500":{"content":{"application/json":{"schema":{"properties":{"error_msg":{"type":"string"}},"type":"object"}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"properties":{"error_msg":{"type":"string"}},"type":"object"}}},"description":"System not ready for requests"}},"tags":["context-memory"]}}}}
```
