Skip to main content

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)

    ids number[] required

    Possible values: >= 1

    Array of post IDs to export

    context object
    scope string

    Possible values: [single, list]

    Single-post exports print no source label

    source object
    type string required

    Possible values: [feed, search, profile, group, other]

    Surface the export was triggered from; drives the header source label

    feedSort string

    Feed tab or sort (feed, trending, following, newest, popular, saved)

    searchFilters object[]

    Active search filters, for search exports

  • Array [
  • kind string required

    Possible values: [ayah, tag, author, group]

    label string required

    Chip label shown in the search summary

  • ]
  • username string

    Profile username, for profile exports

    groupName string

    Group name, for group exports

    locale string

    Exporter platform locale for labels (en, ar, es, fr, id, ms, ur); defaults to en

    timezone string

    IANA timezone for dates and timestamps; defaults to UTC

    exportedAt string

    ISO 8601 export time shown in the header and footer; defaults to now

    ayahLanguages number[]

    Ayah display ids the exporter sees on the web; falls back to the saved settings when empty

Responses

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

Loading...