Litmus Edge Manager 3.0.x - Edge Lifecycle: Settings

Settings - Project Details

GET {{LEM_URL}}/api/v1/project/{{project_id}}

Settings -- Project Details

Returns the full project record (same shape as Companies > Projects Within Company for one project). Surfaces properties, topics, allocated slots, action templates, and triggers.

Endpoint

GET {{LEM_URL}}/api/v1/project/{{project_id}}

Authentication

API key in a request header (case sensitive). The value is the LEM admin API token.

URL prefix Auth header
{{LEM_URL}}/api/v1/... (main fleet API) X-AuthToken: <token>
{{LEM_adminURL}}/admin/v1/... (admin console, port 8446) X-AuthToken: <token>
{{LEM_URL}}/mpcs/... (Marketplace Catalog) Authorization: <token> (3.0.x also accepts X-AuthToken)
## Errors
HTTP status When it happens
400 Bad Request Missing or malformed query/body parameter.
401 Unauthorized Missing or invalid credentials.
403 Forbidden Token lacks permission for this operation.
404 Not Found Target entity does not exist.
5xx Service is unreachable, restarting, or internally errored. Inspect device logs under System > Support.

TLS note: edge devices use a self-signed certificate by default. Either install the device CA in your client trust store or disable certificate verification when calling this endpoint directly.

Response

Status: 200 OK

{
    "id": "462j1mq70mph31wa100t1yuxa",
    "companyName": "solutions",
    "name": "parth",
    "description": "",
    "teams": {},
    "properties": {
        "KEEP_DELETED_INTERVAL": "24",
        "STORE_OMA_DATA": "false",
        "DATAENRICHER_INTEGRATION": "off",
        "STORE_RAW_DATA": "false"
    },
    "dataTtl": 30,
    "topics": [],
    "numberOfAllocatedSlots": 0,
    "keys": [],
    "remoteNetwork": null,
    "deleted": false,
    "actionTemplates": {},
    "triggers": {
        "6u98gdlpwxuypstkb7826beb9": {
            "id": "6u98gdlpwxuypstkb7826beb9",
            "name": "Monitor alert failures",
            "description": null,
            "simpleRules": null,
            "eventRules": null,
            "rawDataRules": null,
            "metricRules": null,
            "advancedRules": null,
            "deduplicate": true,
            "severity": 2,
            "subject": "Monitor alert failures",
            "message": "Monitor alert failures",
            "tags": null,
            "deviceId": null,
            "actions": null,
            "active": true,
            "showOnDashboard": true,
            "scopeType": "SYSTEM",
            "sourceType": "DATA",
            "updatedOn": 1691100533111,
            "notifyContinuously": false,
            "notifyGracePeriod": 0,
            "alertDelay": 0
        }
    },
    "billingPlanCode": null,
    "createdAt": null,
    "grafanaOrgId": 5,
    "subnetId": 1,
    "latestBackupsToKeep": 3,
    "pubSubKeyRotationIntervalSec": 0,
    "pubSubKeyRotationDaysOfWeek": [],
    "pubSubKeyRotationTime": null,
    "pubSubKeyRotationWindowSec": 0
}

Settings - Project Timezone

GET {{LEM_URL}}/api/v1/project/settings/timezone?projectId={{project_id}}

Settings -- Project Timezone

Returns the project's configured timezone (IANA name).

Endpoint

GET {{LEM_URL}}/api/v1/project/settings/timezone?projectId={{project_id}}

Authentication

API key in a request header (case sensitive). The value is the LEM admin API token.

URL prefix Auth header
{{LEM_URL}}/api/v1/... (main fleet API) X-AuthToken: <token>
{{LEM_adminURL}}/admin/v1/... (admin console, port 8446) X-AuthToken: <token>
{{LEM_URL}}/mpcs/... (Marketplace Catalog) Authorization: <token> (3.0.x also accepts X-AuthToken)
## Response
{ "timezone": "UTC" }

Errors

HTTP status When it happens
400 Bad Request Missing or malformed query/body parameter.
401 Unauthorized Missing or invalid credentials.
403 Forbidden Token lacks permission for this operation.
404 Not Found Target entity does not exist.
5xx Service is unreachable, restarting, or internally errored. Inspect device logs under System > Support.

TLS note: edge devices use a self-signed certificate by default. Either install the device CA in your client trust store or disable certificate verification when calling this endpoint directly.

Response

Status: 200 OK

{
    "timezone": "UTC"
}

Settings - Timezone List

GET {{LEM_URL}}/api/v1/project/settings/timezones

Settings - Timezone List

Returns every timezone name accepted for the project timezone setting.

Endpoint

GET {{LEM_URL}}/api/v1/project/settings/timezones

Authentication

API key in a request header (case sensitive). The value is the LEM admin API token.

URL prefix Auth header
{{LEM_URL}}/api/v1/... (main fleet API) X-AuthToken: <token>
{{LEM_adminURL}}/admin/v1/... (admin console, port 8446) X-AuthToken: <token>
{{LEM_URL}}/mpcs/... (Marketplace Catalog) Authorization: <token> (3.0.x also accepts X-AuthToken)

Response

200 OK -- application/json. Array of IANA timezone names (631 on 2.31). The example shows the first 10.

Errors

HTTP status When it happens
401 Unauthorized Missing or invalid X-AuthToken.

TLS note: edge devices use a self-signed certificate by default. Either install the device CA in your client trust store or disable certificate verification when calling this endpoint directly.

Response

Status: 200 OK

[
    "Africa/Abidjan",
    "Africa/Accra",
    "Africa/Addis_Ababa",
    "Africa/Algiers",
    "Africa/Asmara",
    "Africa/Asmera",
    "Africa/Bamako",
    "Africa/Bangui",
    "Africa/Banjul",
    "Africa/Bissau"
]

Settings - Edge Data Device Storage

GET {{LEM_URL}}/api/v1/project/store-edge-data/{{project_id}}

Settings -- Edge Data Device Storage

Returns whether the project stores OMA data and raw data from edge devices.

Endpoint

GET {{LEM_URL}}/api/v1/project/store-edge-data/{{project_id}}

Authentication

API key in a request header (case sensitive). The value is the LEM admin API token.

URL prefix Auth header
{{LEM_URL}}/api/v1/... (main fleet API) X-AuthToken: <token>
{{LEM_adminURL}}/admin/v1/... (admin console, port 8446) X-AuthToken: <token>
{{LEM_URL}}/mpcs/... (Marketplace Catalog) Authorization: <token> (3.0.x also accepts X-AuthToken)
## Response
{ "storeOmaData": false, "storeRawData": false }

Errors

HTTP status When it happens
400 Bad Request Missing or malformed query/body parameter.
401 Unauthorized Missing or invalid credentials.
403 Forbidden Token lacks permission for this operation.
404 Not Found Target entity does not exist.
5xx Service is unreachable, restarting, or internally errored. Inspect device logs under System > Support.

TLS note: edge devices use a self-signed certificate by default. Either install the device CA in your client trust store or disable certificate verification when calling this endpoint directly.

Response

Status: 200 OK

{
    "storeOmaData": false,
    "storeRawData": false
}

Settings - Edge Device Backups

GET {{LEM_URL}}/api/v1/project/retention/{{project_id}}

Settings -- Edge Device Backups

Returns the backup retention policy: how many most-recent backups to keep per device.

Endpoint

GET {{LEM_URL}}/api/v1/project/retention/{{project_id}}

Authentication

API key in a request header (case sensitive). The value is the LEM admin API token.

URL prefix Auth header
{{LEM_URL}}/api/v1/... (main fleet API) X-AuthToken: <token>
{{LEM_adminURL}}/admin/v1/... (admin console, port 8446) X-AuthToken: <token>
{{LEM_URL}}/mpcs/... (Marketplace Catalog) Authorization: <token> (3.0.x also accepts X-AuthToken)
## Response
{ "latestBackupsToKeep": 3 }

Errors

HTTP status When it happens
400 Bad Request Missing or malformed query/body parameter.
401 Unauthorized Missing or invalid credentials.
403 Forbidden Token lacks permission for this operation.
404 Not Found Target entity does not exist.
5xx Service is unreachable, restarting, or internally errored. Inspect device logs under System > Support.

TLS note: edge devices use a self-signed certificate by default. Either install the device CA in your client trust store or disable certificate verification when calling this endpoint directly.

Response

Status: 200 OK

{
    "latestBackupsToKeep": 3
}

Settings - Edge Device Metrics Sync Interval

GET {{LEM_URL}}/api/v1/device/edge-polling-settings/{{edge_device_id}}

Settings -- Edge Device Metrics Sync Interval

Returns one device's metrics polling configuration: enabled flag, polling interval (seconds), and whether to inherit from the project's settings.

Endpoint

GET {{LEM_URL}}/api/v1/device/edge-polling-settings/{{edge_device_id}}

Authentication

API key in a request header (case sensitive). The value is the LEM admin API token.

URL prefix Auth header
{{LEM_URL}}/api/v1/... (main fleet API) X-AuthToken: <token>
{{LEM_adminURL}}/admin/v1/... (admin console, port 8446) X-AuthToken: <token>
{{LEM_URL}}/mpcs/... (Marketplace Catalog) Authorization: <token> (3.0.x also accepts X-AuthToken)
## Response
{
  "enabled": true,
  "intervalSec": 30,
  "useProjectSettings": true
}

Errors

HTTP status When it happens
400 Bad Request Missing or malformed query/body parameter.
401 Unauthorized Missing or invalid credentials.
403 Forbidden Token lacks permission for this operation.
404 Not Found Target entity does not exist.
5xx Service is unreachable, restarting, or internally errored. Inspect device logs under System > Support.

TLS note: edge devices use a self-signed certificate by default. Either install the device CA in your client trust store or disable certificate verification when calling this endpoint directly.

Response

Status: 200 OK

{
    "enabled": true,
    "intervalSec": 30,
    "useProjectSettings": true
}

Settings - Project Edge Polling

GET {{LEM_URL}}/api/v1/project/edge-polling-settings/{{project_id}}

Settings - Project Edge Polling

Returns the project's edge polling settings: how often LEM polls the project's edge devices for metrics.

Endpoint

GET {{LEM_URL}}/api/v1/project/edge-polling-settings/{{project_id}}

Authentication

API key in a request header (case sensitive). The value is the LEM admin API token.

URL prefix Auth header
{{LEM_URL}}/api/v1/... (main fleet API) X-AuthToken: <token>
{{LEM_adminURL}}/admin/v1/... (admin console, port 8446) X-AuthToken: <token>
{{LEM_URL}}/mpcs/... (Marketplace Catalog) Authorization: <token> (3.0.x also accepts X-AuthToken)

Parameters

Parameter In Type Required Description
project_id path string Yes Project ID.

Response

200 OK -- application/json.

Field Type Description
enabled boolean Polling on or off.
intervalSec integer Polling interval, seconds.
useInstanceSettings boolean true = the project follows the instance default instead of its own values.

Errors

HTTP status When it happens
401 Unauthorized Missing or invalid X-AuthToken.

TLS note: edge devices use a self-signed certificate by default. Either install the device CA in your client trust store or disable certificate verification when calling this endpoint directly.

Response

Status: 200 OK

{
    "enabled": true,
    "intervalSec": 30,
    "useInstanceSettings": false
}

Settings - Instance Edge Polling

GET {{LEM_URL}}/api/v1/system/edge-polling-settings-instance

Settings - Instance Edge Polling

Returns the instance-wide default edge polling settings, the values a project uses when useInstanceSettings is true.

Endpoint

GET {{LEM_URL}}/api/v1/system/edge-polling-settings-instance

Authentication

API key in a request header (case sensitive). The value is the LEM admin API token.

URL prefix Auth header
{{LEM_URL}}/api/v1/... (main fleet API) X-AuthToken: <token>
{{LEM_adminURL}}/admin/v1/... (admin console, port 8446) X-AuthToken: <token>
{{LEM_URL}}/mpcs/... (Marketplace Catalog) Authorization: <token> (3.0.x also accepts X-AuthToken)

Response

200 OK -- application/json.

Field Type Description
enabled boolean Polling on or off.
intervalSec integer Polling interval, seconds.

Errors

HTTP status When it happens
401 Unauthorized Missing or invalid X-AuthToken.

TLS note: edge devices use a self-signed certificate by default. Either install the device CA in your client trust store or disable certificate verification when calling this endpoint directly.

Response

Status: 200 OK

{
    "enabled": true,
    "intervalSec": 30
}

Members

GET {{LEM_URL}}/api/v1/company?name={{company_name}}

Members

Same payload as Companies > Return Company Details. Used here to render the project Members section (because teams are company-scoped but project members are looked up via team membership).

Endpoint

GET {{LEM_URL}}/api/v1/company?name={{company_name}}

Authentication

API key in a request header (case sensitive). The value is the LEM admin API token.

URL prefix Auth header
{{LEM_URL}}/api/v1/... (main fleet API) X-AuthToken: <token>
{{LEM_adminURL}}/admin/v1/... (admin console, port 8446) X-AuthToken: <token>
{{LEM_URL}}/mpcs/... (Marketplace Catalog) Authorization: <token> (3.0.x also accepts X-AuthToken)
## Errors
HTTP status When it happens
400 Bad Request Missing or malformed query/body parameter.
401 Unauthorized Missing or invalid credentials.
403 Forbidden Token lacks permission for this operation.
404 Not Found Target entity does not exist.
5xx Service is unreachable, restarting, or internally errored. Inspect device logs under System > Support.

TLS note: edge devices use a self-signed certificate by default. Either install the device CA in your client trust store or disable certificate verification when calling this endpoint directly.

Response

Status: 200 OK

{
    "name": "solutions",
    "realName": "Solutions",
    "description": "",
    "teams": [
        {
            "name": "OWNER",
            "users": [
                {
                    "username": "demo",
                    "attrs": {
                        "status": "ONBOARD"
                    }
                },
                {
                    "username": "member2",
                    "attrs": {
                        "status": "ONBOARD"
                    }
                },
                {
                    "username": "member3",
                    "attrs": {
                        "status": "ONBOARD"
                    }
                },
                {
                    "username": "member4",
                    "attrs": {
                        "status": "ONBOARD"
                    }
                }
            ]
        }
    ],
    "quotas": null,
    "license": null,
    "deleted": false,
    "companyType": "USER"
}

Credentials - MQTT

GET {{LEM_URL}}/api/v1/project/credentials/mqtt?projectId={{project_id}}

Credentials -- MQTT

Returns the MQTT broker credentials for one project: TCP/SSL/HTTP/WS URLs plus the CA certificate. Use these to configure external clients (industrial devices, custom apps) to publish into LEM's bus.

Endpoint

GET {{LEM_URL}}/api/v1/project/credentials/mqtt?projectId={{project_id}}

Authentication

API key in a request header (case sensitive). The value is the LEM admin API token.

URL prefix Auth header
{{LEM_URL}}/api/v1/... (main fleet API) X-AuthToken: <token>
{{LEM_adminURL}}/admin/v1/... (admin console, port 8446) X-AuthToken: <token>
{{LEM_URL}}/mpcs/... (Marketplace Catalog) Authorization: <token> (3.0.x also accepts X-AuthToken)
## Response

200 OK -- application/json. Fields: tcpUrl, sslUrl, httpUrl, httpsUrl, wsUrl, wssUrl, caCertificate.

Errors

HTTP status When it happens
400 Bad Request Missing or malformed query/body parameter.
401 Unauthorized Missing or invalid credentials.
403 Forbidden Token lacks permission for this operation.
404 Not Found Target entity does not exist.
5xx Service is unreachable, restarting, or internally errored. Inspect device logs under System > Support.

TLS note: edge devices use a self-signed certificate by default. Either install the device CA in your client trust store or disable certificate verification when calling this endpoint directly.

Response

Status: 200 OK

{
    "tcpUrl": "tcp://10.17.3.103:1883",
    "sslUrl": "ssl://10.17.3.103:8883",
    "httpUrl": "http://10.17.3.103/mqtt/publish",
    "httpsUrl": "https://10.17.3.103/mqtt/publish",
    "wsUrl": "ws://10.17.3.103/mqtt",
    "wssUrl": "wss://10.17.3.103/mqtt",
    "caCertificate": "-----BEGIN CERTIFICATE-----\nMIIDSzCCAjOgAwIBAgIUWBhOM2+MjE3RTvyUJBXhciF+UQgwDQYJKoZIhvcNAQELBQAwLTErMCkGA1UEAxMiTGl0bXVzIEVkZ2UgTWFuYWdlciBDQSAyMzA3MjAyMjAyNzAeFw0yMzA3MjEyMDI2MzJaFw00MzA3MTYyMDI3MDJaMC0xKzApBgNVBAMTIkxpdG11cyBFZGdlIE1hbmFnZXIgQ0EgMjMwNzIwMjIwMjcwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzGo0BV+jkd2GVMC+pkEmOJzEgI4laAjfCXpKR8F2b5CVjwwf17/ordr3Ovc3mf4cBbRmwyw/EKYLeTTPTR/WYlX0P05Q+gCb8VWKwRFy3tn+l62RRt5ucHvGGS9m2ISjOqWWKNodkI7IQahUrHYIFcXEYAJPhzAkav+oj0T9gz88XrZiLidx6czvWo/hRidx/vI/0Fp1x4FiW6S0FTUKIpSZ0BRD/Es4Zfau6bql84j1hDVrbVnjSnjTfmyg7sIFkWrqashHITJmKOnC3SF424sejiopCYoVCSUaJzjRymbkACFruIK6TYIUXkKW+QntlC6Q0+HB5rVh+45onfOHpAgMBAAGjYzBhMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRFEAElhG/8N7UTMscJjL9YerjlrTAfBgNVHSMEGDAWgBRFEAElhG/8N7UTMscJjL9YerjlrTANBgkqhkiG9w0BAQsFAAOCAQEAk92foXaLi5l6RrSOwuwdk8yTnKn3Jdh4r2mSj8Pp1ywY8KsZqP/DbnZ9YaDAd3m56bEPWrgnIByRZQRjBLM6g3RJVZjzG/ZCDkGGHho5WcoJ8v8+ebnO4P2U83A883cwA6/0HhrSyb3mRMWaaUHMS5KMHlNphR/2G5RUcocXjMbzrH4bwZmoE/PlWyTEpquWI1kobOynbeJhVPngUCgddNr3sVAAywK1oTeCoLucmRI8SlnKSqSD10Chp6JVqSPL/E1uwBC1o5Doju2iYBYGayD8WQMZ8MR8zRO1/FORTT6Jp4FDlv4HDM8QUHChx2qjb0+sjjbMfxyDVorLjHegQA==\n-----END CERTIFICATE-----",
    "caValidBefore": 2320691222000,
    "caSerialNumber": "58184e336f8c8c4dd14efc942415e172217e5108",
    "caSigningAlgorithm": "SHA256withRSA",
    "caFingerprint": "711e9d8b36035730a7725418ffc1a770e9a9323d",
    "dataTopic": "loop/data/+/462j1mq70mph31wa100t1yuxa/+",
    "requestTopic": "loop/req/+/462j1mq70mph31wa100t1yuxa/+",
    "responseTopic": "loop/resp/+/462j1mq70mph31wa100t1yuxa/+",
    "eventsTopic": "loop/events/+/462j1mq70mph31wa100t1yuxa/+",
    "dataSchema": "{\n  \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n  \"type\": \"object\",\n  \"properties\": {\n    \"timestamp\": {\n      \"type\": \"integer\"\n    },\n    \"values\": {\n      \"type\": \"array\",\n      \"properties\": {\n        \"objectId\": {\n          \"type\": \"integer\"\n        },\n        \"instanceId\": {\n          \"type\": \"string\"\n        },\n        \"resourceId\": {\n          \"type\": \"integer\"\n        },\n        \"datatype\": {\n          \"type\": \"string\"\n        },\n        \"value\": {\n          \"type\": \"string\"\n        }\n      },\n      \"required\": [\n        \"objectId\",\n        \"instanceId\",\n        \"resourceId\",\n        \"datatype\",\n        \"value\"\n      ]\n    }\n  },\n  \"required\": [\n    \"values\"\n  ]\n}\n"
}

Credentials - List all MQTT accounts

GET {{LEM_URL}}/api/v1/project/mqtt/account/{{project_id}}

Credentials -- List all MQTT accounts

Returns the per-project MQTT accounts with their authorised topic patterns. Each topics[] entry has an access flag (1 = subscribe, 2 = publish, 3 = both) and the topic pattern with wildcards.

Endpoint

GET {{LEM_URL}}/api/v1/project/mqtt/account/{{project_id}}

Authentication

API key in a request header (case sensitive). The value is the LEM admin API token.

URL prefix Auth header
{{LEM_URL}}/api/v1/... (main fleet API) X-AuthToken: <token>
{{LEM_adminURL}}/admin/v1/... (admin console, port 8446) X-AuthToken: <token>
{{LEM_URL}}/mpcs/... (Marketplace Catalog) Authorization: <token> (3.0.x also accepts X-AuthToken)
## Errors
HTTP status When it happens
400 Bad Request Missing or malformed query/body parameter.
401 Unauthorized Missing or invalid credentials.
403 Forbidden Token lacks permission for this operation.
404 Not Found Target entity does not exist.
5xx Service is unreachable, restarting, or internally errored. Inspect device logs under System > Support.

TLS note: edge devices use a self-signed certificate by default. Either install the device CA in your client trust store or disable certificate verification when calling this endpoint directly.

Response

Status: 200 OK

[
    {
        "accountName": "solutions-parth-e08vup7sl4qrjxm6mo04n5dpp",
        "topics": [
            {
                "access": 1,
                "ipaddr": null,
                "topic": "+/req/+/462j1mq70mph31wa100t1yuxa/+"
            },
            {
                "access": 1,
                "ipaddr": null,
                "topic": "+/resp/+/462j1mq70mph31wa100t1yuxa/+"
            },
            {
                "access": 1,
                "ipaddr": null,
                "topic": "+/data/+/462j1mq70mph31wa100t1yuxa/+"
            },
            {
                "access": 1,
                "ipaddr": null,
                "topic": "+/events/+/462j1mq70mph31wa100t1yuxa/+"
            },
            {
                "access": 2,
                "ipaddr": null,
                "topic": "+/req/+/462j1mq70mph31wa100t1yuxa/+"
            },
            {
                "access": 2,
                "ipaddr": null,
                "topic": "+/resp/+/462j1mq70mph31wa100t1yuxa/+"
            }
        ]
    }
]

Credentials - Topics

GET {{LEM_URL}}/api/v1/project/credentials/topics?projectId={{project_id}}

Credentials -- Topics

Returns the project's authorised MQTT topic patterns (the same topics that appear in MQTT account grants, projected as a flat list).

Endpoint

GET {{LEM_URL}}/api/v1/project/credentials/topics?projectId={{project_id}}

Authentication

API key in a request header (case sensitive). The value is the LEM admin API token.

URL prefix Auth header
{{LEM_URL}}/api/v1/... (main fleet API) X-AuthToken: <token>
{{LEM_adminURL}}/admin/v1/... (admin console, port 8446) X-AuthToken: <token>
{{LEM_URL}}/mpcs/... (Marketplace Catalog) Authorization: <token> (3.0.x also accepts X-AuthToken)
## Errors
HTTP status When it happens
400 Bad Request Missing or malformed query/body parameter.
401 Unauthorized Missing or invalid credentials.
403 Forbidden Token lacks permission for this operation.
404 Not Found Target entity does not exist.
5xx Service is unreachable, restarting, or internally errored. Inspect device logs under System > Support.

TLS note: edge devices use a self-signed certificate by default. Either install the device CA in your client trust store or disable certificate verification when calling this endpoint directly.

Response

Status: 200 OK

[
    "loop/custom/+/462j1mq70mph31wa100t1yuxa",
    "loop/data/+/462j1mq70mph31wa100t1yuxa/+",
    "loop/req/+/462j1mq70mph31wa100t1yuxa/+",
    "loop/resp/+/462j1mq70mph31wa100t1yuxa/+"
]

Returns project level incident resolution settings

GET {{LEM_URL}}/api/v1/project/{{project_id}}/incident-settings

Returns project level incident resolution settings

Returns a project's incident-resolution settings (whether incidents auto-resolve, and whether the project inherits the instance-level settings).

Endpoint

GET {{LEM_URL}}/api/v1/project/{projectId}/incident-settings

Authentication

API key in a request header (case sensitive). The value is the LEM admin API token.

URL prefix Auth header
{{LEM_URL}}/api/v1/... (main fleet API) X-AuthToken: <token>
{{LEM_adminURL}}/admin/v1/... (admin console, port 8446) X-AuthToken: <token>
{{LEM_URL}}/mpcs/... (Marketplace Catalog) Authorization: <token> (3.0.x also accepts X-AuthToken)
## Parameters

| projectId | path | Required. Project scope. |

Response

ProjectIncidentResolutionSettings { autoResolve, useInstanceSettings }.

Errors

HTTP status When it happens
400 Bad Request Missing or malformed query/body parameter.
401 Unauthorized Missing or invalid credentials.
403 Forbidden Token lacks permission for this operation.
404 Not Found Target entity does not exist.
5xx Service is unreachable, restarting, or internally errored. Inspect device logs under System > Support.

TLS note: edge devices use a self-signed certificate by default. Either install the device CA in your client trust store or disable certificate verification when calling this endpoint directly.

Response

Status: 200 OK

{
  "autoResolve": true,
  "useInstanceSettings": false
}

Set project level incident resolution settings

POST {{LEM_URL}}/api/v1/project/{{project_id}}/incident-settings

Updated in 3.0. New optional request fields: activeIncidentTtlDays, closedIncidentTtlDays, incidentRetentionEnabled.

Set project level incident resolution settings

Updates a project's incident-resolution settings.

Endpoint

POST {{LEM_URL}}/api/v1/project/{projectId}/incident-settings

Authentication

API key in a request header (case sensitive). The value is the LEM admin API token.

URL prefix Auth header
{{LEM_URL}}/api/v1/... (main fleet API) X-AuthToken: <token>
{{LEM_adminURL}}/admin/v1/... (admin console, port 8446) X-AuthToken: <token>
{{LEM_URL}}/mpcs/... (Marketplace Catalog) Authorization: <token> (3.0.x also accepts X-AuthToken)
## Parameters

| projectId | path | Required. Project scope. |

Request body

ProjectIncidentResolutionSettings { autoResolve: bool, useInstanceSettings: bool }. Set useInstanceSettings=true to defer to the instance-wide defaults.

Response

ApiResponse ({ code, message }).

Errors

HTTP status When it happens
400 Bad Request Missing or malformed query/body parameter.
401 Unauthorized Missing or invalid credentials.
403 Forbidden Token lacks permission for this operation.
404 Not Found Target entity does not exist.
5xx Service is unreachable, restarting, or internally errored. Inspect device logs under System > Support.

TLS note: edge devices use a self-signed certificate by default. Either install the device CA in your client trust store or disable certificate verification when calling this endpoint directly.

Request Body

{
  "autoResolve": true,
  "useInstanceSettings": true,
  "activeIncidentTtlDays": 90,
  "closedIncidentTtlDays": 90,
  "incidentRetentionEnabled": false
}

Get Instance Incident Settings

GET {{LEM_URL}}/api/v1/system/incident-settings-instance

Get Instance Incident Settings

Returns the instance-wide incident-resolution settings that projects inherit when they defer to instance settings.

Endpoint

GET {{LEM_URL}}/api/v1/system/incident-settings-instance

Authentication

API key in a request header (case sensitive). The value is the LEM admin API token.

URL prefix Auth header
{{LEM_URL}}/api/v1/... (main fleet API) X-AuthToken: <token>
{{LEM_adminURL}}/admin/v1/... (admin console, port 8446) X-AuthToken: <token>
{{LEM_URL}}/mpcs/... (Marketplace Catalog) Authorization: <token> (3.0.x also accepts X-AuthToken)
## Response

IncidentSettings.

Errors

HTTP status When it happens
400 Bad Request Missing or malformed query/body parameter.
401 Unauthorized Missing or invalid credentials.
403 Forbidden Token lacks permission for this operation.
404 Not Found Target entity does not exist.
5xx Service is unreachable, restarting, or internally errored. Inspect device logs under System > Support.

TLS note: edge devices use a self-signed certificate by default. Either install the device CA in your client trust store or disable certificate verification when calling this endpoint directly.

Response

Status: 200 OK

{
  "autoResolve": true
}

Get Deployment Info

GET {{LEM_URL}}/api/v1/system/deployment-info

New in 2.35.

Get Deployment Info

Returns how this LEM instance is deployed.

3.0.x: use /api/v1/system/deployment-info. The /api/v1/admin/system/deployment-info path is refused by the web server with 401 Authorization Required.

Endpoint

GET {{LEM_URL}}/api/v1/admin/system/deployment-info

Authentication

API key in a request header (case sensitive). The value is the LEM admin API token.

URL prefix Auth header
{{LEM_URL}}/api/v1/... (main fleet API) X-AuthToken: <token>
{{LEM_adminURL}}/admin/v1/... (admin console, port 8446) X-AuthToken: <token>
{{LEM_URL}}/mpcs/... (Marketplace Catalog) Authorization: <token> (3.0.x also accepts X-AuthToken)
## Response

200 OK. type is VM, VM_APP or KUBERNETES; provider is GCP, AZURE, AWS or UNKNOWN.

{ "type": "VM", "provider": "UNKNOWN" }

On LEM 3.0.0-rc.2 this path answers an nginx 401 to an API token. The Admin Console serves the same data at GET {{LEM_adminURL}}/admin/v1/system/deployment-info (the example above comes from there).

Errors

HTTP status When it happens
400 Bad Request Missing or malformed query/body parameter.
401 Unauthorized Missing or invalid credentials.
403 Forbidden Token lacks permission for this operation.
404 Not Found Target entity does not exist.
5xx Service is unreachable, restarting, or internally errored. Inspect device logs under System > Support.

TLS note: edge devices use a self-signed certificate by default. Either install the device CA in your client trust store or disable certificate verification when calling this endpoint directly.

Response

Status: 200 OK

{
  "type": "VM",
  "provider": "UNKNOWN"
}

Settings - SSL Settings

GET {{LEM_URL}}/api/v1/domain/ssl

Settings - SSL Settings

Returns the LEM SSL settings through the main API. The admin console counterpart is Admin Console Settings > Domain/SSL > SSL Settings.

Endpoint

GET {{LEM_URL}}/api/v1/domain/ssl

Authentication

API key in a request header (case sensitive). The value is the LEM admin API token.

URL prefix Auth header
{{LEM_URL}}/api/v1/... (main fleet API) X-AuthToken: <token>
{{LEM_adminURL}}/admin/v1/... (admin console, port 8446) X-AuthToken: <token>
{{LEM_URL}}/mpcs/... (Marketplace Catalog) Authorization: <token> (3.0.x also accepts X-AuthToken)

Response

200 OK -- application/json. One entry per SSL mode (SELFSIGNED, USER, DIGICERT, LETSENCRYPT_WEBROOT, LETSENCRYPT_DNS_CF); value is true for the active one.

Errors

HTTP status When it happens
401 Unauthorized Missing or invalid X-AuthToken.
500 The SSL settings could not be read from the secret store; see message.

TLS note: edge devices use a self-signed certificate by default. Either install the device CA in your client trust store or disable certificate verification when calling this endpoint directly.

Response

Status: 200 OK

{
    "LETSENCRYPT_WEBROOT": {
        "name": "LETSENCRYPT_WEBROOT",
        "descr": "Let's Encrypt Web root challenge",
        "value": false
    },
    "DIGICERT": {
        "name": "DIGICERT",
        "descr": "DigiCert settings",
        "value": false
    },
    "USER": {
        "name": "USER",
        "descr": "User custom settings",
        "value": false
    },
    "SELFSIGNED": {
        "name": "SELFSIGNED",
        "descr": "Self-sighed",
        "value": true
    },
    "LETSENCRYPT_DNS_CF": {
        "name": "LETSENCRYPT_DNS_CF",
        "descr": "Let's Encrypt DNS challenge",
        "value": false
    }
}

View this page as Markdown