Add a curated company fact
curl --request POST \
--url https://api.memcontext.in/api/context-vault/memories \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({workspaceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a', content: '<string>'})
};
fetch('https://api.memcontext.in/api/context-vault/memories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/context-vault/memories"
payload = {
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"memory": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"memoryType": "document",
"createdAt": "2023-11-07T05:31:56Z",
"category": "<string>",
"scope": "<string>",
"project": "<string>",
"sourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sourceTitle": "<string>",
"sourceUrl": "<string>"
}
}Context Vault
Add a curated company fact
Adds atomic workspace context that may not be backed by an uploaded document.
POST
https://api.memcontext.in
/
api
/
context-vault
/
memories
Add a curated company fact
curl --request POST \
--url https://api.memcontext.in/api/context-vault/memories \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({workspaceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a', content: '<string>'})
};
fetch('https://api.memcontext.in/api/context-vault/memories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.memcontext.in/api/context-vault/memories"
payload = {
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"memory": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"memoryType": "document",
"createdAt": "2023-11-07T05:31:56Z",
"category": "<string>",
"scope": "<string>",
"project": "<string>",
"sourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sourceTitle": "<string>",
"sourceUrl": "<string>"
}
}Authorizations
ApiKeyAuthCookieAuth
API key created from the MemContext dashboard. Keys are prefixed with mc_, bound to one workspace, and API-key requests cannot override that workspace.
Body
application/json
Required string length:
1 - 800Optional vault inside the workspace. Defaults to the workspace's default vault.
Available options:
preference, fact, decision, context Maximum string length:
200Maximum string length:
100Response
201 - application/json
Curated company fact created.
Hide child attributes
Hide child attributes
document memories are extracted from sources; company memories are curated workspace facts.
Available options:
document, company 