> ## 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.

# MemoryLake API Reference

> Complete API documentation for MemoryLake — turn documents and conversations into searchable, structured memories

## API Overview

The MemoryLake API lets you feed documents and conversations into a project, automatically extract structured facts, and search across all memory sources with natural language. Use it to build AI applications with long-term memory.

## Base URL

```
https://app.memorylake.ai/openapi/memorylake
```

## Authentication

All API requests require a Bearer token in the `Authorization` header. See [Authentication](/features/memorylake/api-reference/authentication) for details.

## API Sections

<CardGroup cols={2}>
  <Card title="Core Memory Operations" icon="brain" href="/features/memorylake/api-reference/core-memory/overview">
    The 3 essential APIs: import documents, append conversation messages, and search memories.
  </Card>

  <Card title="Library" icon="folder-tree" href="/features/memorylake/api-reference/library/overview">
    File storage — upload and manage files before importing them into projects.
  </Card>

  <Card title="Workspaces" icon="layer-group" href="/features/memorylake/api-reference/workspaces/list-workspaces">
    Create and manage workspaces — the top-level namespace for data isolation.
  </Card>

  <Card title="Actors" icon="user" href="/features/memorylake/api-reference/actors/list-actors">
    Manage participant identities and their associated facts.
  </Card>

  <Card title="Agents" icon="robot" href="/features/memorylake/api-reference/agents/list-agents">
    Define AI agents with versioning and A2A protocol support.
  </Card>

  <Card title="Projects" icon="diagram-project" href="/features/memorylake/api-reference/v3-projects/list-projects">
    Manage projects and their documents, conversations, and facts.
  </Card>
</CardGroup>

## Common Patterns

### Response Format

All responses follow this structure:

```json theme={null}
{
  "success": true,
  "message": "Operation completed successfully",
  "data": {
    // Response payload
  }
}
```

Error responses:

```json theme={null}
{
  "success": false,
  "message": "Error description",
  "error_code": "ERROR_CODE"
}
```

### Pagination

List endpoints use continuation-token pagination:

**Query Parameters**:

* `page_size`: Number of items per page
* `continuation_token`: Token from a previous response to fetch the next page

When the response `continuation_token` is `null`, there are no more pages.

### Timestamps

All timestamps use ISO 8601 format:

```
2024-01-15T10:30:00Z
```

## Next Steps

<CardGroup cols={2}>
  <Card title="Core Memory Operations" icon="rocket" href="/features/memorylake/api-reference/core-memory/overview">
    Start with the core APIs — see the workflow and prerequisites
  </Card>

  <Card title="Authentication" icon="key" href="/features/memorylake/api-reference/authentication">
    Set up your API credentials
  </Card>
</CardGroup>
