Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/assetlab-ca:assetlab-ca-pm-schedules-api"
All apis
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.
Get an API 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 Specification
openapi: 3.2.0
info:
title: Assetlab Ca PM Schedules API
version: '1.0'
contact:
name: AssetLab Support
url: https://assetlab.ca
email: support@assetlab.ca
license:
name: Proprietary
description: 'Operations tagged PM Schedules 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: PM Schedules
description: Preventive maintenance schedules
paths:
/pm-schedules:
get:
operationId: listPmSchedules
summary: List PM schedules
tags:
- PM Schedules
description: Returns a paginated list of preventive maintenance schedules. Requires `pm_schedules:read` scope.
parameters:
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/per_page'
- $ref: '#/components/parameters/search'
- name: status
in: query
schema:
type: string
description: Filter by status (e.g. active, paused)
- name: site_id
in: query
schema:
type: string
format: uuid
description: Filter by site
- name: frequency
in: query
schema:
type: string
description: Filter by frequency (e.g. WEEKLY, MONTHLY)
- name: infrastructure_asset_id
in: query
schema:
type: string
format: uuid
description: Filter by infrastructure feature (mutually exclusive target with asset_id)
responses:
'200':
description: Paginated PM schedule list
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/PmSchedule'
pagination:
$ref: '#/components/schemas/Pagination'
post:
operationId: createPmSchedule
summary: Create PM schedule
tags:
- PM Schedules
description: Requires `pm_schedules:write` scope.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PmScheduleCreate'
responses:
'201':
description: Created
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/PmSchedule'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'413':
$ref: '#/components/responses/PayloadTooLarge'
'429':
$ref: '#/components/responses/RateLimited'
servers:
- url: https://ksirnjovowpvamgcnapt.supabase.co/functions/v1/api-gateway/v1
description: Production
/pm-schedules/{id}:
get:
operationId: getPmSchedule
summary: Get PM schedule by ID
tags:
- PM Schedules
parameters:
- $ref: '#/components/parameters/id'
responses:
'200':
description: PM schedule detail (includes tasks, resources, additional IDs)
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/PmSchedule'
'404':
$ref: '#/components/responses/NotFound'
patch:
operationId: updatePmSchedule
summary: Update PM schedule
tags:
- PM Schedules
description: Requires `pm_schedules:write` scope. Immutable fields are silently stripped.
parameters:
- $ref: '#/components/parameters/id'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PmScheduleUpdate'
responses:
'200':
description: Updated
content:
application/json:
schema:
type: object
properties:
data:
$ref: '#/components/schemas/PmSchedule'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'413':
$ref: '#/components/responses/PayloadTooLarge'
'429':
$ref: '#/components/responses/RateLimited'
delete:
operationId: deletePmSchedule
summary: Delete PM schedule
tags:
- PM Schedules
description: Requires `pm_schedules:write` scope.
parameters:
- $ref: '#/components/parameters/id'
responses:
'200':
$ref: '#/components/responses/Deleted'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
servers:
- url: https://ksirnjovowpvamgcnapt.supabase.co/functions/v1/api-gateway/v1
description: Production
components:
schemas:
PmScheduleCreate:
type: object
required:
- title
properties:
title:
type: string
description:
type: string
nullable: true
frequency:
type: string
nullable: true
custom_interval_weeks:
type: integer
nullable: true
next_due:
type: string
format: date
nullable: true
estimated_hours:
type: number
nullable: true
estimated_cost:
type: number
nullable: true
description: Money in the organization's currency - GET /v1/organization-settings for currency_code
site_id:
type: string
format: uuid
nullable: true
building_id:
type: string
format: uuid
nullable: true
asset_id:
type: string
format: uuid
nullable: true
infrastructure_asset_id:
type: string
format: uuid
nullable: true
description: Infrastructure feature target (mutually exclusive with asset_id)
infrastructure_asset_ids:
type: array
items:
type: string
format: uuid
description: Infrastructure features this record covers. The whole selection is one record; infrastructure_asset_id is kept in sync as the first of them.
asset_ids:
type: array
items:
type: string
nullable: true
system_ids:
type: array
items:
type: string
nullable: true
location_ids:
type: array
items:
type: string
nullable: true
location_id:
type: string
format: uuid
nullable: true
work_category:
type: string
nullable: true
schedule_type:
type: string
nullable: true
lead_time_days:
type: integer
nullable: true
grace_period_days:
type: integer
nullable: true
safety_requirements:
type: string
nullable: true
status:
type: string
nullable: true
auto_generate_wo:
type: boolean
nullable: true
floating:
type: boolean
nullable: true
meter_based:
type: boolean
nullable: true
description: Whether this is a meter-based PM schedule
meter_interval:
type: number
nullable: true
description: Trigger every N meter units
meter_unit:
type: string
nullable: true
description: Meter unit (km, miles, hours, cycles)
tasks:
type: array
nullable: true
items:
type: object
properties:
id:
type: string
description:
type: string
completed:
type: boolean
required:
- id
- description
- completed
resources:
type: array
nullable: true
items:
type: object
start_date:
type: string
format: date
nullable: true
form_template_id:
type: string
format: uuid
nullable: true
description: Published form template to attach to every work order this schedule generates. Must belong to your tenant; a draft attaches nothing until published.
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
Error:
type: object
properties:
error:
type: string
example: Asset not found
PmSchedule:
type: object
properties:
id:
type: string
format: uuid
title:
type: string
description:
type: string
nullable: true
description: Only in detail response
frequency:
type: string
nullable: true
custom_interval_weeks:
type: integer
nullable: true
description: Only in detail response
next_due:
type: string
format: date
nullable: true
last_performed:
type: string
format: date
nullable: true
estimated_hours:
type: number
nullable: true
estimated_cost:
type: number
nullable: true
description: Money in the organization's currency - GET /v1/organization-settings for currency_code
site_id:
type: string
format: uuid
nullable: true
building_id:
type: string
format: uuid
nullable: true
asset_id:
type: string
format: uuid
nullable: true
infrastructure_asset_id:
type: string
format: uuid
nullable: true
description: Infrastructure feature target (mutually exclusive with asset_id)
infrastructure_asset_ids:
type: array
items:
type: string
format: uuid
description: Infrastructure features this record covers. The whole selection is one record; infrastructure_asset_id is kept in sync as the first of them.
asset_ids:
type: array
items:
type: string
nullable: true
description: Only in detail response
system_ids:
type: array
items:
type: string
nullable: true
description: Only in detail response
location_ids:
type: array
items:
type: string
nullable: true
description: Only in detail response
location_id:
type: string
format: uuid
nullable: true
description: Only in detail response
work_category:
type: string
nullable: true
description: Only in detail response
schedule_type:
type: string
nullable: true
lead_time_days:
type: integer
nullable: true
description: Only in detail response
grace_period_days:
type: integer
nullable: true
description: Only in detail response
safety_requirements:
type: string
nullable: true
description: Only in detail response
status:
type: string
nullable: true
auto_generate_wo:
type: boolean
nullable: true
floating:
type: boolean
nullable: true
description: Only in detail response
meter_based:
type: boolean
nullable: true
description: Whether this is a meter-based PM schedule
meter_interval:
type: number
nullable: true
description: Trigger every N meter units
meter_unit:
type: string
nullable: true
description: Meter unit (km, miles, hours, cycles)
tasks:
type: array
nullable: true
items:
type: object
properties:
id:
type: string
description:
type: string
completed:
type: boolean
required:
- id
- description
- completed
description: Only in detail response
resources:
type: array
nullable: true
items:
type: object
description: Only in detail response
start_date:
type: string
format: date
nullable: true
next_generation_date:
type: string
format: date
nullable: true
last_generated_date:
type: string
format: date
nullable: true
description: Only in detail response
form_template_id:
type: string
format: uuid
nullable: true
description: Published form attached to every work order this schedule generates
created_at:
type: string
format: date-time
nullable: true
updated_at:
type: string
format: date-time
nullable: true
PmScheduleUpdate:
type: object
properties:
title:
type: string
description:
type: string
nullable: true
frequency:
type: string
nullable: true
custom_interval_weeks:
type: integer
nullable: true
next_due:
type: string
format: date
nullable: true
estimated_hours:
type: number
nullable: true
estimated_cost:
type: number
nullable: true
description: Money in the organization's currency - GET /v1/organization-settings for currency_code
site_id:
type: string
format: uuid
nullable: true
building_id:
type: string
format: uuid
nullable: true
asset_id:
type: string
format: uuid
nullable: true
infrastructure_asset_id:
type: string
format: uuid
nullable: true
description: Infrastructure feature target (mutually exclusive with asset_id)
infrastructure_asset_ids:
type: array
items:
type: string
format: uuid
description: Infrastructure features this record covers. The whole selection is one record; infrastructure_asset_id is kept in sync as the first of them.
asset_ids:
type: array
items:
type: string
nullable: true
system_ids:
type: array
items:
type: string
nullable: true
location_ids:
type: array
items:
type: string
nullable: true
location_id:
type: string
format: uuid
nullable: true
work_category:
type: string
nullable: true
schedule_type:
type: string
nullable: true
lead_time_days:
type: integer
nullable: true
grace_period_days:
type: integer
nullable: true
safety_requirements:
type: string
nullable: true
status:
type: string
nullable: true
auto_generate_wo:
type: boolean
nullable: true
floating:
type: boolean
nullable: true
meter_based:
type: boolean
nullable: true
description: Whether this is a meter-based PM schedule
meter_interval:
type: number
nullable: true
description: Trigger every N meter units
meter_unit:
type: string
nullable: true
description: Meter unit (km, miles, hours, cycles)
tasks:
type: array
nullable: true
items:
type: object
properties:
id:
type: string
description:
type: string
completed:
type: boolean
required:
- id
- description
- completed
resources:
type: array
nullable: true
items:
type: object
start_date:
type: string
format: date
nullable: true
form_template_id:
type: string
format: uuid
nullable: true
description: Published form template to attach to every work order this schedule generates. Must belong to your tenant; a draft attaches nothing until published.
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'
PayloadTooLarge:
description: Request body exceeds size limit
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'
Forbidden:
description: Insufficient permissions - missing scope, or a resource the organization's plan does not include
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
search:
name: search
in: query
schema:
type: string
maxLength: 200
description: Case-insensitive name search
per_page:
name: per_page
in: query
schema:
type: integer
default: 25
minimum: 1
maximum: 1000
description: Items per page
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
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