> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oncanary.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List assets

> Retrieve a paginated list of assets



## OpenAPI

````yaml /openapi.yaml get /assets
openapi: 3.1.0
info:
  title: Canary API
  version: '1.0'
  description: >
    Build integrations around Canary work orders, requests, equipment,
    inventory, meters,

    custom fields, and scannable identifiers.


    ## Authentication


    All API requests require authentication using an API key. Include your API
    key in the `Authorization` header:


    ```

    Authorization: Bearer sk_live_your_api_key_here

    ```


    ## Rate Limits


    - **Live keys**: 1,000 requests per minute

    - **Test keys**: 100 requests per minute


    Both key prefixes access the same organization data. The prefix selects the
    rate-limit bucket.


    Successful authenticated responses include rate limit headers:

    - `X-RateLimit-Limit`: Maximum requests per window

    - `X-RateLimit-Remaining`: Requests remaining in current window

    - `X-RateLimit-Reset`: Unix timestamp when the window resets


    ## Pagination


    Canary-native list endpoints use ID cursors and the standard `data`/`meta`
    envelope.

    MaintainX-compatible request endpoints use their compatibility response
    wrappers and

    encoded offset cursors. Follow each operation's response schema.


    Native list responses include:

    - `data`: Array of items

    - `meta.pagination.cursor`: Cursor for the next page (if `has_more` is true)

    - `meta.pagination.has_more`: Whether more items exist


    Use the cursor value in your next request: `?cursor=<cursor_value>`
servers:
  - url: https://api.oncanary.com/v1
    description: Production
  - url: http://localhost:3000/api/v1
    description: Local Development
security:
  - bearerAuth: []
tags:
  - name: Meters
    description: Meters track equipment usage and readings
  - name: Meter Readings
    description: Record and retrieve meter readings
  - name: Work Orders
    description: Maintenance work orders
  - name: Work Requests
    description: Requests that can be reviewed and converted into work orders
  - name: Work Request Portals
    description: Public request portal configuration
  - name: Assets
    description: Equipment and machinery
  - name: Locations
    description: Physical places where assets, parts, and meters are assigned
  - name: Parts
    description: Spare parts and inventory records
  - name: Identifiers
    description: Scannable identifiers for assets, locations, and parts
  - name: Custom Fields
    description: Typed custom-field definitions shared by maintenance resources
paths:
  /assets:
    get:
      tags:
        - Assets
      summary: List assets
      description: Retrieve a paginated list of assets
      operationId: listAssets
      parameters:
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/cursor'
        - $ref: '#/components/parameters/direction'
        - name: asset_type
          in: query
          description: >-
            Filter by a current asset type slug, including custom types or
            unassigned
          schema:
            $ref: '#/components/schemas/AssetCurrentType'
        - name: status
          in: query
          description: Filter by status
          schema:
            $ref: '#/components/schemas/AssetStatus'
        - name: criticality
          in: query
          description: Filter by operational criticality
          schema:
            $ref: '#/components/schemas/AssetCriticality'
        - name: location_id
          in: query
          description: Filter by location ID
          schema:
            type: string
      responses:
        '200':
          description: List of assets
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ListResponse'
                  - type: object
                    properties:
                      data:
                        type: array
                        items:
                          $ref: '#/components/schemas/Asset'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    limit:
      name: limit
      in: query
      description: Maximum number of items to return from a Canary-native list (1-100)
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 20
    cursor:
      name: cursor
      in: query
      description: Pagination cursor from previous response
      schema:
        type: string
    direction:
      name: direction
      in: query
      description: Sort direction
      schema:
        type: string
        enum:
          - asc
          - desc
        default: desc
  schemas:
    AssetCurrentType:
      type: string
      maxLength: 100
      description: >-
        Compatibility slug derived from current active asset type assignments.
        Returns unassigned when prior assignments exist but none remain active.
    AssetStatus:
      type: string
      enum:
        - online
        - offline
        - not_monitored
    AssetCriticality:
      type: string
      enum:
        - critical
        - important
        - normal
    ListResponse:
      type: object
      required:
        - data
        - meta
      properties:
        data:
          type: array
          items: {}
        meta:
          type: object
          required:
            - request_id
            - api_version
            - pagination
          properties:
            request_id:
              type: string
            api_version:
              type: string
            pagination:
              type: object
              required:
                - has_more
              properties:
                cursor:
                  type: string
                has_more:
                  type: boolean
                total_count:
                  type: integer
                  minimum: 0
    Asset:
      type: object
      required:
        - id
        - name
        - description
        - asset_type
        - asset_types
        - status
        - criticality
        - serial_number
        - manufacturer
        - model
        - year
        - location_id
        - parent_asset_id
        - sub_asset_count
        - deleted_at
        - image_url
        - created_at
        - updated_at
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type:
            - string
            - 'null'
        asset_type:
          $ref: '#/components/schemas/AssetCurrentType'
        asset_types:
          type: array
          readOnly: true
          description: Active organization-defined asset type assignments
          items:
            $ref: '#/components/schemas/AssetTypeAssignment'
        status:
          $ref: '#/components/schemas/AssetStatus'
        criticality:
          $ref: '#/components/schemas/AssetCriticality'
        serial_number:
          type:
            - string
            - 'null'
        manufacturer:
          type:
            - string
            - 'null'
        model:
          type:
            - string
            - 'null'
        year:
          type:
            - integer
            - 'null'
        location_id:
          type:
            - string
            - 'null'
        parent_asset_id:
          type:
            - string
            - 'null'
          readOnly: true
        sub_asset_count:
          type: integer
          minimum: 0
          readOnly: true
        deleted_at:
          type:
            - string
            - 'null'
          format: date-time
          readOnly: true
        image_url:
          type:
            - string
            - 'null'
        extraFields:
          $ref: '#/components/schemas/ExtraFields'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    AssetTypeAssignment:
      type: object
      required:
        - id
        - name
      properties:
        id:
          type: string
        name:
          type: string
    ExtraFields:
      type: object
      description: >-
        Label-keyed custom-field values. Omitted labels remain unchanged on
        update.
      additionalProperties:
        type: string
        maxLength: 4096
    ProblemDetails:
      type: object
      description: RFC 7807 Problem Details
      required:
        - type
        - title
        - status
        - detail
        - request_id
        - code
      example:
        type: https://api.oncanary.com/errors/validation_error
        title: Validation Error
        status: 400
        detail: Request validation failed
        request_id: req_01JAY8FVDM6CH4R3X9Q2T7K5NP
        code: validation_error
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        request_id:
          type: string
        code:
          type: string
        validation_errors:
          type: array
          items:
            type: object
            required:
              - field
              - message
            properties:
              field:
                type: string
              message:
                type: string
  responses:
    BadRequest:
      description: Bad Request
      headers:
        X-Request-ID:
          $ref: '#/components/headers/RequestId'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
    Unauthorized:
      description: Unauthorized - Invalid or missing API key
      headers:
        X-Request-ID:
          $ref: '#/components/headers/RequestId'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
    Forbidden:
      description: >-
        Forbidden - `insufficient_scope` when the API key lacks the scope, or
        `module_disabled` when the organization module is disabled
      headers:
        X-Request-ID:
          $ref: '#/components/headers/RequestId'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
    RateLimited:
      description: Rate limit exceeded
      headers:
        X-Request-ID:
          $ref: '#/components/headers/RequestId'
        Retry-After:
          description: Seconds until rate limit resets
          schema:
            type: integer
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
  headers:
    RequestId:
      description: Unique request identifier to include with support requests
      schema:
        type: string
        example: req_01JAY8FVDM6CH4R3X9Q2T7K5NP
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Organization API key with an `sk_live_` or `sk_test_` prefix

````