{
"ticket_id": "mnt_10021",
"unit_id": "unit_7C",
"description": "Water leaking under the kitchen sink for two days",
"photos": ["https://files.casaai.dev/img/leak1.jpg"],
"priority_hint": "high"
}
{
"ticket_id": "mnt_10021",
"unit_id": "unit_7C",
"description": "Water leaking under the kitchen sink for two days",
"severity": "urgent",
"vendor_assigned": "vendor_plumb_pro"
}
Endpoint examples
Create Maintenance Ticket
POST
/
api
/
v1
/
maintenance
{
"ticket_id": "mnt_10021",
"unit_id": "unit_7C",
"description": "Water leaking under the kitchen sink for two days",
"photos": ["https://files.casaai.dev/img/leak1.jpg"],
"priority_hint": "high"
}
{
"ticket_id": "mnt_10021",
"unit_id": "unit_7C",
"description": "Water leaking under the kitchen sink for two days",
"severity": "urgent",
"vendor_assigned": "vendor_plumb_pro"
}
Create a maintenance ticket with description and optional photos. CasaAI will classify severity and category, then dispatch according to your rules.
{
"ticket_id": "mnt_10021",
"unit_id": "unit_7C",
"description": "Water leaking under the kitchen sink for two days",
"photos": ["https://files.casaai.dev/img/leak1.jpg"],
"priority_hint": "high"
}
{
"ticket_id": "mnt_10021",
"unit_id": "unit_7C",
"description": "Water leaking under the kitchen sink for two days",
"severity": "urgent",
"vendor_assigned": "vendor_plumb_pro"
}
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json