Skip to main content

Capability Discovery

The /capabilities endpoint lets adapters declare their supported devices, types, actions, and features.

When It's Called

  • Onboarding — When an admin clicks "Preview Capabilities" during adapter setup
  • Periodic sync — ZenEdge refreshes capabilities to detect changes
  • Manual refresh — Admin triggers a capability re-scan

Response Schema

{
"adapter": {
"name": "My Custom Adapter",
"version": "1.0.0",
"vendor": "Acme Corp",
"protocol": "2.0"
},
"devices": [
{
"device_id": "ada-unique-id",
"name": "Front Door",
"type": "lock",
"model": "SmartLock Pro",
"brand": "Acme",
"criticality": "CRITICAL",
"actions": ["unlock", "lock", "status", "generate_pin"],
"webhook_capable": true,
"html_embed": true
}
]
}

Field Reference

Adapter Fields

FieldRequiredDescription
nameYesHuman-readable adapter name
versionYesAdapter software version
vendorYesDevice vendor name
protocolYesProtocol version ("2.0")

Device Fields

FieldRequiredDescription
device_idYesUnique device identifier
nameYesHuman-readable device name
typeYesDevice type: lock, wifi, fan, light, display, camera, sensor
modelNoDevice model identifier
brandNoDevice brand name
criticalityYesCRITICAL, STANDARD, or OPTIONAL
actionsYesArray of supported action names
webhook_capableNoWhether the device can push events (default: false)
html_embedNoWhether /ui returns an embeddable tile (default: false)

Next Steps