Export the device and employee inventory as CSV
Export the inventory of your company as a paginated CSV of devices and the employees holding them, up to 1000 rows per page. It carries no device code (recovery key, unlock PIN, bypass code, password) and no personal email, phone or address, so the file can be sent outside IT. To export every device attribute, its custom fields and its latest codes, use exportDevices instead. One row per device in use or in stock (retired devices are left out) with the employee it is assigned to, plus one row per active employee holding no device. Columns, always in this order: Employee first name, Employee last name, Employee email, Employee status, Device name, Device type, Model, Serial number, Device status (in use, in stock), Enrollment status (enrolled, unenrolled, never enrolled), Last check-in, Purchase date. Employee status is left when the end date has passed or the offboarding is finished, not started when the start date is ahead, leaving when an end date is set or an offboarding is in progress, active otherwise. A missing value is an empty cell. Rows are sorted by employee last name then first name, devices assigned to nobody last. totals.deviceRows is the number of devices in use or in stock. Iterate page until totalPages and concatenate the CSV pages, dropping the header line of every page after the first. The REST route responds with text/csv (pagination in the X-Page, X-Per-Page, X-Total-Pages and X-Total-Elements headers); the MCP tool returns the CSV in the csv field.
Authorizations
Use your Primo API key in the Authorization header as Bearer <API_KEY>.
Query Parameters
Page of rows to export (1-indexed)
1 <= x <= 9007199254740991Number of rows per CSV page (default 500, max 1000)
1 <= x <= 1000Response
CSV page of the inventory. Pagination is returned in the X-Page, X-Per-Page, X-Total-Pages and X-Total-Elements response headers.
The response is of type string.