← Back to Dashboard

API Usage Documentation

Interface specification for integration with the MAM system (images & videos).

1. Upload (POST)

Uploads an image or video file.
/php/api.php?action=upload

curl -F "file=@video.mp4" http://192.168.178.55:8880/php/api.php?action=upload

2. Start Analysis (GET)

Starts the AI pipeline for a file path. Videos are processed asynchronously in the background.
/php/api.php?action=process&path=/pfad/zur/datei

curl "http://192.168.178.55:8880/php/api.php?action=process&path=/var/www/uploads/video.mp4"

3. Get Media (GET)

Returns a list of all processed media (ID, path, filename).
/php/api.php?action=get_media

curl "http://192.168.178.55:8880/php/api.php?action=get_media"

4. Get Faces & Timestamps (GET)

Returns all detected faces including timecode (seconds) for a specific media ID.
/php/api.php?action=get_faces&media_id=X

curl "http://192.168.178.55:8880/php/api.php?action=get_faces&media_id=123"

5. Configuration (POST)

Globally adjust model mode, thresholds, and filter limits.
/php/api.php?action=set_config

curl -X POST -d "model_name=buffalo_l&detection_threshold=0.7&max_faces=10" http://192.168.178.55:8880/php/api.php?action=set_config