GET /serial/{serial_key}/dhr
Get Device History Record
GET
/serial/{serial_key}/dhr
Generate a device history record for a serial.
Renders a PDF Device History Record (DHR) for the serial identified by
serial_key using WeasyPrint. When include_children=True, DHRs for all
complex child serials (those with step data or sub-children) are appended in
order of product code then serial code. Returns the combined PDF as a binary
download attachment.
Emits: (direct query — no event class)
Required scope: serial:read
Authorizations
OAuth2PasswordBearer
password Flow
Token URL
"/api/auth"Scopes:
"admin"User can access and edit users and system settings"library"User can access and edit products"production"User can access and edit production plans"operator"User can access the operator panel and make production declarations
Parameters
Path Parameters
serial_key*
Type
Requiredstring
Query Parameters
include_attachments
Type
boolean
Default
falseinclude_children
Type
boolean
Default
falseinclude_step_data
Type
boolean
Default
falseResponses
Successful Response
application/json
JSON
[
]