Overview
The Citizens API provides endpoints for creating and managing citizens, their vehicles, weapons, medical records, and licenses.All citizen endpoints require authentication. Some endpoints may be restricted based on CAD features and user permissions.
Get Citizens
Query Parameters
Search by name, surname, SSN, or phone number
Number of records to skip for pagination
Response
Array of citizen objects
Total number of citizens matching the query
Get Citizen by ID
Path Parameters
Citizen ID
Response
Citizen ID
First name
Last name
Social security number
Date of birth (ISO 8601)
Gender value object
Ethnicity value object
Driver’s license status
Weapon license status
Citizen’s registered vehicles (first 12)
Citizen’s registered weapons (first 12)
Medical records
Create Citizen
Request Body
First name
Last name
Date of birth (ISO 8601 format)
Gender value ID
Ethnicity value ID
Weight
Height
Hair color
Eye color
Residential address
Phone number
Social security number (auto-generated if not provided)
Response
Returns the created citizen object with all fields.Error Responses
400- Invalid data, blacklisted name, or duplicate name (if not allowed)400- Maximum citizens per user reached
Update Citizen
Path Parameters
Citizen ID
Request Body
All fields are optional. Only provided fields will be updated.First name
Last name
Date of birth
Residential address
Phone number
Delete Citizen
Path Parameters
Citizen ID
Response
Returnstrue on success.
Error Responses
403- Only admins can delete citizens (if feature is disabled)404- Citizen not found
Mark Citizen as Deceased
Path Parameters
Citizen ID
Response
Returnstrue on success and triggers a Discord webhook if configured.
Upload Citizen Image
Path Parameters
Citizen ID
Request Body
Image file (JPEG, PNG, WebP)
Response
ID of the uploaded image
Get Citizen Records
Path Parameters
Citizen ID
Response
Returns an array of record objects including:- Arrest reports
- Traffic citations
- Written warnings
- Associated violations and penalties
Vehicles
Register Vehicle
Request Body
Citizen ID who owns the vehicle
License plate number
Vehicle model ID
Vehicle color
Registration status ID
Insurance status ID
VIN number
Weapons
Register Weapon
Request Body
Citizen ID who owns the weapon
Weapon model ID
Registration status ID
Weapon serial number