# Docs - [Guides](/llms.mdx/docs/llms-full.txt) - [Retainer documentation](/llms.mdx/docs.md): A shared memory for AI agents working with customer relationships. - **Get started** - [Hosted quickstart](/llms.mdx/docs/hosted.md): Create a workspace, connect an agent, and verify where it can write. - [Self-hosted quickstart](/llms.mdx/docs/self-hosted.md): Run Retainer with Docker Compose and verify your first workspace. - [Records and provenance](/llms.mdx/docs/concepts.md): See how a customer conversation becomes shared, reviewable workspace memory. - [Review changes and manage access](/llms.mdx/docs/review-and-access.md) - **Operate Retainer** - [Self-hosting](/llms.mdx/docs/self-hosting.md) - [Upgrades and backups](/llms.mdx/docs/upgrades-and-backups.md) - [Retainer CLI](/llms.mdx/docs/cli.md) - **Build integrations** - [TypeScript SDK](/llms.mdx/docs/sdk.md) - [Connecting a standalone workspace app](/llms.mdx/docs/standalone-apps.md) - [Files](/llms.mdx/docs/files.md) - [First-party extension execution (development preview)](/llms.mdx/docs/extensions-execution.md) - [MCP](/llms.mdx/docs/mcp/llms-full.txt) - [Connect through MCP](/llms.mdx/docs/mcp.md): Connect a Retainer workspace to Codex, Claude Code, or another MCP client. - [Read and write a first record](/llms.mdx/docs/mcp/first-workflow.md) - [Connection options](/llms.mdx/docs/mcp/connection-options.md) - [Key MCP tools](/llms.mdx/docs/mcp/tool-reference.md) - [How an agent should write](/llms.mdx/docs/mcp/writing-guidance.md) - [Connecting agents](/llms.mdx/docs/mcp/agents.md) - [Connect to Retainer Docs](/llms.mdx/docs/mcp/docs-server.md) - [API Reference](/llms.mdx/docs/api/llms-full.txt) - [REST API quickstart](/llms.mdx/docs/api.md): Verify a workspace API key and use the generated Retainer REST reference. - [REST API](/llms.mdx/docs/api/rest-api.md) - Workspace - [Verify the caller and workspace](/llms.mdx/docs/api/workspace/get-caller.md): Read the workspace, actor, scopes, and capabilities associated with this credential. Requires a workspace API key. - [Check server health](/llms.mdx/docs/api/workspace/health.md): Check the server version and database connectivity. - Schema - [Apply a workspace template](/llms.mdx/docs/api/schema/apply-template.md): Requires the `schema:write` scope. - [Approve a schema change](/llms.mdx/docs/api/schema/approve-schema-change.md): The caller must act as a user. Requires the `admin` scope. - [Read a schema change](/llms.mdx/docs/api/schema/get-schema-change.md): Requires the `read` scope. - [Read the workspace schema](/llms.mdx/docs/api/schema/get-schema.md): Find object and field API names, value formats, and built-in memory tools. Requires the `read` scope. - [List schema changes](/llms.mdx/docs/api/schema/list-schema-changes.md): Requires the `read` scope. - [List workspace templates](/llms.mdx/docs/api/schema/list-templates.md): Requires the `read` scope. - [Reject a schema change](/llms.mdx/docs/api/schema/reject-schema-change.md): The caller must act as a user. Requires the `admin` scope. - [Request a schema change](/llms.mdx/docs/api/schema/request-schema-change.md): Submit schema operations. Changes that need review are proposed for a workspace administrator. Requires the `schema:write` scope. - Records - [Aggregate matching records](/llms.mdx/docs/api/records/aggregate-records.md): Requires the `read` scope. - [Clear your personal memory](/llms.mdx/docs/api/records/clear-personal-memory.md): The person must be signed in to the web app. Clears personal memory in the current workspace. If supplied, Origin must match the deployment origin. Requires the `read` scope. - [Create a record](/llms.mdx/docs/api/records/create-record.md): Requires the `write` scope. - [Soft-delete a record](/llms.mdx/docs/api/records/delete-record.md): For events, also retracts facts and field claims that depended on the event. Requires the `write` scope. - [Erase a person](/llms.mdx/docs/api/records/forget-person.md): A user with admin scope can permanently erase a person for a privacy request. Requires the `admin` scope. - [Preview the impact of several record deletions](/llms.mdx/docs/api/records/get-bulk-delete-impact.md): Requires the `read` scope. - [Preview the impact of a record deletion](/llms.mdx/docs/api/records/get-delete-impact.md): Requires the `read` scope. - [Read a record](/llms.mdx/docs/api/records/get-record.md): Requires the `read` scope. - [List records linked to a record](/llms.mdx/docs/api/records/list-linked-records.md): Requires the `read` scope. - [Merge two records](/llms.mdx/docs/api/records/merge-record.md): The caller must act as a user. The ID in the URL identifies the survivor. Requires the `write` scope. - [Query records](/llms.mdx/docs/api/records/query-records.md): Filter, sort, and page one object by its workspace field names. The reserved object names event and events use the shared event columns and return an event page. Use POST /v1/events/query for the cross-type query schema. Requires the `read` scope. - [Update a record](/llms.mdx/docs/api/records/update-record.md): Set fields by API name. Supply expectedUpdatedAt to reject changes if the record has changed. Requires the `write` scope. - [Update or create a matching record](/llms.mdx/docs/api/records/upsert-record.md): Identify the record by ID or one unique field. Set ifMissing to create to add a record when there is no match. Requires the `write` scope. - [Write multiple records](/llms.mdx/docs/api/records/upsert-records.md): Process records in order. Each item returns its own result or error. Requires the `write` scope. - Events - [Delete an event and retract its claims](/llms.mdx/docs/api/events/delete-event.md): Requires the `write` scope. - [Read assertions and facts that cite an event](/llms.mdx/docs/api/events/get-event-claims.md): Requires the `read` scope. - [Read full event content](/llms.mdx/docs/api/events/get-event-content.md): Requires the `read` scope. - [Read an event](/llms.mdx/docs/api/events/get-event.md): Requires the `read` scope. - [Link an event to records](/llms.mdx/docs/api/events/link-event.md): Add participants or records the event is about. Existing links are preserved. Requires the `write` scope. - [List events linked to a record](/llms.mdx/docs/api/events/list-record-events.md): Requires the `read` scope. - [Log an event](/llms.mdx/docs/api/events/log-event.md): Log a conversation using an event type from your workspace. Reusing a channel and externalId returns the existing event and adds any new links. Requires the `write` scope. - [Move events to a different type](/llms.mdx/docs/api/events/move-events.md): Use dryRun to preview the change. Applying a move requires a user with admin scope. Requires the `schema:write` scope. - [Query across event types](/llms.mdx/docs/api/events/query-events.md): Filter by shared event columns or event type, and page the results. Requires the `read` scope. - [Unlink a record from an event](/llms.mdx/docs/api/events/remove-event-about.md): The caller must act as a user. Requires the `write` scope. - [Remove an event participant](/llms.mdx/docs/api/events/remove-event-participant.md): The caller must act as a user. Requires the `write` scope. - Facts - [List facts](/llms.mdx/docs/api/facts/list-facts.md): List facts about a record, the workspace profile, or the personal profile. Requires the `read` scope. - [Remember a fact](/llms.mdx/docs/api/facts/remember-fact.md): Cite the event a fact came from when it is available. The ID can also be workspace or me for a memory profile. Requires the `write` scope. - [Retract a fact](/llms.mdx/docs/api/facts/retract-fact.md): Shared facts also require write. A signed-in person may retract their own personal fact. Requires the `read` scope. - Retrieval - [Read a context pack](/llms.mdx/docs/api/retrieval/get-context.md): Get selected fields, facts, and related information for a record or supported memory alias. Requires the `read` scope. - [Read a record timeline](/llms.mdx/docs/api/retrieval/get-timeline.md): Requires the `read` scope. - [Search records, facts, and events](/llms.mdx/docs/api/retrieval/search.md): Search workspace text. The limit applies separately to each result category. Requires the `read` scope. - Views - [Create a saved view](/llms.mdx/docs/api/views/create-view.md): Requires the `write` scope. - [Delete a saved view](/llms.mdx/docs/api/views/delete-view.md): Requires the `write` scope. - [Read a saved view](/llms.mdx/docs/api/views/get-view.md): Requires the `read` scope. - [List saved views](/llms.mdx/docs/api/views/list-views.md): Requires the `read` scope. - [Update a saved view](/llms.mdx/docs/api/views/update-view.md): Only fields included in the request are changed. Requires the `write` scope. - Comments - [Add a comment](/llms.mdx/docs/api/comments/create-comment.md): The caller must act as a user. Requires the `write` scope. - [Delete a comment](/llms.mdx/docs/api/comments/delete-comment.md): The author or a user with admin scope can delete it. Requires the `write` scope. - [List comments](/llms.mdx/docs/api/comments/list-comments.md): Requires the `read` scope. - [Edit a comment](/llms.mdx/docs/api/comments/update-comment.md): Only the original author can edit a comment. Requires the `write` scope. - Review - [Accept a proposed field value](/llms.mdx/docs/api/review/accept-assertion.md): The caller must act as a user. Requires the `write` scope. - [Accept a merge suggestion](/llms.mdx/docs/api/review/accept-merge.md): The caller must act as a user. Set keep to the record ID that should survive. Requires the `write` scope. - [Dismiss a merge suggestion](/llms.mdx/docs/api/review/dismiss-merge.md): The caller must act as a user. Requires the `write` scope. - [Read an assertion](/llms.mdx/docs/api/review/get-assertion.md): Requires the `read` scope. - [Read the review queue](/llms.mdx/docs/api/review/get-review-queue.md): Requires the `read` scope. - [List field assertions for a record](/llms.mdx/docs/api/review/list-assertions.md): Requires the `read` scope. - [Reject a proposed field value](/llms.mdx/docs/api/review/reject-assertion.md): The caller must act as a user. Requires the `write` scope. - Files - [Create a file upload intent](/llms.mdx/docs/api/files/create-file-intent.md): Upload the bytes to the signed transfer URL, then finalize the file before referencing it. Requires the `write` scope. - [Request a signed download](/llms.mdx/docs/api/files/download-file.md): Requires the `read` scope. - [Finalize a file upload](/llms.mdx/docs/api/files/finalize-file.md): Requires the `write` scope. - [Check file erasure jobs](/llms.mdx/docs/api/files/get-file-erasure-status.md): Requires the `admin` scope. - [Read file metadata](/llms.mdx/docs/api/files/get-file.md): Requires the `read` scope.