# Tex | Memory API for agents ## Docs - [List, create, and revoke API keys](https://metacognition-fdc534de-master.mintlify.app/api-reference/account/api-keys.md): List, create, and revoke long-lived API keys for your org. - [Get current organization](https://metacognition-fdc534de-master.mintlify.app/api-reference/account/me.md): Read the authenticated org, user, and visible API keys. - [Refresh access token](https://metacognition-fdc534de-master.mintlify.app/api-reference/auth/refresh.md): Use a refresh token to get a new access token. - [Sign up](https://metacognition-fdc534de-master.mintlify.app/api-reference/auth/signup.md): Create an org and receive the first API key. - [Exchange API key for tokens](https://metacognition-fdc534de-master.mintlify.app/api-reference/auth/token-exchange.md): Exchange an API key for short-lived access and refresh JWTs. - [Ingest conversation memory](https://metacognition-fdc534de-master.mintlify.app/api-reference/memory/ingest-memory.md): Write turns under a scope. Active memory is saved first; enrichment continues in the background. - [Recall memory](https://metacognition-fdc534de-master.mintlify.app/api-reference/memory/recall.md): Search memory with a natural-language query and get ranked hits, confidence, and usage. - [REST API overview](https://metacognition-fdc534de-master.mintlify.app/api-reference/overview.md): Base URL, JWT auth, correlation IDs, errors, limits, and retries. - [Monthly usage summary](https://metacognition-fdc534de-master.mintlify.app/api-reference/usage/summary.md): Read monthly token rollups in UTC. - [Today's usage](https://metacognition-fdc534de-master.mintlify.app/api-reference/usage/today.md): Read today's token totals, limits, and reset time. - [Authentication & API keys](https://metacognition-fdc534de-master.mintlify.app/authentication.md): How your API key becomes a JWT, how the SDK refreshes it, and where to store secrets in dev and prod. - [Benchmarks and methodology](https://metacognition-fdc534de-master.mintlify.app/benchmarks.md): LoCoMo and LongMemEval_S scores, with category tables, latency, tokens, and methodology. - [Changelog](https://metacognition-fdc534de-master.mintlify.app/changelog.md): SDK and API release notes. - [How memory works](https://metacognition-fdc534de-master.mintlify.app/concepts/memory-model.md): What Tex stores after remember, and how soon each layer can appear in recall. - [Recall and ranking](https://metacognition-fdc534de-master.mintlify.app/concepts/retrieval.md): Choose active or deep recall, set top_k, and decide when confidence is strong enough. - [Scopes and multi-tenancy](https://metacognition-fdc534de-master.mintlify.app/concepts/scopes.md): Use org_id, user_id, and session_id to keep memory separated. - [Usage, quotas, and billing](https://metacognition-fdc534de-master.mintlify.app/concepts/usage-billing.md): What Tex meters, how daily caps work, and how to keep memory costs predictable. - [Overview - What is Tex?](https://metacognition-fdc534de-master.mintlify.app/introduction.md): Long-term memory for assistants and agents. Store turns, recall the useful ones, and keep prompts small. - [Migrate from LangChain chat memory](https://metacognition-fdc534de-master.mintlify.app/migration/from-langchain-memory.md): Move from LangChain chat buffers to Tex-backed recall. - [Migrate from Redis (or a homegrown log)](https://metacognition-fdc534de-master.mintlify.app/migration/from-redis.md): Replace prompt-stuffed chat logs with remember and recall. - [Migrate from Supermemory](https://metacognition-fdc534de-master.mintlify.app/migration/from-supermemory.md): Map Supermemory calls to Tex calls. - [Quickstart](https://metacognition-fdc534de-master.mintlify.app/quickstart.md): Install tex-sdk, set TEX_API_KEY, store one turn, recall it, and read the score. - [RAG on Azure OpenAI](https://metacognition-fdc534de-master.mintlify.app/recipes/azure-openai-rag.md): Use Tex recall with Azure OpenAI chat completions. - [Production chatbot (FastAPI)](https://metacognition-fdc534de-master.mintlify.app/recipes/fastapi.md): Build a FastAPI chat route that recalls memory, calls your model, and stores the new turn. - [LangChain agents with memory](https://metacognition-fdc534de-master.mintlify.app/recipes/langchain.md): Add Tex memory to LangChain by injecting recall before the chain or exposing recall as a tool. - [Multi-tenant SaaS pattern](https://metacognition-fdc534de-master.mintlify.app/recipes/multi-tenant-saas.md): Choose one shared Tex org or one Tex org per customer. - [Slack bot with channel memory](https://metacognition-fdc534de-master.mintlify.app/recipes/slack-bot.md): Build a Slack Bolt app that remembers channel messages and answers mentions with Tex recall. - [Streamlit chat UI](https://metacognition-fdc534de-master.mintlify.app/recipes/streamlit.md): Build one Streamlit page that recalls from Tex, streams GPT output, and shows the memories used. - [Configure the client](https://metacognition-fdc534de-master.mintlify.app/sdk/client.md): Set API keys, base URL, timeouts, retries, and client lifetime. - [Remember conversation turns](https://metacognition-fdc534de-master.mintlify.app/sdk/conversations-remember.md): Store turns in a session, with optional observations and metadata. - [Errors and retries](https://metacognition-fdc534de-master.mintlify.app/sdk/errors.md): Exception types, which status codes retry automatically, and what to log before you open a ticket. - [Install the SDK](https://metacognition-fdc534de-master.mintlify.app/sdk/installation.md): Install tex-sdk, verify the import, and pin a safe version range. - [Recall relevant context](https://metacognition-fdc534de-master.mintlify.app/sdk/recall.md): Query memory with natural language and get ranked hits, confidence, and usage. - [Inspect usage](https://metacognition-fdc534de-master.mintlify.app/sdk/usage.md): Read today's totals and monthly rollups from the SDK. - [Troubleshooting](https://metacognition-fdc534de-master.mintlify.app/troubleshooting.md): Match an error or symptom, apply the fix, and collect the right details for support. ## Optional - [GitHub](https://github.com/metacoglabs)