{
  "id": "use-agent-memory",
  "title": "Use the Agent Memory API on Redis Cloud",
  "url": "https://redis.io/docs/latest/operate/rc/context-engine/agent-memory/use-agent-memory/",
  "summary": "Use the Agent Memory API to store and retrieve working and long-term memory for AI agents.",
  "tags": [
    "docs",
    "operate",
    "rc"
  ],
  "last_updated": "2026-05-18T05:44:54-07:00",
  "page_type": "content",
  "content_hash": "eefe135e8886958477f162867eff66c99917090e234adc2c0a21cdf7084fe18e",
  "sections": [
    {
      "id": "content",
      "title": "Content",
      "role": "content",
      "text": "You can use the [Agent Memory API and SDK](https://redis.io/docs/latest/develop/ai/context-engine/agent-memory/api-examples) from your client app to store and retrieve working and long-term memory for AI agents.\n\nTo access the Agent Memory API, you need:\n\n- Agent Memory API endpoint\n- Agent Memory service API key\n- Store ID\n\nFor Agent Memory on Redis Cloud, the endpoint and Store ID are available in the Agent Memory service's **Configuration** page in the [**General settings** section](https://redis.io/docs/latest/operate/rc/context-engine/agent-memory/view-service#general-settings).\n\nThe Agent Memory API key is only available immediately after you create the service API key. If you lost this value, you will need to [generate a new service API key](https://redis.io/docs/latest/operate/rc/context-engine/agent-memory/view-service#replace-service-api-key) to be able to use the Agent Memory API.\n\nWhen you call the API, you need to pass the Agent Memory API key in the `Authorization` header as a Bearer token and the Store ID as the `storeId` path parameter.\n\nSee the [Agent Memory API and SDK examples](https://redis.io/docs/latest/develop/ai/context-engine/agent-memory/api-examples) for more information on how to use the Agent Memory API."
    }
  ],
  "examples": []
}
