Skip to main content

Long-term memory API

Complete API directory for long-term memory: common request information, a full API overview, and usage limits. See each API's dedicated page for request parameters, responses, and sample code.

This document is the directory overview of all long-term memory (Memory) APIs. For feature introduction and usage guides, see Memory and Long-term memory API.

Common request information

ParameterDescription
Base URLhttps://dashscope.aliyuncs.com/api/v2/apps/memory/
AuthenticationAdd Authorization: Bearer $DASHSCOPE_API_KEY to the request header. To obtain an API Key, see Get API Key
Content-Typeapplication/json
For protocol conventions, common request/response formats, and pagination, see API overview. For authentication details, see Authentication. For error responses, see Error codes.

API overview

Memory begins commercial billing at 10:00 (UTC+8) on August 20, 2026. Add and Search calls are both available in Pro and Lite versions: for Add, the version corresponds to memory extraction models of different quality; for Search, the version determines whether Rerank is enabled. For more information, see Billing.
Factual memory:
API nameHTTP methodPathDescription
AddMemoryPOST/addAdd a factual memory
AddMemoryAsyncPOST/add-asyncSubmit a memory extraction task asynchronously
GetEventGET/events/{event_id}Get asynchronous task event details
ListMemoryGET/memory_nodesList factual memories
SearchMemoryPOST/memory_nodes/searchSearch factual memories
GetMemoryNodeGET/memory_nodes/{memory_node_id}Get a memory node
GetSkillExportGET/skill/export/{memory_node_id}Export a skill memory node
UpdateMemoryPATCH/memory_nodes/{memory_node_id}Update a factual memory
DeleteMemoryDELETE/memory_nodes/{memory_node_id}Delete a factual memory
User profile:
API nameHTTP methodPathDescription
CreateProfileSchemaPOST/profile_schemasCreate a profile schema
ListProfileSchemasGET/profile_schemasList profile schemas
GetProfileSchemaGET/profile_schemas/{profile_schema_id}Get profile schema details
UpdateProfileSchemaPATCH/profile_schemas/{profile_schema_id}Update a profile schema
GetUserProfileGET/profile_schemas/{profile_schema_id}/user_profileGet a user profile

Usage limits

Throttling (per Alibaba Cloud account):
APILimit
All APIs3,000 QPM in total
Factual memory add API120 QPM
Factual memory search API300 QPM
Generated memory fragments and user profiles currently have no expiration date. To request a quota increase, submit a ticket. For more information, see Rate limits.
Managed Agent API
Flow Agent API
Sandbox API
RAG API
Long-term Memory
ParseX API
Security API
Framework Integration