---
title: "Get MDM service configuration"
method: GET
path: "/v2/mdmserviceconfig"
tags: ["tenant_MDM Service Config"]
---

# Get MDM service configuration

`GET /v2/mdmserviceconfig`

Returns Esper's MDM service configuration for Apple device discovery.

This is an unauthenticated discovery endpoint implemented per Apple's MDMServiceConfig specification; it returns the URL a device uses to begin Automated Device Enrollment (ADE).

**About MDM Service Config**

Apple devices use this well-known, unauthenticated endpoint during Automated Device Enrollment to discover which MDM server (Esper, in this case) to enroll with, per Apple's published device management service spec. Because it's a discovery step that happens before a device has any credentials, it intentionally requires no authentication.

**Common Use Cases**

- Supporting Apple's Automated Device Enrollment (ADE) flow so devices can discover Esper's MDM enrollment URL
- Verifying Esper's MDM discovery response matches Apple's expected MDMServiceConfig format during ADE setup or troubleshooting
Unauthenticated discovery endpoint per Apple's [MDMServiceConfig](https://developer.apple.com/documentation/devicemanagement/providing-information-about-your-device-management-service) spec.
Returns the URL a device uses to begin Automated Device Enrollment.

## Response `200`

MDM service configuration

- object
  - `dep_enrollment_url` string
  - `dep_anchor_certs_url` string

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.dev/esper/apis/esper-api-reference.md) · [All operations](https://skmtc.dev/esper/apis/esper-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/esper/esper-api-reference/revisions/6b55f43485ae/schema)
