SaaS
Documentation

Getting Started

  • Introduction
  • Quick Start

Core Features

  • Device Management
  • Scene Configuration
  • AI Analysis
  • LLM / VLM
  • Alert System

API Reference

  • API Overview
  • API Keys
  • Devices
  • Scenes
  • Alerts
  • Analysis Control
  • Data Query
  • LLM / VLM API
  • Billing Dashboard
  • Usage API
  • Admin Quota
  • Webhook
  • SSE Streaming

References

  • Metric Paths
  • Error Codes
  • Changelog

快速開始

本指南使用 SaaS API 標準流程,帶你快速完成第一條分析鏈路。

前置條件

  • 可用的 RTSP 視訊來源
  • 一組 API Key(Authorization: Bearer {API_KEY})
  • 設備時間資訊(建議設定 utcOffset)

Step 1:建立 API Key

  • 端點:POST /api/v1/api-keys
  • 建議最小 scope:device:write、scene:write、task:write、analytics:read

Step 2:建立設備

  • 端點:POST /api/v1/devices
  • 最小必要欄位:name, rtspUrl
  • 建議同時設定:plan, utcOffset, schedule
{
  "name": "入口攝影機",
  "rtspUrl": "rtsp://192.168.1.100:554/stream1",
  "plan": "level_02",
  "utcOffset": "UTC+8"
}

Step 3:建立場景

  • 端點:POST /api/v1/scenes
  • analysisType 目前僅支援 queue_analysis
  • zone 使用 polygon(0~1 座標)

Step 4:啟動分析

  • 端點:POST /api/v1/devices/{deviceId}/analysis/start
  • 必填:sceneId

Step 5:查詢數據

  • 快照歷史:GET /api/v1/analytics/snapshots
  • 滾動統計:GET /api/v1/analytics/rolling
  • 最新聚合:GET /api/v1/analytics/scenes/{id}/latest

Step 6(可選):即時串流與通知

  • SSE:GET /api/v1/devices/:id/analysis/stream
  • Webhook:POST /api/v1/users/me/webhook

常見檢查點

  • 啟動分析失敗:先確認設備 online、場景 active、配額未超限。
  • 時間錯位:確認查詢參數使用 UTC,呈現端再轉為設備當地時間。
  • 限流錯誤 (429):依 Retry-After 重試。

延伸閱讀

  • API 總覽
  • Billing Dashboard API
  • Usage API
SaaS

AI-powered intelligent video analytics platform, empowering your surveillance system.

Product

  • Features
  • Pricing
  • Changelog

Resources

  • Documentation
  • API Reference
  • Examples

Company

  • About Us
  • Contact Us
  • Privacy Policy

© 2026 Luminys. All rights reserved.

Terms of ServicePrivacy Policy