Services
5 endpoints under /api/v1/services.
List the organization's services
The shared spine the Lookout products meet on. Shown to any org with at least one Lookout product enabled.
Responses
200 The org's services, with live monitor counts.
Response body
servicesService[]requiredShow fields
idstringrequirednamestringrequiredmonitorsintegerrequiredcreatedAtstringrequired
401 No valid session.
Response body
errorstringrequired
403 No Lookout product is enabled for this organization.
Response body
errorstringrequired
404 Unknown service.
Response body
errorstringrequired
502 The Lookout service is unreachable.
Response body
errorstringrequired
Create a service
Request body
namestringrequired
Responses
201 The created service.
Response body
idstringrequirednamestringrequiredmonitorsintegerrequiredcreatedAtstringrequired
401 No valid session.
Response body
errorstringrequired
403 No Lookout product is enabled for this organization.
Response body
errorstringrequired
404 Unknown service.
Response body
errorstringrequired
409 A service with this name already exists.
Response body
errorstringrequired
502 The Lookout service is unreachable.
Response body
errorstringrequired
One service — the aggregated spine view
The Service plus its monitors, alert sources, attached escalation policy, status pages, and current maintenance window.
Parameters
-
idpath string required
Responses
200 The aggregated service detail.
Response body
idstringrequirednamestringrequiredcreatedAtstringrequiredmonitorsServiceDetailMonitor[]requiredShow fields
idstringrequirednamestringrequiredkindstring · enumrequiredhttptcpenabledbooleanrequiredstatestring · enumpendingupdown
alertSourcesServiceDetailAlertSource[]requiredShow fields
idstringrequirednamestringrequiredlastEventAtstringrequired
escalationPolicyobjectrequiredShow fields
idstringrequirednamestringrequired
statusPagesServiceDetailStatusPage[]requiredShow fields
idstringrequiredslugstringrequirednamestringrequired
maintenanceobjectrequiredShow fields
idstringrequiredtitlestringrequiredstatestring · enumrequiredupcomingactivepaststartsAtstringrequiredendsAtstringrequired
401 No valid session.
Response body
errorstringrequired
403 No Lookout product is enabled for this organization.
Response body
errorstringrequired
404 Unknown service.
Response body
errorstringrequired
502 The Lookout service is unreachable.
Response body
errorstringrequired
Rename a service
Parameters
-
idpath string required
Request body
namestringrequired
Responses
200 The renamed service.
Response body
idstringrequirednamestringrequiredmonitorsintegerrequiredcreatedAtstringrequired
401 No valid session.
Response body
errorstringrequired
403 No Lookout product is enabled for this organization.
Response body
errorstringrequired
404 Unknown service.
Response body
errorstringrequired
409 A service with this name already exists.
Response body
errorstringrequired
502 The Lookout service is unreachable.
Response body
errorstringrequired
Delete a service
Refused (409) while the service has any live dependent — monitors, alert sources, or status-page membership — with a message naming what blocks it. An attached escalation policy does not block (it dies with the service).
Parameters
-
idpath string required
Responses
204 Deleted.
401 No valid session.
Response body
errorstringrequired
403 No Lookout product is enabled for this organization.
Response body
errorstringrequired
404 Unknown service.
Response body
errorstringrequired
409 The service still has a live dependent.
Response body
errorstringrequired
502 The Lookout service is unreachable.
Response body
errorstringrequired