# 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"]}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dropzone.ai/api/context-memory.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
