# 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://{server-hostname}:8383/dcapi/credentials` ### Scope `Admin.READ` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Accept** (string, Mandatory): `application/allCredentialsResponse.v1+json` ### Sample Request ```curl curl --request GET \ --url https://appdomain/dcapi/credentials \ --header 'Accept: application/allCredentialsResponse.v1+json' \ --header 'Authorization: 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') #### Sample Response 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 } ] ``` ### HTTP 204 #### Response Body `application/json` #### Sample Response ```json 204 No Content ``` ### 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 Insufficient role permissions ```json { "errorMessage": "Insufficient role permissions", "status": "403" } ``` ### Possible Response Codes - **200** HTTP code - **204** HTTP code - **403** HTTP code ## 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.