Skip to main content
POST
/
v1
/
projects
/
{projectId}
/
memory
Create memory
curl --request POST \
  --url https://api.example.com/v1/projects/{projectId}/memory \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>",
  "category": "<string>"
}
'
projectId
string
required
Project UUID.
content
string
required
Memory content (1-10,000 characters).
category
string
One of decision, learning, progress, preference. If omitted, Kommit infers the category.
The memory is automatically embedded as a vector for semantic search.
curl -X POST https://api.getkommit.ai/v1/projects/a1b2c3d4-e5f6-7890-abcd-ef1234567890/memory \
  -H "Authorization: Bearer km_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "Rate limiting is implemented per-endpoint using an in-memory store. Switch to Redis-backed rate limiting before scaling beyond a single instance.",
    "category": "decision"
  }'