# Count the tag keys in use in this organization's memories, or one key's values when key is given. Pass agentId to count only that agent's memories. **GET** `/v1/agent-memory/tags` **Operation ID**: `tags` **Summary**: Count the tag keys in use in this organization's memories, or one key's values when key is given. Pass agentId to count only that agent's memories. ## Tags - Agent Memory ## Parameters - **agentId** (optional) - query - Type: string - **key** (optional) - query - Type: string ## Responses ### 200 The counts - **Content-Type**: `application/json` / `MemoryTagCounts`