curl --request POST \
--url https://api.orq.ai/v2/memory-stores/{memory_store_key}/memories/{memory_id}/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "<string>",
"metadata": {}
}
'{
"_id": "<string>",
"memory_id": "<string>",
"store_id": "<string>",
"text": "<string>",
"created": "<string>",
"updated": "<string>",
"workspace_id": "<string>",
"created_by_id": "<string>",
"updated_by_id": "<string>",
"metadata": {}
}Creates a new document in the specified memory.
curl --request POST \
--url https://api.orq.ai/v2/memory-stores/{memory_store_key}/memories/{memory_id}/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "<string>",
"metadata": {}
}
'{
"_id": "<string>",
"memory_id": "<string>",
"store_id": "<string>",
"text": "<string>",
"created": "<string>",
"updated": "<string>",
"workspace_id": "<string>",
"created_by_id": "<string>",
"updated_by_id": "<string>",
"metadata": {}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique key identifier of the memory store
The unique identifier of the memory
The content of the memory document (whitespace trimmed).
1Flexible key-value pairs for custom filtering and categorization. Clients can add arbitrary string metadata to enable future filtering of memory documents based on their specific needs (e.g., document type, source, topic, relevance score, or any custom taxonomy).
Show child attributes
Memory document successfully created.
The content of the memory document (whitespace trimmed).
1Flexible key-value pairs for custom filtering and categorization. Clients can add arbitrary string metadata to enable future filtering of memory documents based on their specific needs (e.g., document type, source, topic, relevance score, or any custom taxonomy).
Show child attributes
Was this page helpful?