Getting Started
1. Get API Key
School administrators generate API keys from their dashboard with specific permissions.
2. Integrate
Use our REST API to send data from your system. Simple JSON over HTTPS.
3. Go Live
Data appears instantly on school dashboards. Monitor usage and logs in real-time.
Authentication
All API requests require authentication using an API key in the request header:
x-api-key: YOUR_API_KEYAPI Endpoints
/api/receiveAlertPublish real-time alerts, threats, or incidents to school dashboards
Request Body
alert_typeseveritytitledescriptionmetadatacurl -X POST https://safesmart.world/api/receiveAlert \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"alert_type": "threat",
"severity": "high",
"title": "Unauthorized Entry Detected",
"description": "Motion detected at east entrance",
"metadata": {
"camera_id": "CAM-101",
"location": "Building A - East Door"
}
}'/api/receiveDrillAutomatically log drill records with response times and participant data
Request Body
drill_typedrill_datestart_timeresponse_time_secondsparticipants_countissues_identifiedimprovements_notedwas_announcedcurl -X POST https://safesmart.world/api/receiveDrill \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"drill_type": "lockdown",
"drill_date": "2026-02-04",
"start_time": "10:30 AM",
"response_time_seconds": 45,
"participants_count": 450,
"was_announced": false
}'/api/receiveBenchmarkTrack performance metrics, compliance scores, and readiness assessments
Request Body
benchmark_typemetric_namemetric_valuemetric_unittarget_valueassessment_datenotescurl -X POST https://safesmart.world/api/receiveBenchmark \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"benchmark_type": "response_time",
"metric_name": "Average Lockdown Response",
"metric_value": 38.5,
"metric_unit": "seconds",
"target_value": 30,
"assessment_date": "2026-02-04"
}'Error Codes
Unauthorized
Missing or invalid API key
Forbidden
API key doesn't have required permission
Bad Request
Missing required fields or invalid data format
Internal Server Error
Something went wrong on our end
Common Use Cases
Security Systems
Integrate visitor management, access control, and surveillance systems to automatically alert schools of unauthorized access or threats.
Raptor, Verkada, SAFREmergency Systems
Connect panic buttons, mass notification platforms, and emergency alert systems to publish real-time incidents to dashboards.
CrisisGo, Rave, AlertMediaReady to Integrate?
Contact us to discuss your integration needs and get started with the S.A.F.E. SMART API.