Export notes as PDF
Generates a PDF export of notes for a donor or recipient entity, optionally filtered by note category. Admin users call this from the notes panel to download a human-readable record of staff notes. Requires the admin API auth middleware and user permission checks.
Authorizations
Passport bearer token authentication for legacy admin sessions.
Path Parameters
Note owner type. The controller accepts donor or entity and uses it to choose the tenant-scoped model lookup.
donor, entity Donor or entity ID whose notes should be exported. The ID is scoped to the authenticated client before PDF generation.
Query Parameters
Program context used to load available categories and label entity-category notes. Validation rule: required.
Optional category ID filter. When present, only notes matching this category are included in the PDF.
Response
PDF file containing matching notes.
The response is of type file.