---
title: "Get device credentials"
method: GET
path: "/devices/{deviceId}/credentials"
---

# Get device credentials

`GET /devices/{deviceId}/credentials`

## Path parameters

- `deviceId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

Success

- DeviceCredentials — The device credentials definition.
  - `idScope` string, required — ID scope for connecting to the IoT Central application.
  - `symmetricKey` SymmetricKey — The symmetric key definition.
    - `primaryKey` string, required — The primary key for this credential.
    - `secondaryKey` string, required — The secondary key for this credential.
  - `x509` X509 — The X509 definition.
    - `clientCertificates` X509Certificates — The X509 certificates definition.
      - `primary` X509Certificate, required — The X509 certificate definition.
        - `certificate` string — The string representation of this certificate.
        - `info` X509CertificateInfo — The X509 certificate info.
          - `sha1Thumbprint` string, required — The SHA-1 hash value of the certificate.
      - `secondary` X509Certificate — The X509 certificate definition.
        - `certificate` string — The string representation of this certificate.
        - `info` X509CertificateInfo — The X509 certificate info.
          - `sha1Thumbprint` string, required — The SHA-1 hash value of the certificate.
  - `tpm` Tpm — The trusted platform module definition.
    - `endorsementKey` string, required — The TPM endorsement key for this credential.

## Other responses

- `default` — An error response received from the IoT Central Service.

---

[API](https://skmtc.net/azure/apis/iotcentral-iotcentral.md) · [All operations](https://skmtc.net/azure/apis/iotcentral-iotcentral/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/iotcentral-iotcentral/versions/565d8813cbd3/schema)
