---
title: "Retrieve provisioning information for the device line"
method: GET
path: "/v2/partition/{partitionId}/account/{accountId}/deviceline/{deviceId}/provisioning"
tags: ["Account Device Line"]
---

# Retrieve provisioning information for the device line

`GET /v2/partition/{partitionId}/account/{accountId}/deviceline/{deviceId}/provisioning`

## Request

- Base URL: `https://api.alianza.com`
- URL: `https://api.alianza.com/v2/partition/{partitionId}/account/{accountId}/deviceline/{deviceId}/provisioning`
- Auth: API key in header `X-AUTH-TOKEN`
- TypeScript: <https://skmtc.dev/alianza/apis/alianza-public-api/docs/v2/partition/:partitionId/account/:accountId/deviceline/:deviceId/provisioning/get.ts> (a function with typed inputs; its response is checked against the schema)

It is preferable you use the Account Device endpoint device/{macAddress}/provisioning to get this information. This endpoint supports only devices provisioned through Device Requested Provisioning (DRP).

## Path parameters

- `accountId` string, required
- `deviceId` string, required
- `partitionId` string, required

## Response `200`

Successful operation. Until the device reaches out for it’s first provisioning request, the API will return a null response body.

- ProvisioningRequestX
  - `id` string: The 48-bit hexadecimal address assigned to the device by the manufacturer.
  - `requestDate` string, date-time: The ISO 8601 formatted date string indicating when the device last tried to retrieve provisioning data.
  - `httpStatus` integer: The http status of the device's most recent request for provisioning.
  - `deviceId` string: DeviceId, reference to <a href="#/~schema/DeviceX">device.id</a>
  - `ipAddress` string
  - `userAgent` string: The user agent that was used to retrieve the provisioning data.

## Other responses

- `400`: Invalid partition, account or device ID supplied
- `401`: Unauthorized
- `404`: Device or provisioning not found.

---

[API](https://skmtc.dev/alianza/apis/alianza-public-api.md) - [All operations](https://skmtc.dev/alianza/apis/alianza-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alianza/apis/alianza-public-api/revisions/7223246c352c?raw)
