Use this file to discover all available pages before exploring further.
Lamassu provides powerful server-side filtering and sorting on all list endpoints, including support for JSONPath expressions to query nested JSON fields like metadata.
# Find devices with a tag object where key == "production"curl "https://lamassu.example.com/api/devmanager/v1/devices?filter=metadata[jsonpath]exists($.tags[*]%20?%20(@.key%20==%20%22production%22))" \ -H "Authorization: Bearer $TOKEN"
# Find devices with any port > 8000curl "https://lamassu.example.com/api/devmanager/v1/devices?filter=metadata[jsonpath]exists($.ports[*]%20?%20(@%20%3E%208000))" \ -H "Authorization: Bearer $TOKEN"
# Active devices in production environment in us-west regioncurl "https://lamassu.example.com/api/devmanager/v1/devices?filter=status[eq]=ACTIVE&filter=metadata[jsonpath]$.environment%20==%20%22production%22&filter=metadata[jsonpath]$.region%20==%20%22us-west%22" \ -H "Authorization: Bearer $TOKEN"
Sort results using sort_by and sort_mode query parameters:
# Sort devices by creation date (ascending)curl "https://lamassu.example.com/api/devmanager/v1/devices?sort_by=creation_timestamp&sort_mode=asc" \ -H "Authorization: Bearer $TOKEN"# Sort CAs by status (descending)curl "https://lamassu.example.com/api/ca/v1/cas?sort_by=status&sort_mode=desc" \ -H "Authorization: Bearer $TOKEN"
# Filter active devices and sort by prioritycurl "https://lamassu.example.com/api/devmanager/v1/devices?filter=status[eq]=ACTIVE&sort_by=metadata[jsonpath]$.priority&sort_mode=desc" \ -H "Authorization: Bearer $TOKEN"
# By ID?filter=id[eq]=my-root-ca# By level?filter=level[eq]=0# By type?filter=type[eq]=MANAGED# By status?filter=status[eq]=ACTIVE# By engine?filter=engine_id[eq]=aws-kms-prod# By validity dates?filter=valid_to[bf]=2027-01-01T00:00:00Z?filter=valid_from[af]=2025-01-01T00:00:00Z# By subject common name?filter=subject.common_name[eq]=My Root CA# By profile?filter=profile_id[eq]=root-ca-profile
# By serial number?filter=serial_number[eq]=1a2b3c4d5e6f# By type?filter=type[eq]=MANAGED# By status?filter=status[eq]=ACTIVE# By issuer CA ID?filter=issuer_meta.id[eq]=my-root-ca# By subject?filter=subject.common_name[ct]=device# By metadata (JSONPath)?filter=metadata[jsonpath]$.purpose == "signing"# By validity?filter=valid_to[bf]=2026-12-31T23:59:59Z
# By ID?filter=id[eq]=device-001# By DMS owner?filter=dms_owner[eq]=manufacturing-dms# By status?filter=status[eq]=ACTIVE# By tags?filter=tags[ct]=production# By creation date?filter=creation_timestamp[af]=2026-01-01T00:00:00Z# By metadata (JSONPath)?filter=metadata[jsonpath]$.location == "factory-floor-3"
# By ID?filter=id[eq]=manufacturing-dms# By name?filter=name[ct]=production# By creation date?filter=creation_date[af]=2025-01-01# By metadata (JSONPath)?filter=metadata[jsonpath]$.region == "eu-west-1"# By settings (JSONPath)?filter=settings[jsonpath]$.auth_mode == "mTLS"
# Stats for devices in a specific DMScurl "https://lamassu.example.com/api/devmanager/v1/stats?filter=dms_owner[eq]=manufacturing-dms" \ -H "Authorization: Bearer $TOKEN"# Stats for production devicescurl "https://lamassu.example.com/api/devmanager/v1/stats?filter=tags[ct]=production" \ -H "Authorization: Bearer $TOKEN"
# Stats for CAs in specific enginecurl "https://lamassu.example.com/api/ca/v1/stats?ca_filter=engine_id[eq]=aws-kms-prod" \ -H "Authorization: Bearer $TOKEN"# Stats for recently issued certificatescurl "https://lamassu.example.com/api/ca/v1/stats?cert_filter=valid_from[af]=2026-01-01T00:00:00Z" \ -H "Authorization: Bearer $TOKEN"# Combined CA and certificate filteringcurl "https://lamassu.example.com/api/ca/v1/stats?ca_filter=metadata[jsonpath]$.environment%20==%20%22production%22&cert_filter=valid_from[af]=2025-12-01T00:00:00Z" \ -H "Authorization: Bearer $TOKEN"