---
title: "Store a fact"
method: POST
path: "/api/v1/facts"
---

# Store a fact

`POST /api/v1/facts`

## Request

- Base URL: `https://ctxstore.ai`
- URL: `https://ctxstore.ai/api/v1/facts`
- Auth: HTTP bearer

Store a persistent memory fact. Facts are semantically indexed and retrievable across any session or platform.

## Request body

- object
  - `text` string, required: The fact to store
  - `category` 'preference' | 'decision' | 'identity' | 'technical' | 'relationship', required: Fact category for filtering
  - `is_permanent` boolean: Whether the fact persists indefinitely

## Response `201`

Fact stored successfully

- object
  - `fact_id` string
  - `category` string
  - `is_permanent` boolean

## Other responses

- `400`: Invalid request
- `401`: Unauthorized

---

[API](https://skmtc.dev/ctxstore/apis/ctxstore-ai.md) · [All operations](https://skmtc.dev/ctxstore/apis/ctxstore-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/ctxstore/apis/ctxstore-ai/revisions/0581ff18c0f4?raw)
