Skip to main content

Documentation Index

Fetch the complete documentation index at: https://ai-kb.automationanywhere.com/llms.txt

Use this file to discover all available pages before exploring further.

Authentication

All endpoints require the following headers:
x-api-key: <your-api-key>
x-api-secret: <your-api-secret>
Content-Type: application/json

Endpoints

GET /agents/{agent_id}/memory-settingsReturns the current memory configuration for an agent.Response example:
{
  "memory_enabled": true,
  "max_memories": 50,
  "auto_approve": false,
  "memory_types": ["preference", "fact", "context"]
}
PUT /agents/{agent_id}/memory-settingsEnables, disables, or updates memory configuration for an agent.Request body:
{
  "memory_enabled": true,
  "max_memories": 50,
  "auto_approve": false,
  "memory_types": ["preference", "fact", "context"]
}
Response example:
{
  "success": true,
  "message": "Memory settings updated successfully",
  "settings": {
    "memory_enabled": true,
    "max_memories": 50,
    "auto_approve": false,
    "memory_types": ["preference", "fact", "context"]
  }
}
GET /agents/{agent_id}/memoriesReturns all approved memories for an agent, grouped by user.Response example:
{
  "memories_by_user": {
    "user_123": [
      {
        "id": "memory_abc",
        "agent_id": "agent_123",
        "user_id": "user_123",
        "memory_content": "User prefers concise technical answers.",
        "memory_type": "preference",
        "confidence_score": 0.92,
        "status": "approved",
        "created_at": 1710000000,
        "updated_at": 1710000100,
        "approved_at": 1710000100,
        "source_message_id": "msg_123"
      }
    ]
  },
  "total_users": 1,
  "total_memories": 1
}
GET /agents/{agent_id}/memories/user/{user_id}Returns approved memory records for one user and one agent.Response example:
[
  {
    "id": "memory_abc",
    "agent_id": "agent_123",
    "user_id": "user_123",
    "memory_content": "User prefers concise technical answers.",
    "memory_type": "preference",
    "confidence_score": 0.92,
    "status": "approved",
    "created_at": 1710000000,
    "updated_at": 1710000100,
    "approved_at": 1710000100,
    "source_message_id": "msg_123"
  }
]
GET /memory-approvals/pendingReturns pending memory approvals for the authenticated user. Optionally filter by agent using ?agent_id={agent_id}.Response example:
[
  {
    "id": "memory_abc",
    "agent_id": "agent_123",
    "user_id": "user_123",
    "memory_content": "User prefers concise technical answers.",
    "memory_type": "preference",
    "confidence_score": 0.92,
    "source_message": "Please keep answers short and technical.",
    "created_at": 1710000000,
    "expires_at": 1710604800
  }
]
POST /memory-approvals/{memory_id}/actionApproves or rejects a pending memory record.Request body:
{
  "action": "approve"
}
Response example:
{
  "success": true,
  "message": "Memory approved successfully",
  "memory_id": "memory_abc"
}
DELETE /memories/{memory_id}Deletes a memory record by marking it as rejected.Response example:
{
  "success": true,
  "message": "Memory deleted successfully",
  "memory_id": "memory_abc"
}