Door Control Service
Door Control Service lets your application remotely lock or unlock vehicle doors using the Ekko GraphQL API.
Prerequisites
Before you begin, make sure you have:
- Signed up at connect.munic.io.
- A valid Bearer token in the
Authorizationheader. - The
deviceIdof the target vehicle and permissions to control it. - A vehicle that supports door control (capability may vary by model).
Lock or Unlock Doors
Using the doorToggle mutation
Lock or Unlock Doors
| |
| |
| |
Asynchronous Command
doorToggle returns an asynchronous acknowledgement (RdcAsyncAck). The command is sent to the vehicle, but the physical lock status may update a few seconds later. Use the status query below to confirm the final state.
Compatibility and Permissions
Door control availability depends on the vehicle and embedded system configuration. Make sure your account has the required permissions for the target device.
DoorAction values
| Value | Description |
|---|---|
| LOCK | Lock all vehicle doors |
| UNLOCK | Unlock all vehicle doors |
Backend cURL example
curl -X POST "https://api.munic.io/services/ekko/v2/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-d '{"query":"mutation doorToggle($deviceId: ID!, $action: DoorAction!) { doorToggle(deviceId: $deviceId, action: $action) { id type attributes } }","variables":{"deviceId":"12345","action":"LOCK"}}'Check Door Status
Query the vehicle
Get Door Lock Status
| |
| |
| |
DoorsLockStatus values
| Value | Description |
|---|---|
| UNKNOWN | Status not available |
| LOCKED | Doors are locked |
| UNLOCKED | Doors are unlocked |
API Reference
- DoorAction type: https://api.munic.io/services/ekko/v2/docs/index.html#definition-DoorAction
- DoorsLockStatus type: https://api.munic.io/services/ekko/v2/docs/index.html#definition-DoorsLockStatus
- Full GraphQL reference: https://api.munic.io/services/ekko/v2/docs/index.html