AssetLab Infrastructure Assets API

Infrastructure features (segments and nodes) with GeoJSON geometry

Operations 5

GET /infrastructure-assets List infrastructure assets (features) #
POST /infrastructure-assets Create infrastructure asset (feature) #
GET /infrastructure-assets/{id} Get infrastructure asset by ID #
PATCH /infrastructure-assets/{id} Update infrastructure asset #
DELETE /infrastructure-assets/{id} Soft-delete infrastructure asset #

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-infrastructure-assets-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-infrastructure-assets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Assetlab Ca Infrastructure Assets API
  version: '1.0'
  contact:
    name: AssetLab Support
    url: https://assetlab.ca
    email: support@assetlab.ca
  license:
    name: Proprietary
  description: 'Operations tagged Infrastructure Assets 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: Infrastructure Assets
  description: Infrastructure features (segments and nodes) with GeoJSON geometry
paths:
  /infrastructure-assets:
    get:
      operationId: listInfrastructureAssets
      summary: List infrastructure assets (features)
      tags:
      - Infrastructure Assets
      description: 'Returns features (segments and nodes) with geometry as GeoJSON in EPSG:4326.

        Requires `infrastructure_assets:read` scope.'
      parameters:
      - $ref: '#/components/parameters/page'
      - $ref: '#/components/parameters/per_page'
      - $ref: '#/components/parameters/search'
      - in: query
        name: network_id
        schema:
          type: string
          format: uuid
      - in: query
        name: feature_type
        schema:
          type: string
          enum:
          - segment
          - node
      - in: query
        name: site_id
        schema:
          type: string
          format: uuid
      - in: query
        name: status_id
        schema:
          type: string
      - in: query
        name: asset_type_id
        schema:
          type: string
          format: uuid
      - in: query
        name: condition_min
        schema:
          type: number
        description: Minimum condition score (0-100)
      - in: query
        name: condition_max
        schema:
          type: number
        description: Maximum condition score (0-100)
      - in: query
        name: risk_score_min
        schema:
          type: number
        description: Minimum risk score
      - in: query
        name: risk_score_max
        schema:
          type: number
        description: Maximum risk score
      - in: query
        name: include_deleted
        schema:
          type: boolean
        description: Include soft-deleted features (default false)
      responses:
        '200':
          description: Paginated feature list
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/InfrastructureAsset'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
        '401':
          $ref: '#/components/responses/Unauthorized'
    post:
      operationId: createInfrastructureAsset
      summary: Create infrastructure asset (feature)
      tags:
      - Infrastructure Assets
      description: '`geometry` must be GeoJSON matching `feature_type`. Requires

        `infrastructure_assets:write` scope.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InfrastructureAssetCreate'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/InfrastructureAsset'
        '400':
          $ref: '#/components/responses/BadRequest'
    servers:
    - url: https://ksirnjovowpvamgcnapt.supabase.co/functions/v1/api-gateway/v1
      description: Production
  /infrastructure-assets/{id}:
    get:
      operationId: getInfrastructureAsset
      summary: Get infrastructure asset by ID
      tags:
      - Infrastructure Assets
      parameters:
      - $ref: '#/components/parameters/id'
      responses:
        '200':
          description: Feature detail
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/InfrastructureAsset'
        '404':
          $ref: '#/components/responses/NotFound'
    patch:
      operationId: updateInfrastructureAsset
      summary: Update infrastructure asset
      tags:
      - Infrastructure Assets
      description: Requires `infrastructure_assets:write` scope.
      parameters:
      - $ref: '#/components/parameters/id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InfrastructureAssetUpdate'
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/InfrastructureAsset'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      operationId: deleteInfrastructureAsset
      summary: Soft-delete infrastructure asset
      tags:
      - Infrastructure Assets
      description: Sets `deleted_at`. Requires `infrastructure_assets:write` scope.
      parameters:
      - $ref: '#/components/parameters/id'
      responses:
        '200':
          $ref: '#/components/responses/Deleted'
        '404':
          $ref: '#/components/responses/NotFound'
    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'
  schemas:
    InfrastructureAssetCreate:
      type: object
      required:
      - network_id
      - feature_type
      - geometry
      description: '`geometry` must match `feature_type` (segment ↔ LineString, node ↔ Point).

        Coordinates are [longitude, latitude] in EPSG:4326.

        Computed columns (`length_m`, `slope_pct`, `risk_score`) cannot be set.

        '
      properties:
        network_id:
          type: string
          format: uuid
        feature_type:
          type: string
          enum:
          - segment
          - node
        geometry:
          $ref: '#/components/schemas/GeoJsonGeometry'
        name:
          type: string
          maxLength: 500
          nullable: true
        feature_code:
          type: string
          maxLength: 100
          nullable: true
          description: Human-readable Feature ID, unique per tenant
        description:
          type: string
          nullable: true
        external_ids:
          type: object
          additionalProperties: true
        from_street:
          type: string
          maxLength: 200
          nullable: true
        to_street:
          type: string
          maxLength: 200
          nullable: true
        image_url:
          type: string
          nullable: true
        qr_code:
          type: string
          maxLength: 200
          nullable: true
        from_feature_id:
          type: string
          format: uuid
          nullable: true
        to_feature_id:
          type: string
          format: uuid
          nullable: true
        flow_direction:
          type: string
          enum:
          - with_geometry
          - against_geometry
          nullable: true
        asset_type_id:
          type: string
          format: uuid
          nullable: true
        manufacturer_id:
          type: string
          format: uuid
          nullable: true
        system_class_id:
          type: string
          format: uuid
          nullable: true
        system_group_id:
          type: string
          format: uuid
          nullable: true
        system_id:
          type: string
          format: uuid
          nullable: true
        model:
          type: string
          maxLength: 200
          nullable: true
        serial_number:
          type: string
          maxLength: 200
          nullable: true
        site_id:
          type: string
          format: uuid
          nullable: true
        building_id:
          type: string
          format: uuid
          nullable: true
        location_id:
          type: string
          format: uuid
          nullable: true
        status_id:
          type: string
          nullable: true
        condition_score:
          type: number
          minimum: 0
          maximum: 100
          nullable: true
        last_maintenance_date:
          type: string
          format: date
          nullable: true
        risk_factor:
          type: string
          nullable: true
        consequence_of_failure_score:
          type: number
          minimum: 0
          maximum: 100
          nullable: true
        likelihood_of_failure_score:
          type: number
          minimum: 0
          maximum: 100
          nullable: true
        safety_impact:
          type: string
          nullable: true
        service_impact:
          type: string
          nullable: true
        environmental_impact:
          type: string
          nullable: true
        financial_impact:
          type: number
          nullable: true
          description: Estimated cost of a failure. Money in the organization's currency - GET /v1/organization-settings for currency_code
        regulatory_impact:
          type: string
          nullable: true
        reputation_impact:
          type: string
          nullable: true
        purchase_cost:
          type: number
          minimum: 0
          nullable: true
          description: Money in the organization's currency - GET /v1/organization-settings for currency_code
        purchase_date:
          type: string
          format: date
          nullable: true
        install_date:
          type: string
          format: date
          nullable: true
        expected_lifetime_years:
          type: number
          minimum: 0
          nullable: true
        salvage_value:
          type: number
          minimum: 0
          nullable: true
          description: Money in the organization's currency - GET /v1/organization-settings for currency_code
        salvage_value_percentage:
          type: number
          minimum: 0
          maximum: 100
          nullable: true
        quantity:
          type: number
          minimum: 0
          nullable: true
        unit_of_measure:
          type: string
          maxLength: 50
          nullable: true
        unit_replacement_value:
          type: number
          minimum: 0
          nullable: true
          description: Money in the organization's currency - GET /v1/organization-settings for currency_code
        purchase_cost_calculation_method:
          type: string
          enum:
          - manual
          - calculated_sqft
          - calculated_unit
          nullable: true
        material:
          type: string
          maxLength: 200
          nullable: true
        diameter_mm:
          type: number
          minimum: 0
          nullable: true
        width_m:
          type: number
          minimum: 0
          nullable: true
        lanes:
          type: integer
          minimum: 0
          nullable: true
        road_class:
          type: integer
          minimum: 1
          maximum: 6
          nullable: true
          description: O. Reg. 239/02 road class. Classes 1-2 are arterial, 3-4 collector, 5-6 local.
        depth_m:
          type: number
          minimum: 0
          nullable: true
        from_invert_m:
          type: number
          nullable: true
        to_invert_m:
          type: number
          nullable: true
        positional_accuracy_class:
          type: string
          enum:
          - survey_grade
          - mapping_grade
          - sketch
          - unknown
          nullable: true
        data_source:
          type: string
          maxLength: 200
          nullable: true
    InfrastructureAsset:
      type: object
      description: 'An infrastructure feature — segment (LineString) or node (Point). Geometry is

        returned as GeoJSON in EPSG:4326. `length_m`, `slope_pct`, and `risk_score`

        are computed server-side.

        '
      properties:
        id:
          type: string
          format: uuid
        tenant_id:
          type: string
        network_id:
          type: string
          format: uuid
        feature_type:
          type: string
          enum:
          - segment
          - node
        geometry:
          $ref: '#/components/schemas/GeoJsonGeometry'
        length_m:
          type: number
          nullable: true
          description: Server-computed for segments
        name:
          type: string
          nullable: true
        feature_code:
          type: string
          nullable: true
          description: Human-readable Feature ID, unique per tenant
        description:
          type: string
          nullable: true
        external_ids:
          type: object
          additionalProperties: true
          nullable: true
        from_street:
          type: string
          nullable: true
        to_street:
          type: string
          nullable: true
        image_url:
          type: string
          nullable: true
        qr_code:
          type: string
          nullable: true
        from_feature_id:
          type: string
          format: uuid
          nullable: true
        to_feature_id:
          type: string
          format: uuid
          nullable: true
        flow_direction:
          type: string
          enum:
          - with_geometry
          - against_geometry
          nullable: true
        split_from_feature_id:
          type: string
          format: uuid
          nullable: true
        asset_type_id:
          type: string
          format: uuid
          nullable: true
        manufacturer_id:
          type: string
          format: uuid
          nullable: true
        system_class_id:
          type: string
          format: uuid
          nullable: true
        system_group_id:
          type: string
          format: uuid
          nullable: true
        system_id:
          type: string
          format: uuid
          nullable: true
        model:
          type: string
          nullable: true
        serial_number:
          type: string
          nullable: true
        site_id:
          type: string
          format: uuid
          nullable: true
        building_id:
          type: string
          format: uuid
          nullable: true
        location_id:
          type: string
          format: uuid
          nullable: true
        status_id:
          type: string
          nullable: true
        condition_score:
          type: number
          nullable: true
        last_maintenance_date:
          type: string
          format: date
          nullable: true
        risk_factor:
          type: string
          nullable: true
        consequence_of_failure_score:
          type: number
          nullable: true
        likelihood_of_failure_score:
          type: number
          nullable: true
        risk_score:
          type: number
          nullable: true
          description: Server-computed
        safety_impact:
          type: string
          nullable: true
        service_impact:
          type: string
          nullable: true
        environmental_impact:
          type: string
          nullable: true
        financial_impact:
          type: number
          nullable: true
          description: Estimated cost of a failure. Money in the organization's currency - GET /v1/organization-settings for currency_code
        regulatory_impact:
          type: string
          nullable: true
        reputation_impact:
          type: string
          nullable: true
        purchase_cost:
          type: number
          nullable: true
          description: Money in the organization's currency - GET /v1/organization-settings for currency_code
        purchase_date:
          type: string
          format: date
          nullable: true
        install_date:
          type: string
          format: date
          nullable: true
        expected_lifetime_years:
          type: number
          nullable: true
        salvage_value:
          type: number
          nullable: true
          description: Money in the organization's currency - GET /v1/organization-settings for currency_code
        salvage_value_percentage:
          type: number
          nullable: true
        quantity:
          type: number
          nullable: true
        unit_of_measure:
          type: string
          nullable: true
        unit_replacement_value:
          type: number
          nullable: true
          description: Money in the organization's currency - GET /v1/organization-settings for currency_code
        purchase_cost_calculation_method:
          type: string
          enum:
          - manual
          - calculated_sqft
          - calculated_unit
          nullable: true
        material:
          type: string
          nullable: true
        diameter_mm:
          type: number
          nullable: true
        width_m:
          type: number
          nullable: true
        lanes:
          type: integer
          nullable: true
        road_class:
          type: integer
          minimum: 1
          maximum: 6
          nullable: true
          description: O. Reg. 239/02 road class. Classes 1-2 are arterial, 3-4 collector, 5-6 local.
        depth_m:
          type: number
          nullable: true
        from_invert_m:
          type: number
          nullable: true
        to_invert_m:
          type: number
          nullable: true
        slope_pct:
          type: number
          nullable: true
          description: Server-computed for segments
        positional_accuracy_class:
          type: string
          enum:
          - survey_grade
          - mapping_grade
          - sketch
          - unknown
          nullable: true
        data_source:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        deleted_at:
          type: string
          format: date-time
          nullable: true
    GeoJsonGeometry:
      oneOf:
      - $ref: '#/components/schemas/GeoJsonPoint'
      - $ref: '#/components/schemas/GeoJsonLineString'
      discriminator:
        propertyName: type
        mapping:
          Point: '#/components/schemas/GeoJsonPoint'
          LineString: '#/components/schemas/GeoJsonLineString'
    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
    GeoJsonLineString:
      type: object
      required:
      - type
      - coordinates
      description: GeoJSON LineString in EPSG:4326. Each coordinate is [longitude, latitude]; minimum 2 points.
      properties:
        type:
          type: string
          enum:
          - LineString
        coordinates:
          type: array
          minItems: 2
          items:
            type: array
            minItems: 2
            maxItems: 2
            items:
              type: number
    GeoJsonPoint:
      type: object
      required:
      - type
      - coordinates
      description: GeoJSON Point in EPSG:4326. Coordinates are [longitude, latitude].
      properties:
        type:
          type: string
          enum:
          - Point
        coordinates:
          type: array
          minItems: 2
          maxItems: 2
          items:
            type: number
    InfrastructureAssetUpdate:
      type: object
      description: 'Replace geometry by providing a new GeoJSON Point/LineString matching the existing

        `feature_type`. Computed columns cannot be set.

        '
      properties:
        geometry:
          $ref: '#/components/schemas/GeoJsonGeometry'
        name:
          type: string
          maxLength: 500
          nullable: true
        feature_code:
          type: string
          maxLength: 100
          nullable: true
          description: Human-readable Feature ID, unique per tenant
        description:
          type: string
          nullable: true
        external_ids:
          type: object
          additionalProperties: true
        from_street:
          type: string
          nullable: true
        to_street:
          type: string
          nullable: true
        image_url:
          type: string
          nullable: true
        qr_code:
          type: string
          nullable: true
        from_feature_id:
          type: string
          format: uuid
          nullable: true
        to_feature_id:
          type: string
          format: uuid
          nullable: true
        flow_direction:
          type: string
          enum:
          - with_geometry
          - against_geometry
          nullable: true
        asset_type_id:
          type: string
          format: uuid
          nullable: true
        manufacturer_id:
          type: string
          format: uuid
          nullable: true
        system_class_id:
          type: string
          format: uuid
          nullable: true
        system_group_id:
          type: string
          format: uuid
          nullable: true
        system_id:
          type: string
          format: uuid
          nullable: true
        model:
          type: string
          nullable: true
        serial_number:
          type: string
          nullable: true
        site_id:
          type: string
          format: uuid
          nullable: true
        building_id:
          type: string
          format: uuid
          nullable: true
        location_id:
          type: string
          format: uuid
          nullable: true
        status_id:
          type: string
          nullable: true
        condition_score:
          type: number
          minimum: 0
          maximum: 100
          nullable: true
        last_maintenance_date:
          type: string
          format: date
          nullable: true
        risk_factor:
          type: string
          nullable: true
        consequence_of_failure_score:
          type: number
          nullable: true
        likelihood_of_failure_score:
          type: number
          nullable: true
        safety_impact:
          type: string
          nullable: true
        service_impact:
          type: string
          nullable: true
        environmental_impact:
          type: string
          nullable: true
        financial_impact:
          type: number
          nullable: true
          description: Estimated cost of a failure. Money in the organization's currency - GET /v1/organization-settings for currency_code
        regulatory_impact:
          type: string
          nullable: true
        reputation_impact:
          type: string
          nullable: true
        purchase_cost:
          type: number
          nullable: true
          description: Money in the organization's currency - GET /v1/organization-settings for currency_code
        purchase_date:
          type: string
          format: date
          nullable: true
        install_date:
          type: string
          format: date
          nullable: true
        expected_lifetime_years:
          type: number
          nullable: true
        salvage_value:
          type: number
          nullable: true
          description: Money in the organization's currency - GET /v1/organization-settings for currency_code
        salvage_value_percentage:
          type: number
          nullable: true
        quantity:
          type: number
          nullable: true
        unit_of_measure:
          type: string
          nullable: true
        unit_replacement_value:
          type: number
          nullable: true
          description: Money in the organization's currency - GET /v1/organization-settings for currency_code
        purchase_cost_calculation_method:
          type: string
          enum:
          - manual
          - calculated_sqft
          - calculated_unit
          nullable: true
        material:
          type: string
          nullable: true
        diameter_mm:
          type: number
          nullable: true
        width_m:
          type: number
          nullable: true
        lanes:
          type: integer
          nullable: true
        road_class:
          type: integer
          minimum: 1
          maximum: 6
          nullable: true
          description: O. Reg. 239/02 road class. Classes 1-2 are arterial, 3-4 collector, 5-6 local.
        depth_m:
          type: number
          nullable: true
        from_invert_m:
          type: number
          nullable: true
        to_invert_m:
          type: number
          nullable: true
        positional_accuracy_class:
          type: string
          enum:
          - survey_grade
          - mapping_grade
          - sketch
          - unknown
          nullable: true
        data_source:
          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