---
title: "Gets the device credentials."
method: GET
path: "/api/devices/{deviceID}/credentials"
tags: ["IoT Devices"]
---

# Gets the device credentials.

`GET /api/devices/{deviceID}/credentials`

## Path parameters

- `deviceID` string, required

## Response `200`

Success

- DeviceCredentials
  - `authenticationMode` 0 | 1 — The authentication mode (either SymmetricKey or Certificate)
  - `symmetricCredentials` SymmetricCredentials — Enrollment credentials.
    - `registrationID` string, nullable — The registration identifier.
    - `symmetricKey` string, nullable — The symmetric key.
    - `scopeID` string, nullable — The scope identifier.
    - `provisioningEndpoint` string, nullable — The provisioning endpoint.
  - `certificateCredentials` CertificateCredentials — Certificate credentials.
    - `certificatePem` string, nullable — The Certificate Pem
    - `publicKey` string, nullable — The public key
    - `privateKey` string, nullable — The private key

---

[API](https://skmtc.net/cgi-fr/apis/azure-iot-hub-portal-api.md) · [All operations](https://skmtc.net/cgi-fr/apis/azure-iot-hub-portal-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cgi-fr/azure-iot-hub-portal-api/versions/ce058568b9f0/schema)
