---
title: "Create a project memory"
method: POST
path: "/v1/projects/{projectId}/memories"
tags: ["projects"]
---

# Create a project memory

`POST /v1/projects/{projectId}/memories`

Create a manual project memory that agents can use as project context.

## Path parameters

- `projectId` string, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `category` 'site_structure' | 'test_insights' | 'user_preferences', required
  - `title` string, required
  - `content` string, required
  - `importance` 'high' | 'medium' | 'low', required

## Response `201`

Project memory created

- ProjectsCreateAProjectMemoryResponse201
  - `memory` ProjectMemory, required
    - `id` string, uuid, required
    - `category` 'site_structure' | 'test_insights' | 'user_preferences', required
    - `title` string, required
    - `content` string, required
    - `importance` 'high' | 'medium' | 'low', required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
  - `pruned` integer, required

## Other responses

- `400` — Bad Request - Invalid input parameters
- `401` — Unauthorized - Invalid or missing API key
- `404` — Project not found
- `409` — Memory limit reached and no lower-priority memories can be pruned
- `429` — Too Many Requests - Usage limit exceeded
- `500` — Internal Server Error
- `504` — Gateway Timeout - Test execution exceeded time limit

## Changes

- **2026-08-22** `bf198f94879a` — 2 breaking, 1 warning
  - the `content` request property's minLength was increased from `0` to `1`
  - the `title` request property's minLength was increased from `0` to `1`
  - the `title` request property's maxLength was set to `200`

[Change history](https://skmtc.dev/tester/apis/testerarmy-api/changes/v1/projects/:projectId/memories/post.md)

---

[API](https://skmtc.dev/tester/apis/testerarmy-api.md) · [All operations](https://skmtc.dev/tester/apis/testerarmy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tester/testerarmy-api/revisions/de46736ea0c8/schema)
