Favicon

You are here: Home > API Reference > Windows > Winenrollmenttemplates > List Windows enrollment templates

List Windows enrollment templates

Required Permission: mdm.windows.enrollmentTemplate.list

Retrieve paginated list of Windows enrollment templates configured for your organization, with optional filtering by template name for management.

GET
https://api.applivery.io/v1/organizations/{organizationId}/mdm/windows/enterprise/enrollment-templates
curl -X GET "https://api.applivery.io/v1/organizations/{organizationId}/mdm/windows/enterprise/enrollment-templates" \
  -H "Authorization: Bearer <YOUR_API_KEY>"
const response = await fetch("https://api.applivery.io/v1/organizations/{organizationId}/mdm/windows/enterprise/enrollment-templates", {
  method: "GET",
  headers: {
    Authorization: "Bearer <YOUR_API_KEY>",
  },
});

const data = await response.json();
import requests

response = requests.get(
    "https://api.applivery.io/v1/organizations/{organizationId}/mdm/windows/enterprise/enrollment-templates",
    headers={"Authorization": "Bearer <YOUR_API_KEY>"},
)

data = response.json()

Request

Send your API key in the request header authorization
Example: Authorization: Bearer <token>

organizationId string
required
Match pattern: ^(([a-fA-F0-9]{24})|([a-zA-Z0-9\\-]{3,}))$

page integer
optional
Page number for paginated results, starting from 1.
limit integer
optional
Maximum number of enrollment templates to return per page.
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))?$
name string
optional
Filter enrollment templates by partial or exact name match for search functionality.
≤ 128 characters
segmentId integer
optional
Segment identifier for scoping smart enrollment into an specific segment
expandTo string
optional
Param to include ancestor or child related entities
ancestorschildren

Responses

200 Response application/json
status boolean optional
data object optional
items array [object] optional
id string optional
Unique identifier for the Windows enrollment template.
Match pattern: ^[a-fA-F0-9]{24}$
name string optional
Display name of the enrollment template used in management interfaces.
≤ 128 characters
description string optional
Optional explanatory text describing the template purpose and target device types.
≤ 256 characters
rules array [object] optional
Auto-enrollment rules array defining device classification, tagging, and policy assignment logic based on enrollment context.
auxiliaryFields array [object] optional
Custom data collection fields displayed during enrollment to capture additional device or user metadata for rule evaluation.
loginProviderTypes array [string] optional
Authentication provider types enabled for enrollment, determining which identity systems users can authenticate through.
allowAutoContinue boolean optional
Flag enabling automatic progression through enrollment steps when authentication succeeds, reducing manual interaction.
winEnrollmentTokenId string optional
Reference to the associated enrollment token entity managing device provisioning credentials.
Match pattern: ^[a-fA-F0-9]{24}$
winEnrollmentToken object optional
Complete enrollment token object containing provisioning server URL and authentication credentials.
entraId object optional
Microsoft Entra ID integration configuration for Azure AD-based device registration and management.
devicesCount integer optional
Total number of devices currently enrolled using this template across all organizations.
≥ 0
segmentId integer optional
Segment identifier for scoping smart enrollment into an specific segment
≥ 0
updatedAt string optional
Timestamp of the most recent template modification in ISO-8601 format.
Format: date-time
createdAt string optional
Timestamp when the enrollment template was initially created in ISO-8601 format.
Format: date-time
totalDocs integer optional
limit integer optional
hasPrevPage boolean optional
hasNextPage boolean optional
page integer optional
totalPages integer optional
prevPage integer optional
nextPage integer optional
lean boolean optional
{
    "status": true,
    "data": {
        "items": [
            {
                "id": "698e06f56544c9857506df0c",
                "name": "Corporate Device Enrollment",
                "description": "Standard enrollment workflow for corporate Windows devices with Entra ID integration",
                "rules": [
                    {
                        "name": "string",
                        "displayNamePattern": "string",
                        "tags": [
                            "string"
                        ],
                        "conditions": [
                            {
                                "tags": [
                                    [
                                        "string"
                                    ]
                                ],
                                "auxiliaryFields": [
                                    [
                                        "string"
                                    ]
                                ],
                                "patterns": [
                                    "string"
                                ],
                                "identifiers": [
                                    "string"
                                ]
                            }
                        ],
                        "winPolicyAssignments": [
                            {
                                "winPolicyId": "string",
                                "priority": 0
                            }
                        ],
                        "segmentId": 0
                    }
                ],
                "auxiliaryFields": [
                    {
                        "type": "select",
                        "key": "string",
                        "title": "string",
                        "description": "string",
                        "options": [
                            "string"
                        ]
                    }
                ],
                "loginProviderTypes": [
                    "ldap",
                    "saml",
                    "google"
                ],
                "allowAutoContinue": true,
                "winEnrollmentTokenId": "698e06f56544c9857506df0c",
                "winEnrollmentToken": {
                    "id": "698e06f56544c9857506df0c",
                    "token": "enroll_abc123def456",
                    "serverUrl": "https://mdm.company.com/enroll"
                },
                "entraId": {
                    "mobilityApp": {
                        "tenantId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                        "clientId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
                        "clientSecret": "ABC~123def456GHI789jkl012MNO"
                    }
                },
                "devicesCount": 247,
                "segmentId": "1",
                "updatedAt": "2026-02-10T12: 00:00Z",
                "createdAt": "2026-01-15T09: 30:00Z"
            }
        ],
        "totalDocs": 0,
        "limit": 0,
        "hasPrevPage": true,
        "hasNextPage": true,
        "page": 0,
        "totalPages": 0,
        "prevPage": 0,
        "nextPage": 0,
        "lean": true
    }
}
401 Response application/json
status boolean optional
false
error object optional
code number optional
4001
message string optional
Unauthorized
{
    "status": false,
    "error": {
        "code": 4002,
        "message": "No auth token"
    }
}
404 Response application/json
status boolean optional
false
error object optional
code number optional
3001
message string optional
Entity not found
{
    "status": false,
    "error": {
        "code": 3001,
        "message": "Entity not found"
    }
}