AssetLab LoS Measures API
Level of Service measures — community or technical metrics tracked within a service area
Level of Service measures — community or technical metrics tracked within a service area
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/assetlab-ca:assetlab-ca-los-measures-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Assetlab Ca LoS Measures API
version: '1.0'
contact:
name: AssetLab Support
url: https://assetlab.ca
email: support@assetlab.ca
license:
name: Proprietary
description: 'Operations tagged LoS Measures across 2 of this provider''s published API definitions: assetlab-ca-openapi.yaml, assetlab-ca-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://ksirnjovowpvamgcnapt.supabase.co/functions/v1/api-gateway/v1
description: Production
security:
- BearerAuth: []
tags:
- name: LoS Measures
description: Level of Service measures — community or technical metrics tracked within a service area
paths:
/los-measures:
get:
operationId: listLosMeasures
summary: List LoS measures
tags:
- LoS Measures
description: Returns a paginated list of Level of Service measures. Requires `los_measures:read` scope.
parameters:
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/per_page'
- $ref: '#/components/parameters/search'
- name: service_area_id
in: query
schema:
type: string
format: uuid
description: Filter by service area
- name: category
in: query
schema:
type: string
enum:
- quality
- reliability
- responsiveness
- safety
- sustainability
- cost_efficiency
- capacity
- scope
description: Filter by measure category
- name: type
in: query
schema:
type: string
enum:
- community
- technical
description: Filter by measure type
- name: data_source
in: query
schema:
type: string
description: Filter by data source type
- name: is_active
in: query
schema:
type: boolean
description: Filter by active status
responses:
'200':
description: Paginated LoS measure list
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/LosMeasure'
pagination:
$ref: '#/components/schemas/Pagination'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
post:
operationId: createLosMeasure
summary: Create LoS measure
tags:
- LoS Measures
description: Requires `los_measures:write` scope. The service_area_id must reference an existing service area.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LosMeasureCreate'
responses:
'201':
description: Created
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/LosMeasure'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'409':
description: Measure with this name already exists in this service area
'429':
$ref: '#/components/responses/RateLimited'
servers:
- url: https://ksirnjovowpvamgcnapt.supabase.co/functions/v1/api-gateway/v1
description: Production
/los-measures/{id}:
get:
operationId: getLosMeasure
summary: Get LoS measure by ID
tags:
- LoS Measures
parameters:
- $ref: '#/components/parameters/id'
responses:
'200':
description: LoS measure detail
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/LosMeasure'
'404':
$ref: '#/components/responses/NotFound'
patch:
operationId: updateLosMeasure
summary: Update LoS measure
tags:
- LoS Measures
description: Requires `los_measures:write` scope.
parameters:
- $ref: '#/components/parameters/id'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LosMeasureUpdate'
responses:
'200':
description: Updated
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/LosMeasure'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'409':
description: Measure with this name already exists in this service area
'429':
$ref: '#/components/responses/RateLimited'
delete:
operationId: deleteLosMeasure
summary: Delete LoS measure
tags:
- LoS Measures
description: 'Requires `los_measures:write` scope. WARNING: Also deletes all associated measurements and targets history.'
parameters:
- $ref: '#/components/parameters/id'
responses:
'200':
$ref: '#/components/responses/Deleted'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
servers:
- url: https://ksirnjovowpvamgcnapt.supabase.co/functions/v1/api-gateway/v1
description: Production
components:
parameters:
search:
name: search
in: query
schema:
type: string
maxLength: 200
description: Case-insensitive name search
id:
name: id
in: path
required: true
schema:
type: string
format: uuid
description: Resource UUID
page:
name: page
in: query
schema:
type: integer
default: 1
minimum: 1
description: Page number
per_page:
name: per_page
in: query
schema:
type: integer
default: 25
minimum: 1
maximum: 1000
description: Items per page
responses:
Deleted:
description: Resource deleted
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
message:
type: string
NotFound:
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: Invalid request (validation error or malformed input)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
LosMeasureCreate:
type: object
required:
- service_area_id
- name
- category
- type
- data_source
properties:
service_area_id:
type: string
format: uuid
name:
type: string
maxLength: 500
category:
type: string
enum:
- quality
- reliability
- responsiveness
- safety
- sustainability
- cost_efficiency
- capacity
- scope
type:
type: string
enum:
- community
- technical
data_source:
type: string
enum:
- manual
- custom_formula
- asset_condition_avg
- asset_condition_pct_above
- asset_condition_pct_below
- risk_score_avg
- risk_pct_critical
- wo_response_time_avg
- wo_completion_time_avg
- wo_backlog_count
- wo_overdue_count
- pm_compliance_rate
- compliance_score
- fci
- deferred_maintenance_ratio
- asset_past_useful_life_pct
description:
type: string
maxLength: 2000
nullable: true
community_statement:
type: string
maxLength: 2000
nullable: true
unit:
type: string
maxLength: 100
nullable: true
data_source_config:
type: object
nullable: true
trend_direction:
type: string
enum:
- higher_is_better
- lower_is_better
- target_is_optimal
nullable: true
target_value:
type: number
nullable: true
minimum_acceptable:
type: number
nullable: true
stretch_goal:
type: number
nullable: true
weight:
type: number
minimum: 0
nullable: true
is_active:
type: boolean
sort_order:
type: integer
minimum: 0
nullable: true
Pagination:
type: object
properties:
page:
type: integer
example: 1
per_page:
type: integer
example: 25
total:
type: integer
example: 142
total_pages:
type: integer
example: 6
LosMeasureUpdate:
type: object
properties:
name:
type: string
maxLength: 500
category:
type: string
enum:
- quality
- reliability
- responsiveness
- safety
- sustainability
- cost_efficiency
- capacity
- scope
type:
type: string
enum:
- community
- technical
data_source:
type: string
enum:
- manual
- custom_formula
- asset_condition_avg
- asset_condition_pct_above
- asset_condition_pct_below
- risk_score_avg
- risk_pct_critical
- wo_response_time_avg
- wo_completion_time_avg
- wo_backlog_count
- wo_overdue_count
- pm_compliance_rate
- compliance_score
- fci
- deferred_maintenance_ratio
- asset_past_useful_life_pct
description:
type: string
maxLength: 2000
nullable: true
community_statement:
type: string
maxLength: 2000
nullable: true
unit:
type: string
maxLength: 100
nullable: true
data_source_config:
type: object
nullable: true
trend_direction:
type: string
enum:
- higher_is_better
- lower_is_better
- target_is_optimal
nullable: true
target_value:
type: number
nullable: true
minimum_acceptable:
type: number
nullable: true
stretch_goal:
type: number
nullable: true
weight:
type: number
minimum: 0
nullable: true
is_active:
type: boolean
sort_order:
type: integer
minimum: 0
nullable: true
Error:
type: object
properties:
error:
type: string
example: Asset not found
LosMeasure:
type: object
properties:
id:
type: string
format: uuid
tenant_id:
type: string
service_area_id:
type: string
format: uuid
category:
type: string
enum:
- quality
- reliability
- responsiveness
- safety
- sustainability
- cost_efficiency
- capacity
- scope
type:
type: string
enum:
- community
- technical
name:
type: string
description:
type: string
nullable: true
community_statement:
type: string
nullable: true
unit:
type: string
nullable: true
data_source:
type: string
enum:
- manual
- custom_formula
- asset_condition_avg
- asset_condition_pct_above
- asset_condition_pct_below
- risk_score_avg
- risk_pct_critical
- wo_response_time_avg
- wo_completion_time_avg
- wo_backlog_count
- wo_overdue_count
- pm_compliance_rate
- compliance_score
- fci
- deferred_maintenance_ratio
- asset_past_useful_life_pct
data_source_config:
type: object
nullable: true
description: JSONB config for data source (e.g. threshold, days_back)
trend_direction:
type: string
enum:
- higher_is_better
- lower_is_better
- target_is_optimal
nullable: true
target_value:
type: number
nullable: true
minimum_acceptable:
type: number
nullable: true
stretch_goal:
type: number
nullable: true
weight:
type: number
nullable: true
description: Weight for composite score (default 1.0)
is_active:
type: boolean
sort_order:
type: integer
nullable: true
created_by:
type: string
nullable: true
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: API key from AssetLab Settings > API Keys
x-refined-from:
- assetlab-ca-openapi.yaml
- assetlab-ca-openapi.yaml
x-tagGroups:
- name: Core
tags:
- Assets
- Work Orders
- Work Requests
- PM Schedules
- PM Templates
- name: Facilities
tags:
- Sites
- Buildings
- Locations
- name: Feature Classification
tags:
- Systems
- System Groups
- System Classes
- Asset Types
- Asset Type Groups
- Manufacturers
- name: Projects
tags:
- Projects
- Project Sites
- Project Buildings
- Project Locations
- Project System Classes
- Project System Groups
- Project Systems
- Project Assets
- Project Tasks
- Project Milestones
- Project Phases
- Project Budget Items
- Project Time Entries
- Project Comments
- Project Risks
- Project Document Folder Templates
- name: Financial
tags:
- Budgets
- Invoices
- Purchase Orders
- Expenses
- Change Orders
- Cost Categories
- Asset Costs
- Asset Replacement Plans
- name: Vendors & Contracts
tags:
- Vendors
- Contracts
- Vendor Site Assignments
- Contract Sites
- name: Compliance
tags:
- Compliance
- Compliance Records
- name: Parts & Inventory
tags:
- Parts
- Part Categories
- name: Comments & Documents
tags:
- Asset Comments
- Work Order Comments
- Asset Documents
- Project Documents
- Contract Documents
- Attachments
- Upload URLs
- name: Level of Service
tags:
- Service Areas
- Service Area System Classes
- Service Area Sites
- LoS Measures
- LoS Measurements
- LoS Proposed Targets
- LoS Targets History
- System LoS Targets
- Infrastructure LoS Targets
- Criticality Modifiers
- LoS Consequences
- LoS Status Snapshots
- name: Infrastructure
tags:
- Infrastructure Feature Classes
- Infrastructure Networks
- Infrastructure Assets
- Infrastructure Asset Inspections
- name: Dashboard & Analytics
tags:
- Dashboard
- Dashboard Snapshots
- Site FCI History
- Asset Risk History
- Asset Condition Assessments
- name: Configuration
tags:
- Asset Statuses
- Work Categories
- Building Types
- Location Types
- Custom Field Definitions
- Custom Field Values