Add Memory Batch V1
Add multiple memory items in a batch with size validation and background processing.
**Authentication Required**:
One of the following authentication methods must be used:
- Bearer token in `Authorization` header
- API Key in `X-API-Key` header
- Session token in `X-Session-Token` header
**Required Headers**:
- Content-Type: application/json
- X-Client-Type: (e.g., 'papr_plugin', 'browser_extension')
The API validates individual memory content size against MAX_CONTENT_LENGTH environment variable (defaults to 15000 bytes).
Query parameters
If True, skips adding background tasks for processing
If True, skips adding background tasks for processing
If True, applies holographic neural transforms and stores in holographic collection
If True, applies holographic neural transforms and stores in holographic collection
Frequency schema for holographic embedding (e.g. 'cosqa', 'scifact'). Required when enable_holographic=True. Call GET /v1/frequencies to see available schemas.
Frequency schema for holographic embedding (e.g. 'cosqa', 'scifact'). Required when enable_holographic=True. Call GET /v1/frequencies to see available schemas.
Request body
Example request
{
"batch_size": 10,
"external_user_id": "external_user_abcde",
"memories": [
{
"content": "Meeting notes from the product planning session",
"metadata": {
"createdAt": "2024-03-21T10:00:00Z",
"emoji tags": "📊,💡,📝",
"emotion tags": "focused, productive",
"hierarchical structures": "Business/Planning/Product",
"topics": "product, planning"
},
"type": "text"
},
{
"content": "Follow-up tasks from the planning meeting",
"metadata": {
"createdAt": "2024-03-21T11:00:00Z",
"emoji tags": "✅,📋",
"emotion tags": "organized",
"hierarchical structures": "Business/Tasks/Planning",
"topics": "tasks, planning"
},
"type": "text"
}
],
"user_id": "internal_user_id_12345"
}Response
Memories successfully added
Changes
Changed in 11 of the 37 revisions of this API.3868
- ▲
removed from the
////request propertyanyOflistrequest-property-any-of-removed
- ○
added the new optional
queryrequest parameterenable_holographicnew-optional-request-parameter
- ○
added the new optional
queryrequest parameterfrequency_schema_idnew-optional-request-parameter
- ○
added
subschema #1to the////request propertyanyOflistrequest-property-any-of-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
removed
subschema #1from the////request propertyanyOflistrequest-property-any-of-removed
- ●
deleted the
queryrequest parameterenable_holographicrequest-parameter-removed
- ●
deleted the
queryrequest parameterfrequency_schema_idrequest-parameter-removed
- ○
added to the
////request propertyanyOflistrequest-property-any-of-added
This revision also has 8 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the new optional
queryrequest parameterenable_holographicnew-optional-request-parameter
- ○
added the new optional
queryrequest parameterfrequency_schema_idnew-optional-request-parameter
This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ●
deleted the
queryrequest parameterenable_holographicrequest-parameter-removed
- ●
deleted the
queryrequest parameterfrequency_schema_idrequest-parameter-removed
- ●
- ▲
removed from the
////request propertyanyOflistrequest-property-any-of-removed
- ○
added the new optional
queryrequest parameterenable_holographicnew-optional-request-parameter
- ○
added the new optional
queryrequest parameterfrequency_schema_idnew-optional-request-parameter
- ○
added
subschema #1to the////request propertyanyOflistrequest-property-any-of-added
- ▲
- ●
deleted the
queryrequest parameterenable_holographicrequest-parameter-removed
- ●
deleted the
queryrequest parameterfrequency_schema_idrequest-parameter-removed
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
request property
deprecatedrequest-property-deprecated
- ○
request property
//deprecatedrequest-property-deprecated
- ○
request property
//deprecatedrequest-property-deprecated
- ○
request property
deprecatedrequest-property-deprecated
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
added the new optional
queryrequest parameterenable_holographicnew-optional-request-parameter
- ○
added the new optional
queryrequest parameterfrequency_schema_idnew-optional-request-parameter
- ○
added the new optional request property
///////////new-optional-request-property
- ○
added the new optional request property
///////////new-optional-request-property
- ○
added the new optional request property
/////////new-optional-request-property
- ○
added the new optional request property
/////////new-optional-request-property
- ○
request property
//deprecatedrequest-property-deprecated
- ○
request property
deprecatedrequest-property-deprecated
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
- ●
removed the request property
////request-property-removed
- ●
removed the request property
//////request-property-removed
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
////new-optional-request-property
- ○
added the new optional request property
////new-optional-request-property
- ○
added the new optional request property
////new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
request property
deprecatedrequest-property-deprecated
- ○
request property
//deprecatedrequest-property-deprecated
- ○
request property
////deprecatedrequest-property-deprecated
- ○
request property
////deprecatedrequest-property-deprecated
- ○
request property
////deprecatedrequest-property-deprecated
- ○
request property
////deprecatedrequest-property-deprecated
- ○
request property
//deprecatedrequest-property-deprecated
- ○
request property
deprecatedrequest-property-deprecated
- ○
request property
////list-of-types was widened by adding typesarrayto media typeapplication/jsonrequest-property-list-of-types-widened
- ●
- ○
added the new optional request property
////new-optional-request-property
- ○
added the new optional request property
////new-optional-request-property
- ○
added the new optional request property
////new-optional-request-property
- ○
added the new optional request property
////new-optional-request-property
- ○