---
title: "Developer Memory API"
description: "Public Memory API endpoints for ACT-R retrieval, encoding, developer event ingestion, and memory control."
date: "2026-12-04"
modified: "2026-12-04"
reviewed: "2026-12-04"
---

# Developer Memory API

> Public Memory API endpoints for ACT-R retrieval, encoding, developer event ingestion, and memory control.

Published on: 2026-12-04

Last updated on: 2026-12-04

The Developer [Memory API](https://achiral.ai/memory-api) exposes Achiral's ACT-R memory substrate under `/v1/memory`: retrieval, encoding, event ingestion, activation-aware ranking, reinforcement, suppression, tombstoning, and provenance-preserving writes.

If you need **agent-bound runtime/memory access**, use [Shelby Memory Agents](https://achiral.ai/ai-agent-memory). Shelby Agents are the separate product surface for durable agent identities, scoped runtime access, lifecycle, audit, billing boundaries, and agent-bound tokens.

## Machine-Readable Resources

Use these URLs when wiring agents, SDKs, gateways, or API discovery tooling:

- [OpenAPI specification](https://achiral.ai/openapi.json)
- [Well-known OpenAPI description](https://achiral.ai/.well-known/achiral-memory-api-openapi.json)
- [API catalog](https://achiral.ai/.well-known/api-catalog)
- [Auth.md agent authentication discovery](https://achiral.ai/auth.md)
- [LLM index](https://achiral.ai/llms.txt)
- [Achiral CLI](https://www.npmjs.com/package/@achiral/cli)
- [Achiral CLI source](https://github.com/Achiral-AI/achiral.cli)
- [Authenticated MCP server](https://mcp.achiral.ai)
- [MCP discovery endpoint](https://mcp.achiral.ai/mcp)
- [Well-known MCP manifest](https://mcp.achiral.ai/.well-known/achiral-mcp.json)
- [MCP public tool schemas](https://mcp.achiral.ai/.well-known/achiral-mcp-tools.json)
- [MCP protected resource metadata](https://mcp.achiral.ai/.well-known/oauth-protected-resource)

## ACT-R Verbs

Use the ACT-R-native verbs as the primary API language. Natural aliases stay available for readability and compatibility.

| Canonical verb | Natural alias      | Endpoint                        |
| -------------- | ------------------ | ------------------------------- |
| Retrieve       | Recall             | `POST /v1/memory/retrieve`      |
| Encode         | Remember           | `POST /v1/memory`               |
| Reinforce      | none               | `POST /v1/memory/:id/reinforce` |
| Suppress       | none               | `POST /v1/memory/:id/suppress`  |
| Explain        | Inspect provenance | `GET /v1/memory/:id/provenance` |
| Delete         | Tombstone          | `DELETE /v1/memory/:id`         |

`POST /v1/memory/recall` is the friendly retrieval alias. `POST /v1/memory/search` remains available as a compatibility alias for existing callers.

## Authentication

Use an Achiral Context Access Token:

```bash
Authorization: Bearer acm_...
```

For command-line workflows, install the official Achiral CLI:

```bash
npm install -g @achiral/cli
achiral login
```

The Memory API uses organization-level API tokens with explicit memory scopes. Agent-scoped paths are supported when you pass an agent slug, but tokens that are bound to agents cannot access memories outside their allowed agents. For a first-class agent-bound runtime, head to [Shelby Memory Agents](https://achiral.ai/ai-agent-memory).

When [Memory API environments](/docs/memory/api/environments) are enabled, create a separate token for Test and Production. The token selects the environment while the organization base URL stays the same. Do not send an environment name or ID in a header or request body. Tokens without an environment binding are rejected and must be recreated in the intended environment.

Required scopes:

| Operation                                   | Scope            |
| ------------------------------------------- | ---------------- |
| Retrieve memories                           | `memory:read`    |
| Encode memories                             | `memory:write`   |
| Ingest developer events                     | `memory:write`   |
| Reinforce, suppress, and inspect provenance | `memory:control` |
| Tombstone memories                          | `memory:delete`  |

## Pricing And Fair Use

The Memory API is included with Achiral workspace seat pricing for normal developer use. There are no memory-credit packs or public per-endpoint overage meters in V1.

Founder workspaces include light developer evaluation under existing Founder plan limits.

The Memory API uses the org-wide Chiro memory layer. For memory-augmented inference on Founder, bring an OpenAI-compatible model endpoint or upgrade; Achiral-hosted inference remains bounded by the workspace plan.

High-volume patterns move to Custom capacity planning instead of surprise usage billing. Examples include large CI/security streams, observability firehoses, high-frequency automated recall, long-retention bulk imports, dedicated Weaviate capacity, private infrastructure, and SLA-backed throughput.

Test and Production have separate usage counters and limits. See [Memory API environments](/docs/memory/api/environments) for the default limits and [API reference](/docs/reference/api-reference#rate-limiting) for the HTTP rate-limit contract.

For agent-bound runtime/memory access, use Shelby Memory Agents; Shelby pricing remains separate.

## Retrieve

```http
POST /v1/memory/retrieve
```

```json
{
  "query": "How does JWT key rotation work?",
  "limit": 8
}
```

Set `includeContext: true` when you want the same private runtime context block that Achiral can inject into memory-augmented inference:

```json
{
  "query": "How should the auth service rotate JWT keys?",
  "includeContext": true,
  "contextMode": "full"
}
```

The response includes retrieved memories and can add a `context` object with `systemBlock` and retrieval `stats`. Use this when your application brings its own model runtime but still wants Achiral to assemble scoped memory context.

Natural aliases:

```http
POST /v1/memory/recall
POST /v1/memory/search
```

Agent-scoped retrieval is available through:

```http
POST /v1/memory/agents/:agentSlug/retrieve
```

Natural aliases:

```http
POST /v1/memory/agents/:agentSlug/recall
POST /v1/memory/agents/:agentSlug/search
```

Achiral resolves the organization from the token and the agent from the path, `X-Achiral-Agent`, or SDK configuration. Agent-bound tokens cannot access memories outside their allowed agents.

## Encode

```http
POST /v1/memory
```

```json
{
  "text": "The auth service rotates JWT signing keys every 7 days.",
  "subject": "auth-service",
  "memoryKind": "architecture",
  "confidence": 0.92
}
```

Natural SDK alias: `remember()`.

Agent-scoped encoding is available through:

```http
POST /v1/memory/agents/:agentSlug
```

Send `Idempotency-Key` for retry-safe writes.

## Write Mode

The Memory API defaults to **Direct write**: authenticated `memory:write` calls become durable memory immediately.

Organization owners and admins on paid plans can switch writes to **Candidate review path** under **Memory > Core Memories** (`/memory/core`), beside the candidate review queue. Founder workspaces use Direct write only. Use candidate review for noisy, low-trust, user-generated, or auto-inferred memories that should be approved before they become durable retrievable memory.

| Mode                  | Behavior                                                                         |
| --------------------- | -------------------------------------------------------------------------------- |
| Direct write          | `encode()` writes directly into durable memory and can be retrieved immediately. |
| Candidate review path | `encode()` creates a memory candidate that must be reviewed before promotion.    |

## Event Ingestion

```http
POST /v1/memory/events
```

```json
{
  "type": "deployment.completed",
  "source": "github-actions",
  "subject": "api-service",
  "text": "api-service commit abc123 deployed to production.",
  "metadata": {
    "repo": "acme/api-service",
    "sha": "abc123",
    "environment": "production"
  }
}
```

Developer events enter Achiral's generic ingestion pipeline, become `BusinessEvent` records, and can stage durable memory candidates.

Natural SDK alias: `events.ingest()`.

## Control

Use memory control endpoints when an application needs to mark which memories were useful, hide stale or unsafe memories, inspect why a memory exists, or remove a memory.

```http
POST /v1/memory/:id/reinforce
```

```json
{
  "reason": "selected by answer synthesis",
  "actor": "sdk"
}
```

```http
POST /v1/memory/:id/suppress
```

```json
{
  "reason": "superseded by incident INC-2042",
  "actor": "developer"
}
```

```http
GET /v1/memory/:id/provenance
```

```http
DELETE /v1/memory/:id
```

`DELETE` tombstones memory instead of erasing it. Tombstoned memory is kept for provenance and audit, but it is removed from normal retrieval.

Agent-scoped control is available through the same path form:

```http
POST /v1/memory/agents/:agentSlug/:id/reinforce
POST /v1/memory/agents/:agentSlug/:id/suppress
GET /v1/memory/agents/:agentSlug/:id/provenance
DELETE /v1/memory/agents/:agentSlug/:id
```

## Next

- [SDK](/docs/memory/api/sdk)
- [Event ingestion](/docs/memory/api/event-ingestion)
- [Inference gateway](/docs/memory/api/inference-gateway)
