Request
Headers
| Name | Required | Description |
|---|---|---|
X-API-Key | Yes | Your MemLayer API key (ml_live_xxx) |
Query Parameters
Return memories belonging to this user. Must exactly match the value used when storing.
Return memories associated with this agent. Must exactly match the value used when storing.
Optional filter. One of
episodic, semantic, or summary. Omit to return all types.Number of memories to return per page. Range: 1–100.
Number of memories to skip before returning results. Use with
limit to paginate through large memory sets.Response
Success — 200
Array of memory objects for this page, ordered by
created_at descending. score and score_detail are always null in list responses — they are only populated by the search endpoint.Total count of memories matching the query (across all pages), not just the current page. Use this to calculate the number of pages:
ceil(total / limit).The
limit value applied to this request.The
offset value applied to this request.Errors
| Code | Meaning |
|---|---|
401 | Invalid or missing X-API-Key |
403 | Account suspended |
422 | Validation error — check parameter types and constraints |
