Skip to main content
POST
https://api.memcontext.in
/
api
/
company-brain
/
memories
Add a curated company fact
curl --request POST \
  --url https://api.memcontext.in/api/company-brain/memories \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "content": "<string>"
}
'
{
  "memory": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "content": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "category": "<string>",
    "scope": "<string>",
    "project": "<string>",
    "sourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "sourceTitle": "<string>",
    "sourceUrl": "<string>"
  }
}

Authorizations

X-API-Key
string
header
required

API key created from the MemContext dashboard. Keys are prefixed with mc_.

Body

application/json
workspaceId
string<uuid>
required
content
string
required
Required string length: 1 - 800
category
enum<string>
default:fact
Available options:
preference,
fact,
decision,
context
scope
string
Maximum string length: 200
project
string
Maximum string length: 100

Response

201 - application/json

Curated company fact created.

memory
object
required