Recall memory
Search what the project and its workspace remember, by words in any order, or list it all without a query.
GET
/repos/{owner}/{name}/memoryPinned memories come first, then the most recently used. Members of the workspace and g1t’s agents only.
Anyone who can read the repository gets its project memory; workspace is filled only for members of the workspace, and is empty for anyone else. Each memory returned is marked used, which keeps it near the front of what agents are given.
- Authentication: Required. Send an access token as
Authorization: Bearer. - MCP tool:
memorywithactionrecall, and the same inputs - Scope: An access token needs
memory:read.
Path parameters
Section titled “Path parameters”| Name | Type | Required | Description |
|---|---|---|---|
owner |
string | Yes | The workspace that owns the repository. |
name |
string | Yes | The repository’s name. |
Query parameters
Section titled “Query parameters”| Name | Type | Required | Description |
|---|---|---|---|
q |
string | No | Words to look for. Leave out for everything. |
limit |
integer | No | At most 100 of each level; 20 if not given. |
Example request
Section titled “Example request”curl "https://api.g1t.sh/repos/flagon-io/hello/memory?q=pnpm" \ -H "Authorization: Bearer $G1T_TOKEN"Example response
Section titled “Example response”A successful request answers 200 with:
{ "project": [], "workspace": [ { "id": "mem_01m43t0a1s2d3f4g5h6j7k8l9z", "scope": "workspace", "workspace": "flagon-io", "repo": null, "text": "We use pnpm everywhere, never npm or yarn.", "kind": "convention", "source": { "kind": "person", "run_id": null, "repo": null, "number": null }, "created_by": "syntaqx", "pinned": true, "created_at": "2026-10-01T18:40:12.000Z", "updated_at": "2026-10-01T18:40:12.000Z", "last_used_at": null } ]}Errors
Section titled “Errors”A failed request answers with one of these statuses and a body like {"error": {"code": "not_found", "message": "Repository not found."}}. See errors.
| Status | Code | When |
|---|---|---|
| 401 | unauthenticated |
A token is required, or the one sent is not valid. |
| 403 | forbidden |
The token is valid but not allowed to do this, such as a member-only change or an agent token outside its repository. |
| 404 | not_found |
It does not exist, or you cannot see it. |
| 422 | invalid |
The input is not valid. message says which field and why. |