Get Letter PDF
Notifications
Get Letter PDF
GET
Get Letter PDF
Download the PDF for a letter notification. This endpoint is only available for letter notifications.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/alphagov/notifications-api/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
The UUID of the letter notification.
Response
Returns the letter PDF file withContent-Type: application/pdf.
The PDF contains the fully rendered letter including:
- The recipient’s address
- The letter content with all placeholders filled in
- GOV.UK branding (if applicable)
Example Request
Example Request (Save to File)
Error Responses
400 Bad Request
Notification is not a letter404 Not Found
Notification not foundPDF Availability
The PDF is typically available within a few seconds after sending a letter notification. However, for precompiled letters, the PDF may take longer to become available as it needs to:- Pass virus scanning (
pending-virus-checkstatus) - Be validated and processed
PDFNotReadyError, wait a few seconds and try again.
Letter Statuses
You can only retrieve PDFs for letters in certain statuses: PDF Available:accepted(created/sending)received(delivered)returned-letter
pending-virus-check- Wait and retryvirus-scan-failed- Letter rejected, PDF not availablevalidation-failed- Letter rejected, PDF not availabletechnical-failure- Processing failed, PDF not available
Use Cases
- Preview letters before they are sent
- Archive copies of sent letters for record keeping
- Verify letter content and formatting
- Debug issues with letter generation
Notes
- The PDF returned is the exact version that will be (or was) printed and posted
- PDFs are retained for 7 days after creation
- This endpoint is only available for letter notifications created via the API or admin interface
- The PDF includes all GOV.UK Notify formatting and branding