openapi: 3.1.0 info: title: Dexwize MDM connector version: 1.0.0 description: > Mobile device inventory from Microsoft Intune and Jamf Pro (E28, ADR-0036). Credentials are write-only and stored as per-tenant ciphertext; responses never include them. Only device model, OS, compliance, ownership, protection flags, storage and app inventory are kept: no user names, e-mail addresses, phone numbers, serial numbers or locations. servers: - url: https://api.dexwize.example security: - bearer: [] paths: /v1/mdm/connections: get: summary: List MDM connections (DevicesRead) operationId: listMdmConnections responses: '200': description: Connections without credentials content: application/json: schema: { type: array, items: { $ref: '#/components/schemas/Connection' } } '403': description: "Missing DevicesRead, or the tenant is not entitled to mobile (error feature_not_entitled)" content: { application/json: { schema: { $ref: '#/components/schemas/EntitlementRefusal' } } } '503': { $ref: '#/components/responses/EntitlementsUnavailable' } /v1/mdm/connections/{system}: parameters: [{ $ref: '#/components/parameters/System' }] put: summary: Create or replace a connection (DevicesManage; audited) operationId: saveMdmConnection requestBody: required: true content: application/json: schema: { $ref: '#/components/schemas/ConnectionRequest' } responses: '200': description: Saved content: application/json: schema: { $ref: '#/components/schemas/Connection' } '400': { description: 'Invalid host, directory id or credentials' } '404': { description: Unknown system } '403': description: "Missing DevicesManage, or the tenant is not entitled to mobile (error feature_not_entitled)" content: { application/json: { schema: { $ref: '#/components/schemas/EntitlementRefusal' } } } '503': { $ref: '#/components/responses/EntitlementsUnavailable' } delete: summary: Delete a connection (DevicesManage; audited) operationId: deleteMdmConnection responses: '204': { description: Deleted } '404': { description: Not found } /v1/mdm/connections/{system}/sync: parameters: [{ $ref: '#/components/parameters/System' }] post: summary: Run a sync now (DevicesManage) operationId: syncMdmConnection responses: '200': description: Sync result content: application/json: schema: { $ref: '#/components/schemas/SyncState' } '400': { description: Connection disabled } '404': { description: Not found } '403': description: "Missing permission, or the tenant is not entitled to mobile (error feature_not_entitled)" content: { application/json: { schema: { $ref: '#/components/schemas/EntitlementRefusal' } } } '503': { $ref: '#/components/responses/EntitlementsUnavailable' } /v1/mdm/sync-status: get: summary: Last sync per connection (DevicesRead) operationId: mdmSyncStatus responses: '200': description: Sync states content: application/json: schema: { type: array, items: { $ref: '#/components/schemas/SyncState' } } '403': description: "Missing permission, or the tenant is not entitled to mobile (error feature_not_entitled)" content: { application/json: { schema: { $ref: '#/components/schemas/EntitlementRefusal' } } } '503': { $ref: '#/components/responses/EntitlementsUnavailable' } /v1/mdm/devices: get: summary: Latest mobile device inventory (DevicesRead) operationId: listMobileDevices parameters: - name: platform in: query required: false schema: { type: string, enum: [ios, android] } responses: '200': description: Devices content: application/json: schema: { type: array, items: { $ref: '#/components/schemas/MobileDevice' } } '400': { description: Unknown platform } '403': description: "Missing permission, or the tenant is not entitled to mobile (error feature_not_entitled)" content: { application/json: { schema: { $ref: '#/components/schemas/EntitlementRefusal' } } } '503': { $ref: '#/components/responses/EntitlementsUnavailable' } components: responses: EntitlementsUnavailable: description: The tenant's entitlements could not be confirmed and nothing usable was cached, so the paid feature is refused (fail closed, ADR-0053). Retry-After is set. content: { application/json: { schema: { $ref: '#/components/schemas/EntitlementRefusal' } } } securitySchemes: bearer: { type: http, scheme: bearer, bearerFormat: JWT } parameters: System: name: system in: path required: true schema: { type: string, enum: [intune, jamf] } schemas: EntitlementRefusal: description: Module licensing refusal (ADR-0053). type: object required: [error, feature] properties: error: { type: string, enum: [feature_not_entitled, entitlements_unavailable] } feature: { type: string, description: Catalogue feature code, for example campaigns } ConnectionRequest: type: object required: [clientId, clientSecret] properties: baseUrl: { type: [string, 'null'], description: 'Jamf Pro only: https host such as https://contoso.jamfcloud.com' } clientId: { type: string, maxLength: 200 } clientSecret: { type: string, maxLength: 2000, writeOnly: true } directoryId: { type: [string, 'null'], format: uuid, description: 'Intune only: the customer Entra tenant id' } enabled: { type: boolean, default: true } Connection: type: object required: [system, enabled, createdAt, createdBy] properties: system: { type: string, enum: [Intune, Jamf] } baseUrl: { type: [string, 'null'] } enabled: { type: boolean } createdAt: { type: string, format: date-time } createdBy: { type: string } SyncState: type: object required: [system, status, devices, apps] properties: system: { type: string, enum: [Intune, Jamf] } status: { type: string, enum: [Never, Running, Succeeded, Failed] } startedAt: { type: [string, 'null'], format: date-time } finishedAt: { type: [string, 'null'], format: date-time } devices: { type: integer } apps: { type: integer } error: { type: [string, 'null'] } MobileDevice: type: object required: [deviceId, source, platform, ownership, compliance, appCount] properties: deviceId: { type: string, format: uuid, description: Derived from tenant and MDM id; the MDM id itself is not stored } source: { type: string, enum: [intune, jamf] } platform: { type: string, enum: [ios, android] } osVersion: { type: [string, 'null'] } manufacturer: { type: [string, 'null'] } model: { type: [string, 'null'] } ownership: { type: string, enum: [corporate, personal, unknown] } compliance: { type: string, enum: [compliant, noncompliant, unknown] } encrypted: { type: [boolean, 'null'] } jailbroken: { type: [boolean, 'null'] } appCount: { type: integer }