AssetLab Sites API

Physical site locations

Operations 5

GET /sites List sites #
POST /sites Create site #
GET /sites/{id} Get site by ID #
PATCH /sites/{id} Update site #
DELETE /sites/{id} Delete site #

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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/assetlab-ca:assetlab-ca-sites-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

assetlab-ca-sites-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Assetlab Ca Sites API
  version: '1.0'
  contact:
    name: AssetLab Support
    url: https://assetlab.ca
    email: support@assetlab.ca
  license:
    name: Proprietary
  description: 'Operations tagged Sites 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: Sites
  description: Physical site locations
paths:
  /sites:
    get:
      operationId: listSites
      summary: List sites
      tags:
      - Sites
      description: 'Returns a paginated list of sites. Requires `sites:read` scope.

        Archived sites are left out unless `include_archived=true`.'
      parameters:
      - $ref: '#/components/parameters/page'
      - $ref: '#/components/parameters/per_page'
      - $ref: '#/components/parameters/search'
      - name: city
        in: query
        schema:
          type: string
        description: Filter by city (partial match)
      - name: include_archived
        in: query
        schema:
          type: boolean
          default: false
        description: Include archived sites in the list.
      responses:
        '200':
          description: Paginated site list
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Site'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
    post:
      operationId: createSite
      summary: Create site
      tags:
      - Sites
      description: Requires `sites:write` scope.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SiteCreate'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Site'
        '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
  /sites/{id}:
    get:
      operationId: getSite
      summary: Get site by ID
      tags:
      - Sites
      parameters:
      - $ref: '#/components/parameters/id'
      responses:
        '200':
          description: Site detail
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Site'
        '404':
          $ref: '#/components/responses/NotFound'
    patch:
      operationId: updateSite
      summary: Update site
      tags:
      - Sites
      description: 'Requires `sites:write` scope. Immutable fields are silently stripped.

        Send `archived: true` to archive a closed site with its buildings, locations and assets

        instead of deleting it; `archived: false` restores it. Writes elsewhere that point a

        record at an archived site, building or location it does not already hold return 409.'
      parameters:
      - $ref: '#/components/parameters/id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SiteUpdate'
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Site'
        '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: deleteSite
      summary: Delete site
      tags:
      - Sites
      description: Requires `sites: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:
  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'
    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'
  schemas:
    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
    SiteUpdate:
      type: object
      properties:
        archived:
          type: boolean
          description: true archives the site with its buildings, locations and assets in one step (work orders keep their links); false restores it and what was archived with it. Repeating the current state is a no-op.
        archived_reason:
          type: string
          enum:
          - closed
          - sold
          - lease_ended
          - merged
          - other
          description: 'Optional, only with archived: true.'
        name:
          type: string
        address:
          type: string
          nullable: true
        city:
          type: string
          nullable: true
        province:
          type: string
          nullable: true
        postal code:
          type: string
          nullable: true
        country:
          type: string
          nullable: true
        Description:
          type: string
          nullable: true
        square_footage:
          type: number
          nullable: true
        cost_per_sqft:
          type: number
          nullable: true
          description: Money in the organization's currency - GET /v1/organization-settings for currency_code
        additional_cost_per_sqft:
          type: number
          nullable: true
          description: Money in the organization's currency - GET /v1/organization-settings for currency_code
        operational_cost_per_sqft:
          type: number
          nullable: true
          description: Money in the organization's currency - GET /v1/organization-settings for currency_code
        year_built:
          type: integer
          nullable: true
        contact_name:
          type: string
          nullable: true
        contact_email:
          type: string
          nullable: true
        contact_phone:
          type: string
          nullable: true
        owner_landlord:
          type: string
          nullable: true
        ownership_type:
          type: string
          nullable: true
          enum:
          - Owned
          - Leased
          - Managed
        lease_start_date:
          type: string
          format: date
          nullable: true
        lease_end_date:
          type: string
          format: date
          nullable: true
        renewal_option:
          type: string
          nullable: true
        lease_details:
          type: string
          nullable: true
        insurance_provider:
          type: string
          nullable: true
        insurance_policy_number:
          type: string
          nullable: true
        property_manager_company:
          type: string
          nullable: true
        property_manager_contact_name:
          type: string
          nullable: true
        property_manager_contact_email:
          type: string
          nullable: true
        property_manager_contact_phone:
          type: string
          nullable: true
    Site:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        address:
          type: string
          nullable: true
        city:
          type: string
          nullable: true
        province:
          type: string
          nullable: true
        postal code:
          type: string
          nullable: true
        country:
          type: string
          nullable: true
        Description:
          type: string
          nullable: true
        square_footage:
          type: number
          nullable: true
          description: Square footage
        cost_per_sqft:
          type: number
          nullable: true
          description: Base cost per square foot. Money in the organization's currency - GET /v1/organization-settings for currency_code
        additional_cost_per_sqft:
          type: number
          nullable: true
          description: Additional cost per square foot. Money in the organization's currency - GET /v1/organization-settings for currency_code
        operational_cost_per_sqft:
          type: number
          nullable: true
          description: Operational cost per square foot. Money in the organization's currency - GET /v1/organization-settings for currency_code
        year_built:
          type: integer
          nullable: true
          description: Year built
        contact_name:
          type: string
          nullable: true
        contact_email:
          type: string
          nullable: true
        contact_phone:
          type: string
          nullable: true
        owner_landlord:
          type: string
          nullable: true
        ownership_type:
          type: string
          nullable: true
          enum:
          - Owned
          - Leased
          - Managed
        lease_start_date:
          type: string
          format: date
          nullable: true
        lease_end_date:
          type: string
          format: date
          nullable: true
        renewal_option:
          type: string
          nullable: true
        lease_details:
          type: string
          nullable: true
        insurance_provider:
          type: string
          nullable: true
        insurance_policy_number:
          type: string
          nullable: true
        property_manager_company:
          type: string
          nullable: true
        property_manager_contact_name:
          type: string
          nullable: true
        property_manager_contact_email:
          type: string
          nullable: true
        property_manager_contact_phone:
          type: string
          nullable: true
        archived_at:
          type: string
          format: date-time
          nullable: true
          description: 'When the site was archived; null for a live site. Read-only: archive with PATCH /sites/{id} and archived.'
        archived_by:
          type: string
          nullable: true
          description: User who archived the site; null through an API key. Read-only.
        archived_reason:
          type: string
          nullable: true
          enum:
          - closed
          - sold
          - lease_ended
          - merged
          - other
          description: Reason given when archiving.
        created_at:
          type: string
          format: date-time
          nullable: true
        updated_at:
          type: string
          format: date-time
          nullable: true
    SiteCreate:
      type: object
      required:
      - name
      properties:
        name:
          type: string
        address:
          type: string
          nullable: true
        city:
          type: string
          nullable: true
        province:
          type: string
          nullable: true
        postal code:
          type: string
          nullable: true
        country:
          type: string
          nullable: true
        Description:
          type: string
          nullable: true
        square_footage:
          type: number
          nullable: true
        cost_per_sqft:
          type: number
          nullable: true
          description: Money in the organization's currency - GET /v1/organization-settings for currency_code
        additional_cost_per_sqft:
          type: number
          nullable: true
          description: Money in the organization's currency - GET /v1/organization-settings for currency_code
        operational_cost_per_sqft:
          type: number
          nullable: true
          description: Money in the organization's currency - GET /v1/organization-settings for currency_code
        year_built:
          type: integer
          nullable: true
        contact_name:
          type: string
          nullable: true
        contact_email:
          type: string
          nullable: true
        contact_phone:
          type: string
          nullable: true
        owner_landlord:
          type: string
          nullable: true
        ownership_type:
          type: string
          nullable: true
          enum:
          - Owned
          - Leased
          - Managed
        lease_start_date:
          type: string
          format: date
          nullable: true
        lease_end_date:
          type: string
          format: date
          nullable: true
        renewal_option:
          type: string
          nullable: true
        lease_details:
          type: string
          nullable: true
        insurance_provider:
          type: string
          nullable: true
        insurance_policy_number:
          type: string
          nullable: true
        property_manager_company:
          type: string
          nullable: true
        property_manager_contact_name:
          type: string
          nullable: true
        property_manager_contact_email:
          type: string
          nullable: true
        property_manager_contact_phone:
          type: string
          nullable: true
  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