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-quarter
  • startDate / 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) required if :websitePublicId is invalid
  • 401 Unauthorized if you are not authenticated
  • 403 Forbidden if you do not have access to the website
  • 404 Website not found if the website does not exist