Skip to main content
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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
ticket_id
string
required
unit_id
string
required
description
string
required
photos
string[]
priority_hint
string

Response

200 - application/json

Ticket accepted

ticket_id
string
required
unit_id
string
required
description
string
required
severity
enum<string>
Available options:
emergency,
urgent,
standard
vendor_assigned
string | null