Download PDF Report
GET /api/websites/:websitePublicId/report.pdf
Download PDF Report
GET /api/websites/:websitePublicId/report.pdf
Downloads a PDF report for a website.
Query Parameters
You can either use a predefined period or a custom date range.
period(optional, default:last-month):last-week,last-month,last-quarterstartDate/endDate(optional):YYYY-MM-DD
If startDate and endDate are provided, they take precedence.
Example (cURL)
BASE_URL="https://uptimeify.io"
TOKEN="<your-api-token>"
curl -L "$BASE_URL/api/websites/6bfec6f6-245a-47ce-843b-157d97d56f88/report.pdf?period=last-month" \
-H "Authorization: Bearer $TOKEN" \
-o report.pdf
Response
The response is a PDF (application/pdf).
Common Errors
400 Website public ID (UUID) requiredif:websitePublicIdis invalid401 Unauthorizedif you are not authenticated403 Forbiddenif you do not have access to the website404 Website not foundif the website does not exist