Retrieve the episode count for a project.
An episode is the minimal unit of memory stored in the MemMachine system. In most cases, a single episode corresponds to one message or interaction from a user. Episodes are appended as the project accumulates conversational or operational data.
This endpoint returns the total number of episodes currently recorded for the specified project. If the project does not exist, a not-found error is returned.
Specification model for retrieving a project.
This model defines the parameters required to fetch an existing project.
Both the organization ID and project ID follow the standard SafeId
validation rules.
The combination of org_id and project_id uniquely identifies the
project to retrieve.
The unique identifier of the organization.
- Must not contain slashes (`/`).
- Must contain only letters, numbers, underscores, hyphens, and Unicode
characters (e.g., Chinese/Japanese/Korean). No slashes or other symbols
are allowed.
This value determines the namespace the project belongs to.The identifier of the project.
- Must be unique within the organization.
- Must not contain slashes (`/`).
- Must contain only letters, numbers, underscores, hyphens, and Unicode
characters (e.g., Chinese/Japanese/Korean). No slashes or other symbols
are allowed.
This ID is used in API paths and resource locations.Successful Response
Response model representing the number of episodes associated with a project.
This model is typically returned by analytics or monitoring endpoints that track usage activity (e.g., number of computation episodes, workflow runs, or operational cycles).
The count reflects the current recorded total at the time of the request.
The total number of episodic memories in the project.
x >= 0