User-related API environment
Production user-related API docs
These pages describe the Production user-related API stack.
Use production OAuth credentials, production API base URLs, and production app URLs when following this documentation.
Need to test before going live? Switch to the Pre-live docs using the environment switcher above.
Export posts as PDF
Generate a downloadable PDF document containing selected posts with their full content, Quran references, and author information. Ayah translations are rendered according to user language preferences.
Request Body required
Array of post IDs to include in the PDF export (minimum 1)
- Array [
- ]
Possible values: >= 1
Array of post IDs to export
context object
Possible values: [single, list]
Single-post exports print no source label
source object
Possible values: [feed, search, profile, group, other]
Surface the export was triggered from; drives the header source label
Feed tab or sort (feed, trending, following, newest, popular, saved)
searchFilters object[]
Active search filters, for search exports
Possible values: [ayah, tag, author, group]
Chip label shown in the search summary
Profile username, for profile exports
Group name, for group exports
Exporter platform locale for labels (en, ar, es, fr, id, ms, ur); defaults to en
IANA timezone for dates and timestamps; defaults to UTC
ISO 8601 export time shown in the header and footer; defaults to now
Ayah display ids the exporter sees on the web; falls back to the saved settings when empty
- 200
- 400
- 401
- 404
PDF file generated and returned as binary attachment
Response Headers
X-Pdf-Page-Count integer
Number of pages in the generated PDF, when the renderer reports it
X-Pdf-Reflection-Count integer
Number of reflections the exporter could access and were exported
Schema
string
Invalid request - empty or invalid post IDs array
User not authenticated
No accessible posts found for the given IDs