# Retrieve all credentials Retrieves all credentials accessible to the authenticated user for the given customer. Supports field projection to return only specified fields. ## Endpoint `GET /dcapi/credentials` ## Request ### Request URL `https://`[*{serverurl}*](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)`/dcapi/credentials` ### Scope `DesktopCentralCloud.Admin.READ` ### Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Accept** `string` **Mandatory**: `application/allCredentialsResponse.v1+json` #### Query Parameters - **fields** `string` Optional: Comma-separated list of fields to include in the response (field projection). ### Sample Request ```curl curl --request GET \ --url https://appdomains/dcapi/credentials \ --header 'Accept: application/allCredentialsResponse.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ## Response ### HTTP 200 Response body: `application/json` - `JSON Object` - **credentialID** `string`: Unique identifier of the credential - **credentialName** `string`: Administrator-defined display name for the credential - **credentialUsername** `string`: Username stored in the credential for authentication - **credentialType** `string`: Textual label of the credential type (e.g., 'Active Directory', 'Workgroup', 'BIOS') - **credentialTypeID** `string`: Numeric type identifier: 1 = Root Credential, 301 = Active Directory Credential, 302 = Workgroup Credential, 303 = BIOS Credential - **credentialUUID** `string`: Universally unique identifier (UUID) of the credential - **domainID** `string`: Unique identifier of the domain associated with the credential. Empty for non-domain credentials - **domainName** `string`: Name of the domain associated with the credential. Empty for non-domain credentials - **description** `string`: Administrator-provided description for the credential. Returns '--' if not set - **userID** `string`: Unique identifier of the user who created or last modified this credential - **createdUser** `string`: Login username of the user who created this credential - **isRootCredential** `string`: Indicates whether this is a root credential: 1 = root credential, 0 = non-root credential - **addedTime** `string`: Formatted timestamp of when the credential was created (e.g., 'Mar 30, 2026 04:50 PM') - **modifiedTime** `string`: Formatted timestamp of when the credential was last modified (e.g., 'Apr 1, 2026 12:48 PM') ### HTTP 403 Response body: `application/json` - `JSON Object` - **errorCode** `long`: Forbidden error code returned when the authenticated user does not have the required uem-roles (e.g., DataEncryption_Admin or DataEncryptionRecoveryKey_Admin) - **errorMsg** `string`: Message indicating insufficient privileges to access this resource ### Sample Response: HTTP 200 List of all credentials ```json [ { "modifiedTime": "Apr 1, 2026 12:48 PM", "credentialTypeID": 301, "description": "--", "credentialUsername": "Administrator", "userID": "1", "domainID": "311", "credentialType": "Active Directory", "credentialUUID": "5be0e976-d613-46a0-bdc9-5a374fcadf53-1774869636432", "domainName": "ECSOM", "addedTime": "Mar 30, 2026 04:50 PM", "credentialID": "1", "credentialName": "ECSOM_root", "createdUser": "admin", "isRootCredential": 1 } ] ``` ### Sample Response: HTTP 204 ```text 204 No Content ``` ### Sample Response: HTTP 403 Insufficient role permissions ```json { "errorMessage": "Insufficient role permissions", "status": "403" } ``` ## Rate Limit ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 30 | **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.