# Retrieve the full configuration details of a Passcode payload item To get Mac Passcode policy payload item ## Endpoint **GET** `/api/v1/mdm/profiles/{profile_id}/payloads/macpasscodepolicy/payloaditems/{payload_id}` ## Request ### Request URL `https://{server-hostname}:8383/api/v1/mdm/profiles/{profile_id}/payloads/macpasscodepolicy/payloaditems/{payload_id}` ### Scope `MDMDeviceMgmt.READ` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Accept** (`string`, Mandatory): `application/json` #### Path Parameters - **profile_id** (`string`, Mandatory): Unique identifier of the profile. Obtain from the [Create Profile](https://www.manageengine.com/products/desktop-central/help/api/onpremise/mdm-profiles-create-profile.html) or [Get Profiles](https://www.manageengine.com/products/desktop-central/help/api/onpremise/mdm-profiles-get-profile.html) response. - **payload_id** (`string`, Mandatory): Unique identifier of the payload item. Obtain from the [Get Payload Item IDs](https://www.manageengine.com/products/desktop-central/help/api/onpremise/mac-get-passcode-payload-mac.html) response. #### Query Parameters - **include** (`string`, Optional): Comma-separated list of related fields to include in the response (e.g., assigned_to, payload_details). When omitted, only top-level fields are returned. ### Sample Request ```curl curl --request GET \ --url 'https://appdomain/api/v1/mdm/profiles/{profile_id}/payloads/macpasscodepolicy/payloaditems/{payload_id}?include=payloaditems' \ --header 'Accept: application/json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response ### Response Parameters #### HTTP Code 200 ##### Response Body — application/json `JSON Object` - **payload_id** (`long`): Unique identifier of the payload item. - **allow_simple_value** (`boolean`): Allow Simple Value. Default: true. - **require_alphanumeric** (`boolean`): Require Alphanumeric. Default: false. - **min_passcode_length** (`string`): Minimum passcode length. Allowed values: 0-16. Default: 0. - **min_complex_chars** (`string`): Minimum number of complex (non-alphanumeric) characters. Allowed values: 0-4. Default: 0. - **max_passcode_age** (`string`): Maximum number of days a passcode can remain unchanged. Allowed values: 0-730. Default: 0. - **auto_lock_idle_for** (`string`): Auto-lock idle time in minutes. Allowed values: 0-15. Default: 0. - **no_of_passcode_maintained** (`string`): Number of unique passcodes before reuse is allowed. Allowed values: 0-50. Default: 0. - **max_grace_period** (`string`): Maximum grace period in minutes before passcode is required. - **max_failed_attempts** (`string`): Maximum number of failed passcode attempts before device wipe. Allowed values: 2-11. Default: 11. - **restrict_passcode** (`boolean`): Restrict Passcode. Default: false. - **force_passcode** (`boolean`): Force Passcode. Default: true. - **change_at_next_auth** (`boolean`): Change At Next Auth. Default: false. - **mins_failed_login_reset** (`string`): Minutes after which failed login count resets. 0 means no reset. Default: 0. ### Possible Response Codes - **200** (`HTTP code`) ### Sample Response: HTTP 200 Full configuration details of Passcode payload item ```json { "min_passcode_length": -1, "max_passcode_age": 0, "payload_id": 9007199254741000, "require_alphanumeric": false, "min_complex_chars": -1, "restrict_passcode": false, "no_of_passcode_maintained": 0, "allow_simple_value": true, "auto_lock_idle_for": -1, "max_grace_period": -1, "max_failed_attempts": -1 } ``` ## Rate Limit ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 120 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.