slControl API

LogoutChangelog (26.08.2024)Legal notesBasic usageRequest EmulatorTroubleshooting
Global
Get list of accessible customersGet lookup tables for settingsGet lookup tables for devicesGet lookup tables for operationModeGet lookup tables for gatewaysGet lookup tables for jobsGet lookup tables for alerts
Customers
Get customer configurationUpdate customer configurationGet mesh network
Groups
Get group tree
Lamp switches
Get lamp switchesUpdate lamp switches
Luminaire points
Get luminaire pointsUpdate luminaire pointsCreate luminaire pointsDelete luminaire points
Devices
Get devicesGet device dataGet device stateUpdate device dataUpdate device operation stateGet operation modeUpdate operation modeDelete deviceDelete devices
Devices - Statistics/Logs
Get radar dataGet motion dataGet device energyGet environmental data
Gateways
Get gatewaysGet gateway dataCreate gatewaysDelete a gateway
Jobs
Get jobs state of a deviceGet job state by slcID
Alerts
Get alertsCreate alertsUpdate alerts

Get list of accessible customers

Request list of customers you have access to.

API endpoint

customer/list

Request method

GET

Request headers

-

Request URL parameters

Format

This parameter is optional. Default is json.

format=json|xml

Response content

EntityTypeNullableDescription
customer[]array (mainEntity)no

mainEntity

EntityTypeNullableDescription
customer_idintnoslcID of customer
namestringnoname of customer

Response: example in XML

<?xml version="1.0" encoding="UTF-8" ?>
<slControl>
	<customer>
		<customer_id>2</customer_id>
		<name>Chur</name>
	</customer>
	<customer>
		<customer_id>4</customer_id>
		<name>esave (Demo)</name>
	</customer>
</slControl>

Response: example in JSON

{
	"customer": [{
		"customer_id": "2",
		"name": "Chur"
	}, {
		"customer_id": "4",
		"name": "esave (Demo)"
	}]
}