Portal Community

Creating an Area via API

// POST /api/octopus/areas
POST /api/octopus/areas
Authorization: Bearer {adminToken}
Content-Type: application/json

{
  "name":        "HR",
  "description": "Human Resources agent area — leave, policies, onboarding",
  "isActive":    true
}

// Response:
{
  "areaId":      "area_7f3a...",
  "tenantId":    "tenant_acme",
  "name":        "HR",
  "description": "Human Resources agent area...",
  "isActive":    true,
  "agentCount":  0,
  "userCount":   0,
  "createdAt":   "2025-03-01T08:00:00Z"
}

Assigning Agents to an Area

// POST /api/octopus/areas/{areaId}/agents
POST /api/octopus/areas/area_7f3a.../agents
Authorization: Bearer {adminToken}

{
  "agentIds": [
    "agent_hr_assistant",
    "agent_leave_manager",
    "agent_policy_advisor"
  ]
}

// An agent can belong to multiple areas (unusual but supported)
// An agent not in any area is only accessible via direct ID reference (no area routing)

Area-Level Defaults

Areas can define default configurations that agents inherit unless overridden at the agent level:

// PATCH /api/octopus/areas/{areaId}/defaults
{
  "defaultLLMProvider":  "Anthropic",
  "defaultModel":        "claude-sonnet-4-5",
  "defaultPruning":      "FIFO",
  "defaultSemanticTopK": 5,
  "brandingName":        "HR Assistant",
  "welcomeMessage":      "Hello! I'm your HR assistant. How can I help today?"
}

Area Configuration Properties

PropertyTypeDescription
namestringDisplay name shown in the chat-app area selector
descriptionstringInternal description for admin reference
isActiveboolInactive areas are hidden from all users
brandingNamestringOverride the area display name in the chat UI
welcomeMessagestringMessage shown when a user enters the area in chat
defaultAgentIdGuid?Agent selected by default when the user enters the area

Area Management API

MethodEndpointAction
GET/api/octopus/areasList all areas for tenant
POST/api/octopus/areasCreate new area
GET/api/octopus/areas/{id}Get area details
PATCH/api/octopus/areas/{id}Update area settings
DELETE/api/octopus/areas/{id}Deactivate area (soft delete)
POST/api/octopus/areas/{id}/agentsAdd agents to area
DELETE/api/octopus/areas/{id}/agents/{agentId}Remove agent from area