Skip to content

Migrated APIs Overview

These APIs have been fully migrated to Cloudflare Workers and are live in production.

Infrastructure

ComponentTechnology
RuntimeCloudflare Workers
DatabaseCloudflare D1 (SQLite)
StorageCloudflare R2
FrameworkHono + tRPC

Available APIs

Authentication (auth.*)

Full authentication system with JWT tokens.

ProcedureTypeAuth Required
auth.loginMutationNo
auth.registerMutationNo
auth.meQueryYes
auth.changePasswordMutationYes
auth.logoutMutationYes

View Authentication Docs →

Sensors (sensors.*)

Manage traffic sensors and devices.

ProcedureTypeAuth Required
sensors.getAllSensorsQueryYes
sensors.getSensorByIdQueryYes
sensors.createSensorMutationYes
sensors.updateSensorMutationYes
sensors.deleteSensorMutationYes
sensors.getSensorStatusQueryYes

View Sensors Docs →

Reports (reports.*)

Generate and retrieve traffic reports.

ProcedureTypeAuth Required
reports.getViolationStatsQueryYes
reports.getTrafficFlowQueryYes
reports.getSensorHealthQueryYes
reports.getIncidentSummaryQueryYes
reports.exportReportMutationYes

View Reports Docs →

System (system.*)

System configuration and health.

ProcedureTypeAuth Required
system.getLicenseQueryNo
system.timezone.getTimezoneSettingsQueryNo
system.timezone.updateTimezoneSettingsMutationYes
system.healthQueryNo
system.getSettingsQueryNo

View System Docs →

Storage (storage.*)

File upload and management with R2.

ProcedureTypeAuth Required
storage.getStatsQueryNo

View Storage Docs →

Locations (locations.*)

Manage physical locations and intersections.

ProcedureTypeAuth Required
locations.getAllQueryNo
locations.getByIdQueryNo
locations.createMutationYes
locations.updateMutationYes
locations.deleteMutationYes
locations.getTypesQueryNo

View Locations Docs →

Events (events.*)

Traffic events and violation tracking.

ProcedureTypeAuth Required
events.ingestMutationAPI Key
events.getAllQueryYes
events.getByIdQueryYes
events.getRecentQueryYes
events.getStatsQueryYes
events.deleteMutationYes

View Events Docs →

View Speed Event Video Docs →

Image Processor (traffic.imageProcessor.*)

ANPR integration, violation detection, and event routing.

ProcedureTypeAuth Required
traffic.imageProcessor.processImageMutationAPI Key
traffic.imageProcessor.getAPIHealthQueryNo
traffic.imageProcessor.resetAPIHealthMutationYes
traffic.imageProcessor.getPendingStatsQueryNo
traffic.imageProcessor.getPendingEventsQueryYes
traffic.imageProcessor.processPendingEventsMutationYes
traffic.imageProcessor.retryFailedEventsMutationYes
traffic.imageProcessor.getSpeedThresholdQueryNo
traffic.imageProcessor.setLocationSpeedThresholdMutationYes
traffic.imageProcessor.getViolationStatsQueryYes

View Image Processor Docs →

Users (users.*)

User management and access control.

ProcedureTypeAuth Required
users.getAllQueryAdmin
users.getByIdQueryYes
users.createMutationAdmin
users.updateMutationYes
users.deleteMutationAdmin
users.getProfileQueryYes
users.getRolesQueryAdmin

View Users Docs →

Settings (settings.*)

System configuration and feature flags.

ProcedureTypeAuth Required
settings.getAllQueryYes
settings.updateMutationAdmin
settings.getPublicQueryNo
settings.getFeatureFlagsQueryNo

View Settings Docs →

Performance

All migrated APIs benefit from:

  • Edge deployment - Runs in 300+ Cloudflare locations worldwide
  • Low latency - Typically < 50ms response time
  • Auto-scaling - Handles traffic spikes automatically
  • DDoS protection - Built-in Cloudflare security

SCS Smart City - Traffic, Gateway, Camera, and NVR Platform