---
title: "Retrieve bulk device inventory"
method: POST
path: "/v2/partition/{partitionId}/deviceinventory/export"
tags: ["Device Inventory Management"]
---

# Retrieve bulk device inventory

`POST /v2/partition/{partitionId}/deviceinventory/export`

## Request

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

Use to retrieve a bulk file containing the partition's device inventory.  <span hidden>This is part of a flow documented <a href="bulkDeviceInventory.html#bulkInventoryExport">here</a>.</span>

## Path parameters

- `partitionId` string, required

## Response `200`

Successful operation

- Job
  - `id` string
  - `name` string
  - `userId` string
  - `status` 'PENDING' | 'IN_PROGRESS' | 'DONE' | 'FAILED'
  - `errors` JobError[]
    - `error` string
    - `lineNumber` integer
    - `column` string
    - `input` string
  - `inputKey` string
  - `outputKey` string
  - `start` string, date-time
  - `lastUpdated` string, date-time

## Other responses

- `202`: Use Jobs API to check status
- `400`: Invalid request parameters
- `401`: Unauthorized
- `404`: 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)
