> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memorylake.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List Agent Facts

> Returns a paginated list of facts for a specific agent

```
GET /openapi/memorylake/api/v3/workspaces/{workspaceId}/agents/{agentId}/facts
```

Returns a paginated list of an agent's own facts in a workspace — what it has learned, and how it is meant to behave — accumulated across every project in the workspace.

<Note>
  **Permission required:** `workspace_agent:fact_read`
</Note>

### Path Parameters

<ParamField path="workspaceId" type="string" required>
  Workspace ID
</ParamField>

<ParamField path="agentId" type="string" required>
  Agent ID
</ParamField>

### Query Parameters

<ParamField query="page_size" type="integer" default="50">
  Number of facts to return per page. Range: 1–200.
</ParamField>

<ParamField query="continuation_token" type="string">
  Token from a previous response to fetch the next page of results
</ParamField>

<ParamField query="fact_fuzzy" type="string">
  Filter facts by content substring
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET 'https://app.memorylake.ai/openapi/memorylake/api/v3/workspaces/ws-fe314186ccd18cde04d6af48a5afd79f/agents/agent-f8bf71ab17ed8eccad8c0e8ae708273f/facts?page_size=20' \
    -H 'Authorization: Bearer sk_xxxxxx'
  ```
</RequestExample>

### Response

<ResponseField name="data" type="object">
  <Expandable title="Paginated fact list">
    <ResponseField name="items" type="array">
      Array of fact objects

      <Expandable title="Fact object">
        <ResponseField name="id" type="string">Unique fact identifier</ResponseField>
        <ResponseField name="fact" type="string">The fact text</ResponseField>
        <ResponseField name="metadata" type="object">Arbitrary key-value metadata attached to the fact</ResponseField>
        <ResponseField name="expired" type="boolean">Whether the fact has been forgotten</ResponseField>
        <ResponseField name="score" type="number">Relevance score</ResponseField>
        <ResponseField name="expiration_date" type="string|null">Scheduled expiration date, or `null` if the fact does not expire</ResponseField>
        <ResponseField name="created_at" type="string">Creation timestamp</ResponseField>
        <ResponseField name="updated_at" type="string">Last update timestamp</ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="continuation_token" type="string|null">
      Token to retrieve the next page. `null` when there are no more results.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "success": true,
    "data": {
      "items": [
        {
          "id": "fact-11a0e057d09877c9c492633fd60424fc",
          "fact": "Replies to support tickets in the customer's language",
          "metadata": {
            "category": "skills",
            "confidence": "high"
          },
          "expired": false,
          "score": 0.92,
          "expiration_date": null,
          "created_at": "2025-05-20T10:00:00Z",
          "updated_at": "2025-05-20T10:00:00Z"
        },
        {
          "id": "fact-9e6e9b323824eb264c1165994af65c1e",
          "fact": "Reports times in UTC",
          "metadata": {
            "category": "work"
          },
          "expired": false,
          "score": 0.85,
          "expiration_date": "2026-05-20T10:00:00Z",
          "created_at": "2025-06-01T16:45:00Z",
          "updated_at": "2025-06-01T16:45:00Z"
        }
      ],
      "continuation_token": "eyJsYXN0X2lkIjoiZmFjdF8xYTJiM2M0ZDVlNmYifQ"
    }
  }
  ```
</ResponseExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.