v3

latestSwagger 2.02026-08-067506752.0 MB
ai

Create a new memory

post/v1/org/{orgId}/ai/agent-memory

Path parameters

orgIdstring required

Org identifier (either id or slug)

Request body

agentUserIdstring required

AI agent user id that owns this memory

userIdstring

user id this memory is scoped to; null means org-wide

actionIdstring

action id this memory is scoped to; null means not action-scoped

contentstring required

text content of the memory

importancenumber double

importance score from 0.0 (low) to 1.0 (high)

expireAtstring

optional expiration timestamp; memory is auto-deleted after this time

sourceAiChatIdstring

id of the AI chat that created this memory

Example request

{
  "agentUserId": "588f7ee98f138b19220041a7",
  "userId": "588f7ee98f138b19220041a7",
  "actionId": "588f7ee98f138b19220041a7",
  "expireAt": "2017-01-24T13:57:52Z",
  "sourceAiChatId": "588f7ee98f138b19220041a7"
}

Response

successful operation