---
updatedAt: 2026-08-29T02:45:53.000Z
agentTools:
  siteIndex: https://developer.jamf.com/llms.txt
  projectIndex: https://developer.jamf.com/platform-api/llms.txt
---

# Export enrollment history collection


Export enrollment history collection


**Required Permissions:** `user-initiated-enrollment:read`

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Jamf Pro",
    "termsOfService": "https://www.jamf.com/developer-resources/api-license-agreement/",
    "version": "11.33.0",
    "description": "Comprehensive Jamf Pro management API for enterprise device management, configuration, and automation.",
    "contact": {
      "name": "Jamf Developer",
      "url": "https://developer.jamf.com"
    }
  },
  "servers": [
    {
      "url": "https://{region}.api.jamfcloud.com/pro",
      "description": "Jamf Beta API Gateway - prod",
      "variables": {
        "region": {
          "default": "us",
          "enum": [
            "us",
            "eu",
            "apac"
          ],
          "description": "Geographic deployment region"
        }
      }
    }
  ],
  "x-readme": {
    "samples-languages": [
      "curl",
      "swift",
      "ruby",
      "python"
    ],
    "explorer-enabled": false
  },
  "security": [
    {
      "oauth2": []
    }
  ],
  "paths": {
    "/v2/enrollment/history/export": {
      "post": {
        "tags": [
          "enrollment"
        ],
        "summary": "Export enrollment history collection\n",
        "description": "Export enrollment history collection\n\n\n**Required Permissions:** `user-initiated-enrollment:read`",
        "parameters": [
          {
            "$ref": "#/components/parameters/X-Tenant-Id"
          },
          {
            "$ref": "#/components/parameters/X-Environment-Id"
          },
          {
            "$ref": "#/components/parameters/export-fields"
          },
          {
            "$ref": "#/components/parameters/export-labels"
          },
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/page-size"
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sorting criteria in the format: property:asc/desc. Default sort is id:desc. Multiple sort criteria are supported and must be separated with a comma. Example: sort=id:desc,name:asc ",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": [
                "id:asc"
              ]
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "Query in the RSQL format, allowing to filter history notes collection. Default filter is empty query - returning all results for the requested page. Fields allowed in the query: id, name. This param can be combined with paging and sorting. Example: name==\"*script*\"",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string",
              "default": ""
            }
          }
        ],
        "requestBody": {
          "description": "Optional. Override query parameters since they can make URI exceed 2,000 character limit.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExportParameters"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "Export successful",
            "content": {
              "text/csv,application/json": {
                "schema": {
                  "format": "binary",
                  "example": "Username,DATE,NOTES,Details\nadmin, 2022-02-04T11:56:26.343Z, Edited ,Re-enrollment Restricted true\n"
                }
              }
            }
          },
          "400": {
            "description": "Export fields specified incorrectly - non-existing column or duplicate in the list.\nSupported columns: id,name,categoryName,categoryId,priority.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "503": {
            "description": "Export currently unavailable, all export-related resources are in use. Try again later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "x-required-privileges": [
          "user-initiated-enrollment:read"
        ],
        "x-action": true,
        "security": [
          {
            "oauth2": [
              "user-initiated-enrollment:read"
            ]
          }
        ],
        "x-required-privileges-legacy": [
          "Read User-Initiated Enrollment"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ApiError": {
        "type": "object",
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status of the response",
            "example": 400
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiErrorCause"
            }
          }
        }
      },
      "ApiErrorCause": {
        "required": [
          "field"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error-specific code that can be used to identify localization string, etc.",
            "example": "8675309"
          },
          "field": {
            "type": "string",
            "description": "Name of the field that caused the error.",
            "example": "Name"
          },
          "description": {
            "type": "string",
            "description": "A general description of error for troubleshooting/debugging. Generally this text should not be displayed to a user; instead refer to errorCode and it's localized text",
            "example": "I've just picked up a fault in the AE35 unit. It's going to go 100% failure in 72 hours"
          },
          "id": {
            "type": "string",
            "description": "id of object with error. Optional.",
            "nullable": true,
            "example": "3"
          }
        }
      },
      "ExportField": {
        "type": "object",
        "properties": {
          "fieldName": {
            "type": "string",
            "description": "English name of the field to be exported.",
            "example": "id"
          },
          "fieldLabelOverride": {
            "type": "string",
            "description": "Name which should be used for the label in the response - can be in any language. When null the fieldName itself will be used as the label.",
            "nullable": true,
            "example": "identiteit"
          }
        },
        "description": "Field to be included in the export operation."
      },
      "ExportParameters": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "nullable": true,
            "example": 0,
            "default": 0
          },
          "pageSize": {
            "type": "integer",
            "nullable": true,
            "example": 100,
            "default": 100
          },
          "sort": {
            "type": "array",
            "description": "Sorting criteria in the format: [<property>[:asc/desc]. Default direction when not stated is ascending.",
            "nullable": true,
            "example": [
              "id:asc"
            ],
            "items": {
              "type": "string"
            },
            "default": [
              "id:desc"
            ]
          },
          "filter": {
            "type": "string",
            "nullable": true,
            "example": "id>=100"
          },
          "fields": {
            "type": "array",
            "description": "Used to change default order or ignore some of the fields. When null or empty array, all fields will be exported.",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ExportField"
            }
          }
        }
      }
    },
    "parameters": {
      "page": {
        "name": "page",
        "in": "query",
        "required": false,
        "style": "form",
        "explode": true,
        "schema": {
          "type": "integer",
          "default": 0
        }
      },
      "page-size": {
        "name": "page-size",
        "in": "query",
        "required": false,
        "style": "form",
        "explode": true,
        "schema": {
          "type": "integer",
          "default": 100
        }
      },
      "export-fields": {
        "name": "export-fields",
        "in": "query",
        "description": "Export fields parameter, used to change default order or ignore some of the response properties. Default is empty array, which means that all fields of the response entity will be serialized. Example: export-fields=id,username",
        "required": false,
        "style": "form",
        "explode": true,
        "schema": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "default": []
        }
      },
      "export-labels": {
        "name": "export-labels",
        "in": "query",
        "description": "Export labels parameter, used to customize fieldnames/columns in the exported file. Default is empty array, which means that response properties names will be used. Number of the provided labels must match the number of export-fields Example: export-labels=identifier,name with matching: export-fields=id,username",
        "required": false,
        "style": "form",
        "explode": true,
        "schema": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "default": []
        }
      },
      "X-Tenant-Id": {
        "name": "X-Tenant-Id",
        "in": "header",
        "required": false,
        "description": "The tenant UUID identifier. Send it to address tenant scope. This API is also published at environment scope — send that scope's header instead. Send exactly one scope header per request.",
        "schema": {
          "type": "string",
          "format": "uuid",
          "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
          "example": "e77c1408-10c8-4007-b177-abc9157fbcaa"
        }
      },
      "X-Environment-Id": {
        "name": "X-Environment-Id",
        "in": "header",
        "required": false,
        "description": "The environment UUID identifier. Send it to address environment scope. This API is also published at tenant scope — send that scope's header instead. Send exactly one scope header per request.",
        "schema": {
          "type": "string",
          "format": "uuid",
          "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
          "example": "e77c1408-10c8-4007-b177-abc9157fbcaa"
        }
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "description": "Obtain an access token by calling the API Gateway's token endpoint using the OAuth2 client-credentials flow.",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://{region}.api.jamfcloud.com/auth/token",
            "scopes": {
              "access-management:read": "",
              "access-management:update": "",
              "account-groups:read": "",
              "accounts:create": "",
              "accounts:delete": "",
              "accounts:read": "",
              "accounts:update": "",
              "activation-code:read": "",
              "activation-code:update": "",
              "ad-cs-settings:create": "",
              "ad-cs-settings:delete": "",
              "ad-cs-settings:read": "",
              "ad-cs-settings:update": "",
              "advanced-device-searches:create": "",
              "advanced-device-searches:delete": "",
              "advanced-device-searches:read": "",
              "advanced-device-searches:update": "",
              "advanced-user-searches:create": "",
              "advanced-user-searches:delete": "",
              "advanced-user-searches:read": "",
              "advanced-user-searches:update": "",
              "apache-tomcat-settings:update": "",
              "app-request:read": "",
              "app-request:update": "",
              "apple-configurator-enrollment:read": "",
              "apple-configurator-enrollment:update": "",
              "applications:create": "",
              "applications:delete": "",
              "applications:read": "",
              "applications:update": "",
              "buildings:create": "",
              "buildings:delete": "",
              "buildings:read": "",
              "buildings:update": "",
              "cache:read": "",
              "cache:update": "",
              "categories:create": "",
              "categories:delete": "",
              "categories:read": "",
              "categories:update": "",
              "change-password:execute": "",
              "cloud-distribution-point:read": "",
              "cloud-distribution-point:update": "",
              "cloud-services-settings:read": "",
              "cloud-services-settings:update": "",
              "computer-check-in:read": "",
              "computer-check-in:update": "",
              "computer-device-lock-pin:read": "",
              "computer-inventory-collection-settings:read": "",
              "computer-inventory-collection-settings:update": "",
              "conditional-access:read": "",
              "custom-paths:create": "",
              "custom-paths:delete": "",
              "declarations:read": "",
              "departments:create": "",
              "departments:delete": "",
              "departments:read": "",
              "departments:update": "",
              "destructive-device-actions:execute": "",
              "device-actions:execute": "",
              "device-actions:read": "",
              "device-compliance-information:read": "",
              "device-enrollment-program-instances:create": "",
              "device-enrollment-program-instances:delete": "",
              "device-enrollment-program-instances:read": "",
              "device-enrollment-program-instances:update": "",
              "device-groups:create": "",
              "device-groups:delete": "",
              "device-groups:read": "",
              "device-groups:update": "",
              "devices:create": "",
              "devices:read": "",
              "devices:update": "",
              "digicert-settings:create": "",
              "digicert-settings:delete": "",
              "digicert-settings:read": "",
              "digicert-settings:update": "",
              "disk-encryption-recovery-key:read": "",
              "dismiss-notifications:execute": "",
              "distribution-points:create": "",
              "distribution-points:delete": "",
              "distribution-points:read": "",
              "distribution-points:update": "",
              "dock-items:create": "",
              "dock-items:delete": "",
              "dock-items:read": "",
              "dock-items:update": "",
              "ebooks:read": "",
              "enrollment-customization:create": "",
              "enrollment-customization:delete": "",
              "enrollment-customization:read": "",
              "enrollment-customization:update": "",
              "enrollment-profiles:read": "",
              "extension-attributes:create": "",
              "extension-attributes:delete": "",
              "extension-attributes:read": "",
              "extension-attributes:update": "",
              "gsx-connection:read": "",
              "gsx-connection:update": "",
              "impact-alert-notification-settings:read": "",
              "impact-alert-notification-settings:update": "",
              "inventory-preload-records:create": "",
              "inventory-preload-records:delete": "",
              "inventory-preload-records:read": "",
              "inventory-preload-records:update": "",
              "jamf-cloud-distribution-service-files:create": "",
              "jamf-cloud-distribution-service-files:delete": "",
              "jamf-cloud-distribution-service-files:read": "",
              "jamf-connect-deployments:deploy": "",
              "jamf-connect-deployments:read": "",
              "jamf-connect-deployments:update": "",
              "jamf-packages-action:read": "",
              "jamf-protect-deployments:deploy": "",
              "jamf-protect-deployments:read": "",
              "jamf-protect-deployments:update": "",
              "jss-information:read": "",
              "jss-url:read": "",
              "jss-url:update": "",
              "ldap-servers:create": "",
              "ldap-servers:delete": "",
              "ldap-servers:read": "",
              "ldap-servers:update": "",
              "local-admin-passwords:execute": "",
              "local-admin-passwords:read": "",
              "local-admin-passwords:update": "",
              "login-disclaimer:update": "",
              "m2m:read": "",
              "managed-software-updates:create": "",
              "managed-software-updates:read": "",
              "managed-software-updates:update": "",
              "mdm-profile-renewal-settings:read": "",
              "mdm-profile-renewal-settings:update": "",
              "onboarding:read": "",
              "onboarding:update": "",
              "packages:create": "",
              "packages:delete": "",
              "packages:read": "",
              "packages:update": "",
              "parent-app:read": "",
              "parent-app:update": "",
              "patch-management-software-titles:create": "",
              "patch-management-software-titles:delete": "",
              "patch-management-software-titles:read": "",
              "patch-management-software-titles:update": "",
              "patch-policies:read": "",
              "patch-policies:update": "",
              "pki:read": "",
              "pki:update": "",
              "policies:read": "",
              "policies:update": "",
              "prestage-enrollments:create": "",
              "prestage-enrollments:delete": "",
              "prestage-enrollments:read": "",
              "prestage-enrollments:update": "",
              "push-certificates:read": "",
              "push-certificates:update": "",
              "re-enrollment:read": "",
              "re-enrollment:update": "",
              "recovery-lock:execute": "",
              "recovery-lock:read": "",
              "remote-administration:create": "",
              "remote-administration:delete": "",
              "remote-administration:read": "",
              "remote-administration:update": "",
              "remote-assist:read": "",
              "retention-policy:read": "",
              "retention-policy:update": "",
              "return-to-service:delete": "",
              "return-to-service:read": "",
              "return-to-service:update": "",
              "scripts:create": "",
              "scripts:delete": "",
              "scripts:read": "",
              "scripts:update": "",
              "self-service:create": "",
              "self-service:delete": "",
              "self-service:read": "",
              "self-service:update": "",
              "sites:read": "",
              "smtp-server:read": "",
              "smtp-server:update": "",
              "sso-settings:read": "",
              "sso-settings:update": "",
              "teacher-app:read": "",
              "teacher-app:update": "",
              "user-groups:read": "",
              "user-groups:update": "",
              "user-initiated-enrollment:read": "",
              "user-initiated-enrollment:update": "",
              "user-sessions:read": "",
              "users:create": "",
              "users:delete": "",
              "users:read": "",
              "users:update": "",
              "volume-purchasing-locations:create": "",
              "volume-purchasing-locations:delete": "",
              "volume-purchasing-locations:read": "",
              "volume-purchasing-locations:update": ""
            }
          }
        }
      }
    }
  },
  "x-scope-types": [
    "tenant",
    "environment"
  ]
}
```