Nexent
  1. Runtime
Nexent
  • Config
    • user
      • Service Health
      • Signup
      • Signin
      • User Refresh Token
      • Logout
      • Get Session
      • Get User Id
      • Revoke User Account
    • Check Me Health
      GET
    • Create Model
      POST
    • Create Provider Model
      POST
    • Batch Create Models
      POST
    • Get Provider List
      POST
    • Update Single Model
      POST
    • Batch Update Models
      POST
    • Delete Model
      POST
    • Get Model List
      GET
    • Get Llm Model List
      GET
    • Check Model Health
      POST
    • Check Temporary Model Health
      POST
    • Save Config
      POST
    • Load Config
      GET
    • Search Agent Info Api
      POST
    • Get Creating Sub Agent Info Api
      GET
    • Update Agent Info Api
      POST
    • Delete Agent Api
      DELETE
    • Export Agent Api
      POST
    • Import Agent Api
      POST
    • List All Agent Info Api
      GET
    • Get Agent Call Relationship Api
      GET
    • Check Knowledge Base Exist
      GET
    • Create New Index
      POST
    • Delete Index
      DELETE
    • Get List Indices
      GET
    • Create Index Documents
      POST
    • Delete Documents
      DELETE
    • Get Index Files
      GET
    • Health Check
      GET
    • Get Index Chunks
      POST
    • Create Chunk
      POST
    • Update Chunk
      PUT
    • Delete Chunk
      DELETE
    • Hybrid Search
      POST
    • Check Voice Connectivity
      POST
    • Options Route
      OPTIONS
    • Upload Files
      POST
    • Process Files
      POST
    • Get Storage File
      GET
    • Get Storage Files
      GET
    • Download Datamate File
      GET
    • Remove Storage File
      DELETE
    • Get Storage File Batch Urls
      POST
    • Proxy Image
      GET
    • List Tools Api
      GET
    • Search Tool Info Api
      POST
    • Update Tool Info Api
      POST
    • Scan And Update Tool
      GET
    • Load Last Tool Config
      GET
    • Validate Tool
      POST
    • Auto Summary
      POST
    • Change Summary
      POST
    • Get Summary
      GET
    • Generate And Save System Prompt Api
      POST
    • Get Deployment Version
      GET
    • Load Knowledge List
      GET
    • Update Knowledge List
      POST
    • Get Tools From Remote Mcp
      POST
    • Add Remote Proxies
      POST
    • Check Agent Name Batch Api
      POST
    • Delete Remote Proxies
      DELETE
    • Regenerate Agent Name Batch Api
      POST
    • Get Remote Proxies
      GET
    • Get Document Error Info
      GET
    • Check Mcp Health
      GET
  • Runtime
    • Agent Run Api
      POST
    • Agent Stop Api
      GET
    • Create New Conversation Endpoint
      PUT
    • List Conversations Endpoint
      GET
    • Rename Conversation Endpoint
      POST
    • Delete Conversation Endpoint
      DELETE
    • Get Conversation History Endpoint
      GET
    • Get Sources Endpoint
      POST
    • Generate Conversation Title Endpoint
      POST
    • Update Opinion Endpoint
      POST
    • Get Message Id Endpoint
      POST
    • Load Configs
      GET
    • Set Single Config
      POST
    • Add Disable Agent
      POST
    • Remove Disable Agent
      DELETE
    • Add Disable Useragent
      POST
    • Remove Disable Useragent
      DELETE
    • Add Memory
      POST
    • Search Memory
      POST
    • List Memory
      GET
    • Delete Memory
      DELETE
    • Clear Memory
      DELETE
    • Storage Upload Files
      POST
  • Northbound
    • northbound
      • Health Check
      • Run Chat
      • Stop Chat Stream
      • Get History
      • List Agents
      • List Convs
      • Update Convs Title
  • Data Process
    • Create Task
    • List Tasks
    • Process Sync Endpoint
    • Create Batch Tasks
    • Load Image
    • Get Index Tasks
    • Get Task Details
    • Filter Important Image
    • Process Text File
    • Convert State
  • Schemas
    • AgentIDRequest
    • AgentRequest
    • Body_run_chat_nb_v1_chat_run_post
    • BatchTaskRequest
    • AgentImportRequest
    • Body_add_disable_agent_memory_config_disable_agent_post
    • Body_filter_important_image_tasks_filter_important_image_post
    • AgentInfoRequest
    • Body_add_disable_useragent_memory_config_disable_useragent_post
    • Body_process_sync_endpoint_tasks_process_post
    • AppConfig
    • Body_add_memory_memory_add_post
    • Body_process_text_file_tasks_process_text_file_post
    • AgentNameBatchCheckItem
    • BatchCreateModelsRequest
    • Body_search_memory_memory_search_post
    • ConvertStateRequest
    • AgentNameBatchCheckRequest
    • Body_process_files_file_process_post
    • Body_set_single_config_memory_config_set_post
    • AgentNameBatchRegenerateItem
    • Body_upload_files_file_upload_post
    • Body_storage_upload_files_file_storage_post
    • TaskRequest
    • AgentNameBatchRegenerateRequest
    • ChangeSummaryRequest
    • ConversationRequest
    • ChunkCreateRequest
    • ConversationResponse
    • ChunkUpdateRequest
    • GenerateTitleRequest
    • ExportAndImportAgentInfo
    • ExportAndImportDataFormat
    • MessageIdRequest
    • GeneratePromptRequest
    • OpinionRequest
    • GlobalConfig
    • RenameRequest
    • HTTPValidationError
    • HybridSearchRequest
    • IndexingResponse
    • MCPInfo
    • ModelApiConfig
    • ModelConfig
    • ModelRequest
    • ProviderModelRequest
    • SingleModelConfig
    • ToolConfig
    • ToolInstanceInfoRequest
    • ToolInstanceSearchRequest
    • ToolValidateRequest
    • UserSignInRequest
    • UserSignUpRequest
    • ValidationError
    • VectorDatabaseType
    • VoiceConnectivityRequest
  1. Runtime

Add Memory

POST
/memory/add
Add memory records for the given scope.
Args:
messages: List of chat messages as dictionaries.
memory_level: Scope for the memory record (tenant/agent/user/user_agent).
agent_id: Optional agent identifier when scope is agent-related.
infer: Whether to run LLM inference during add.
authorization: Optional authorization header used to identify the user.

Request

Header Params

Body Params application/jsonRequired

Example
{
    "messages": [
        {
            "property1": "string",
            "property2": "string"
        }
    ],
    "memory_level": "string",
    "agent_id": "string",
    "infer": true
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/memory/add' \
--header 'authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "messages": [
        {
            "property1": "string",
            "property2": "string"
        }
    ],
    "memory_level": "string",
    "agent_id": "string",
    "infer": true
}'

Responses

🟢200
application/json
Successful Response
Body

Example
null
🟠422
Modified at 2025-12-12 05:26:19
Previous
Remove Disable Useragent
Next
Search Memory
Built with