Remember
Ingest data and build the knowledge graph in a single call.
This endpoint combines the add and cognify steps. Data is ingested first, then automatically processed into a structured knowledge graph.
Request Parameters
- data (List[UploadFile]): Files to upload and process.
- datasetName (Optional[str]): Name of the target dataset.
- datasetId (Optional[UUID]): UUID of an existing dataset.
- session_id (Optional[str]): Session to attribute this memory to. When set, data is stored in the session cache and bridged into the permanent graph in the background; the session is tracked in the sessions dashboard. When omitted, data is ingested directly via add + cognify.
- node_set (Optional[List[str]]): Node identifiers for graph organisation.
- run_in_background (Optional[bool]): Run the cognify step asynchronously (default: False).
- custom_prompt (Optional[str]): Custom prompt for entity extraction.
- chunk_size (Optional[int]): Maximum tokens per chunk (default: 4096).
- chunks_per_batch (Optional[int]): Chunks per cognify batch.
- ontology_key (Optional[List[str]]): Reference to one or more previously uploaded ontology files to use for knowledge graph construction.
- graph_model (Optional[str]): JSON-serialised graph model schema (same dict format accepted by the cognify endpoint).
- content_type (Optional[str]): Set to “skills” to ingest SKILL.md files as Skill nodes; omit for normal ingestion.
Either datasetName or datasetId must be provided.
Error Codes
- 400 Bad Request: Neither datasetId nor datasetName provided, unsupported content_type, or invalid graph_model JSON/schema
- 409 Conflict: Error during processing
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Name of the target dataset (created if it does not exist). Required unless datasetId is provided.
"default_dataset"
""
Session to attribute this memory to (e.g. claude-code-1718000000). When set, the data is stored in the session cache (and bridged into the permanent graph in the background) and the session appears in the sessions dashboard. Leave empty for a direct add+cognify.
""
Tags the ingested data with named node sets (e.g. per-agent or per-project groups). Extracted graph nodes are linked to these sets, and recall/search can later be restricted to them via their node_name parameter. Leave empty to skip tagging.
null
If true, the request returns immediately (status 'running' with a pipeline_run_id) while ingestion and graph building continue server-side — poll GET /v1/datasets/status to track completion. If false, the request blocks until the knowledge graph is fully built, which can take minutes for large files.
Replaces the default entity-extraction prompt used during graph building. Use it to steer which entities and relationships get extracted (e.g. focus on technical concepts, people, or contracts). Leave empty for the default prompt.
Maximum tokens per text chunk during ingestion (default: 4096). Each chunk is processed by the LLM separately for entity extraction: larger chunks give more context per extraction but fewer, coarser passes; smaller chunks give finer-grained extraction at higher LLM cost.
Number of chunks processed per cognify task batch (default: 36). Controls ingestion parallelism/throughput; rarely needs changing.
Keys of previously uploaded ontologies (see /v1/ontologies) to ground entity extraction. Leave empty to ingest without an ontology.
JSON-serialised graph model schema (same format as the cognify endpoint), e.g. {"title": "CompanyGraph", "type": "object", "properties": {...}}. Must include a top-level 'title' key. Leave empty to use the default KnowledgeGraph model — a restrictive schema here can produce an empty graph. Invalid JSON or an unconvertible schema is rejected with 400.
""
Set to 'skills' to ingest SKILL.md files as dataset-scoped Skill nodes. Only supported value: 'skills'; leave empty for normal ingestion.
""
COGX archive imports only: 'preserve' (default), 'hybrid', or 're-derive'.
""
content_type='skills' only: inline SKILL.md markdown to ingest without a file upload (no-code path). When set and no files are uploaded, it is written to a temporary SKILL.md and ingested via the normal skills pipeline. Pair with skill_name to control the resulting skill name.
""
content_type='skills' + skills_text only: name/slug for the inline skill (defaults to 'skill').
""
Response
Successful Response
The response is of type Response Remember Api V1 Remember Post · object.