---
title: "Get initial creds"
method: GET
path: "/device/{deviceId}/initial-creds"
tags: ["Device"]
---

# Get initial creds

`GET /device/{deviceId}/initial-creds`

## Headers

- `X-Fields` string, mask

## Response `200`

Device initial credentials.

- DeviceInitialCreds
  - `hasAppCreds` boolean — True if app credentials are available for this device.
  - `lockerUrl` string — Link to encrypted locker containing password for initial ssh access. Locker contents be expired from api 7 days after initial provision.
  - `password` string — Password for initial ssh access. Will expire from api 7 days after initial provision.
  - `passwordReturnsUntil` integer — Date password will expire from API.
  - `port` integer — Port for initial ssh access.
  - `user` string — User for initial ssh access.

## Other responses

- `400` — Unable to get initial credentials for this Device.
- `403` — You have not been granted permission to complete this action. Please contact your account manager to grant the proper permission.

---

[API](https://skmtc.net/hivelocity/apis/hivelocity-api.md) · [All operations](https://skmtc.net/hivelocity/apis/hivelocity-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hivelocity/hivelocity-api/revisions/ee6b717b5015/schema)
