← Back to index Logout

title: Admin Config API version: 1.0 date: 2026-10-25 author: Core Team status: Active


Admin Configuration

Admin configuration management for system-wide settings, VLM prompts, and runtime parameters.

GET /api/v1/admin/config

Auth: Required Scope: admin-level

Get the full system configuration. Returns all configuration parameters including VLM prompts, processing settings, and system defaults.

Example

curl -s "$API/api/v1/admin/config" -H "X-API-Key: $KEY"

Response (200)

{
  "vlm_prompts": {
    "face_trace": {
      "system_prompt": "Analyze the person's appearance...",
      "user_prompt_template": "Describe this person..."
    }
  },
  "processing": {
    "default_processors": ["cut", "asr", "face"],
    "face_min_confidence": 0.5,
    "face_min_size": 30
  },
  "system": {
    "max_concurrent_jobs": 3,
    "output_dir": "/Users/accusys/momentry/output"
  }
}

POST /api/v1/admin/config

Auth: Required Scope: admin-level

Partially update system configuration. Only provided fields are modified; others remain unchanged.

Request Parameters

Field Type Required Description
processing object No Processing configuration
system object No System configuration

Example

curl -X POST "$API/api/v1/admin/config" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $KEY" \
  -d '{
    "processing": {
      "face_min_confidence": 0.6
    }
  }'

Response (200)

{
  "success": true,
  "message": "Config updated"
}

GET /api/v1/admin/config/vlm_prompts

Auth: Required Scope: admin-level

Get all VLM (Vision Language Model) prompts used for image analysis.

Example

curl -s "$API/api/v1/admin/config/vlm_prompts" -H "X-API-Key: $KEY"

Response (200)

{
  "face_trace": {
    "system_prompt": "You are an expert in person appearance analysis...",
    "user_prompt_template": "Describe the person in this image..."
  },
  "scene": {
    "system_prompt": "You are a scene description expert...",
    "user_prompt_template": "Describe the scene..."
  }
}

GET /api/v1/admin/config/vlm_prompts/:key

Auth: Required Scope: admin-level

Get a specific VLM prompt by key.

Path Parameters

Parameter Type Description
key string Prompt key (e.g., "face_trace", "scene")

Example

curl -s "$API/api/v1/admin/config/vlm_prompts/face_trace" -H "X-API-Key: $KEY"

Response (200)

{
  "system_prompt": "You are an expert in person appearance analysis...",
  "user_prompt_template": "Describe the person in this image..."
}

Error Responses

HTTP When
404 Prompt key not found
401 Missing or invalid API key

PUT /api/v1/admin/config/vlm_prompts/:key

Auth: Required Scope: admin-level

Update a specific VLM prompt. This affects all subsequent VLM analysis operations.

Request Parameters

Field Type Required Description
system_prompt string Yes System prompt for the LLM
user_prompt_template string Yes User prompt template (may include placeholders)

Example

curl -X PUT "$API/api/v1/admin/config/vlm_prompts/face_trace" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $KEY" \
  -d '{
    "system_prompt": "You are an expert in fashion and appearance analysis...",
    "user_prompt_template": "Analyze the person'\''s clothing and accessories in detail..."
  }'

Response (200)

{
  "success": true,
  "message": "Prompt 'face_trace' updated"
}

POST /api/v1/admin/config/reload

Auth: Required Scope: admin-level

Reload configuration from disk. Useful when the configuration file has been manually edited.

Example

curl -X POST "$API/api/v1/admin/config/reload" -H "X-API-Key: $KEY"

Response (200)

{
  "success": true,
  "message": "Config reloaded"
}

GET /api/v1/admin/settings

Auth: Required Scope: admin-level

Alias for /api/v1/admin/config. Provided for frontend compatibility.


Configuration Structure

VLM Prompts

VLM prompts control how the system analyzes images and video frames:

Prompt Key Purpose Used By
face_trace Person appearance description Face trace processor
scene Scene description Scene VLM processor
appearance Detailed appearance analysis Appearance processor

Processing Settings

Field Type Default Description
default_processors string[] all Default processors for new files
face_min_confidence float 0.5 Minimum face detection confidence
face_min_size integer 30 Minimum face size in pixels

System Settings

Field Type Default Description
max_concurrent_jobs integer 3 Maximum parallel processing jobs
output_dir string - Output directory path

Use Cases

1. Adjust Face Detection Sensitivity

curl -X POST "$API/api/v1/admin/config" \
  -H "X-API-Key: $KEY" \
  -d '{
    "processing": {
      "face_min_confidence": 0.7,
      "face_min_size": 50
    }
  }'

2. Customize VLM Prompts

curl -X PUT "$API/api/v1/admin/config/vlm_prompts/face_trace" \
  -H "X-API-Key: $KEY" \
  -d '{
    "system_prompt": "Focus on clothing colors and patterns",
    "user_prompt_template": "Describe the person'\''s outfit..."
  }'

3. Reload Configuration After Manual Edit

# Edit config file on disk
vim /path/to/config.json

# Reload into running system
curl -X POST "$API/api/v1/admin/config/reload" -H "X-API-Key: $KEY"

Security Notes


Version History

Version Date Changes
1.0 2026-10-25 Initial documentation