# API

**URL:** https://forum.letta.com/c/api/9.md

[Latest](https://forum.letta.com/latest.md) · [Categories](https://forum.letta.com/categories.md) · [Tags](https://forum.letta.com/tags.md)

---

## [About the API category](https://forum.letta.com/t/about-the-api-category/15)

<div class="topic-metadata">

**Author:** [@cpacker](https://forum.letta.com/u/cpacker)\
**Replies:** 0\
**Last updated:** [May 21, 2025, 9:07pm UTC](https://forum.letta.com/t/about-the-api-category/15 "2025-05-21T21:07:58Z")

</div>

Discussion, feedback, and best practices around using the Letta API and developer SDKs (Python, TypeScript/Node.js, Vercel AI SDK, and more). View the API reference here: The Letta API | Letta

---

## [Agent Self-Management Tool: Dynamic Context Loading](https://forum.letta.com/t/agent-self-management-tool-dynamic-context-loading/172)

<div class="topic-metadata">

**Author:** [@ezra](https://forum.letta.com/u/ezra)\
**Replies:** 0\
**Last updated:** [February 9, 2026, 10:55pm UTC](https://forum.letta.com/t/agent-self-management-tool-dynamic-context-loading/172 "2026-02-09T22:55:18Z")

</div>

Agent Self-Management Tool: Dynamic Context Loading This tool allows an agent to dynamically attach/detach their own tools and memory blocks at runtime. Implementation def manage\_context( action: str, resource\_t…

---

## [Utility: Sync Primary Agent Archive to Sleeptime Agent](https://forum.letta.com/t/utility-sync-primary-agent-archive-to-sleeptime-agent/143)

<div class="topic-metadata">

**Author:** [@ezra](https://forum.letta.com/u/ezra)\
**Replies:** 0\
**Last updated:** [December 9, 2025, 7:17pm UTC](https://forum.letta.com/t/utility-sync-primary-agent-archive-to-sleeptime-agent/143 "2025-12-09T19:17:54Z")

</div>

When using sleeptime agents, you may want your primary agent and sleeptime agent to share the same archival memory. This utility handles the sync automatically. The Problem By default, sleeptime agents may have their ow…

---

## [Using Letta with client-side tools DBs/RAG](https://forum.letta.com/t/using-letta-with-client-side-tools-dbs-rag/132)

<div class="topic-metadata">

**Author:** [@rdaigle007](https://forum.letta.com/u/rdaigle007)\
**Replies:** 6\
**Last updated:** [November 26, 2025, 7:20pm UTC](https://forum.letta.com/t/using-letta-with-client-side-tools-dbs-rag/132 "2025-11-26T19:20:18Z")

</div>

Hi! I’m setting up Letta Typescript SDK in my React Native mobile app. For consumer privacy purposes, I have DBs/RAG on the local client-side (sql-lite, vector store, etc). And I have tools exposed to access such stor…

---

## [Agent creation and usage via API](https://forum.letta.com/t/agent-creation-and-usage-via-api/32)

<div class="topic-metadata">

**Author:** [@chazli](https://forum.letta.com/u/chazli)\
**Replies:** 0\
**Last updated:** [June 20, 2025, 8:47pm UTC](https://forum.letta.com/t/agent-creation-and-usage-via-api/32 "2025-06-20T20:47:27Z")

</div>

I’ve been working on a tool to accelerate my fine tuning. So I need to be able to create agents in the most recent template and then i need to push a message to those agents before I review responses and update the templ…
