Favicon

You are here: Home > API Reference > Mdm Agent Trace > Retrieve MDM agent traces

GET /organizations/:organizationId/mdm/agent-trace/

Returns a paginated list of MDM agent traces

GET
/v1/organizations/:organizationId/mdm/agent-trace/
Copy to clipboard

Retrieve MDM agent traces

Returns a paginated list of MDM agent traces

Request

Add parameter in header authorization
Example: Authorization: Bearer <token>
organizationId string
required
Match pattern: ^[a-fA-F0-9]{24}$
page integer
optional
Sequential page index for navigating large datasets, enabling systematic access to specific record subsets within the total collection.
limit integer
optional
Maximum number of records returned per request to control data density, optimize interface performance, and manage payload size.
sort string
optional
Ordering criteria using a field-to-direction mapping to organize results based on specific attributes like creation date, name, or status.
Match pattern: ^[\w.]*((:asc)|(:desc))?$
deviceId string
optional
Match pattern: ^[a-fA-F0-9]{24}$
deviceType string
optional
emmDeviceadmDevicewinDevice
resourceId string
optional
Match pattern: ^[a-fA-F0-9]{24}$
resourceType string
optional
scriptsmartAttribute
eventType string
optional
error
eventContent string
optional
≤ 1000 characters

Responses

200 Response application/json
status boolean required
data object required
items array [object] required
id string required
Match pattern: ^[a-fA-F0-9]{24}$
organizationId string required
Match pattern: ^[a-fA-F0-9]{24}$
fingerprint string required
≤ 1000 characters
device object required
id string required
Match pattern: ^[a-fA-F0-9]{24}$
type string required
emmDevice admDevice winDevice
resource object required
id string required
Match pattern: ^[a-fA-F0-9]{24}$
type string required
script smartAttribute
event object required
type string required
error
content string required
≤ 1000 characters
createdAt string required
updatedAt string required
version number required
totalDocs integer required
≥ -9007199254740991 · ≤ 9007199254740991
limit integer required
≥ -9007199254740991 · ≤ 9007199254740991
hasPrevPage boolean required
hasNextPage boolean required
page integer required
≥ -9007199254740991 · ≤ 9007199254740991
totalPages integer required
≥ -9007199254740991 · ≤ 9007199254740991
prevPage integer required
≥ -9007199254740991 · ≤ 9007199254740991
nextPage integer required
≥ -9007199254740991 · ≤ 9007199254740991
{
    "status": true,
    "data": {
        "items": [
            {
                "id": "string",
                "organizationId": "string",
                "fingerprint": "string",
                "device": {
                    "id": "string",
                    "type": "emmDevice"
                },
                "resource": {
                    "id": "string",
                    "type": "script"
                },
                "event": {
                    "type": "error",
                    "content": "string"
                },
                "createdAt": "string",
                "updatedAt": "string",
                "version": 0
            }
        ],
        "totalDocs": 0,
        "limit": 0,
        "hasPrevPage": true,
        "hasNextPage": true,
        "page": 0,
        "totalPages": 0,
        "prevPage": 0,
        "nextPage": 0
    }
}
400 Response application/json
status boolean optional
false
error object optional
code number optional
6002
message string optional
Body Validation Error
{
    "status": false,
    "error": {
        "code": 6002,
        "message": "Body Validation Error"
    }
}
401 Response application/json
status boolean optional
false
error object optional
code number optional
4004
message string optional
Invalid Token
{
    "status": false,
    "error": {
        "code": 4002,
        "message": "No auth token"
    }
}