---
title: Activation Lock Bypass Code
framework: devicemanagement
role: symbol
role_heading: Web Service Endpoint
path: devicemanagement/activation-lock-bypass-code-command
---

# Activation Lock Bypass Code

Get the code to bypass Activation Lock on a device.

## URL

PUT https://yourmdmhost.example.com/mdm

## Response Codes

200 OK: The response object the system returns for the Activation Lock Bypass Code Command.

## Mentioned in

Creating and using bypass codes

## Discussion

Discussion This command allows organizations to retrieve the device’s bypass code. Organizations can use the bypass code to remove the Activation Lock from supervised devices prior to device activation without knowing the user’s personal Apple Account and password. Supervised devices generate a device-specific Activation Lock bypass code. The activation server verifies this code to bypass Activation Lock on the device. For more information, see Creating and using bypass codes. A device creates a new bypass code when: Setting up the device the first time. Erasing and not restoring the device from a backup. Erasing and restoring the device from a backup from a different device. Command availability  |   |   |   |   |   |  Example request and response

## HTTP Body

The request object the server returns for the Activation Lock Bypass Code Command.

## Topics

### Commands and responses

- [ActivationLockBypassCodeCommand](devicemanagement/activationlockbypasscodecommand.md)
- [ActivationLockBypassCodeResponse](devicemanagement/activationlockbypasscoderesponse.md)

## See Also

### Security

- [Security Info](devicemanagement/security-info-command.md)
- [Certificate List](devicemanagement/certificate-list-command.md)
- [Clear Activation Lock Bypass Code](devicemanagement/clear-activation-lock-bypass-code-command.md)
- [Rotate FileVault Key](devicemanagement/rotate-filevault-key-command.md)
