Skip to main content

User-related API environment

Pre-live user-related API docs

These pages describe the Pre-live user-related API stack.

Use pre-live OAuth credentials, pre-live API base URLs, and pre-live app URLs when following this documentation. Keep your OAuth flow, API requests, callback URLs, and manual testing within the pre-live environment.

Add user bookmark

Add or update a bookmark by details. Omit isReading to create or update a regular standalone bookmark. Set isReading=true to set the user's singleton reading bookmark and replace any previous reading bookmark. Set isReading=false or null to mark this bookmark as non-reading. For Quran.com-style saved or favorite ayah bookmarks, use POST /v1/collections/__default__/bookmarks.

Request Body
    oneOf

    key integer required

    The Surah number.

    type string required

    Possible values: [ayah]

    Default value: ayah

    The bookmark type.

    verseNumber integer required

    The Ayah number to be added.

    isReading boolean nullable

    Reading bookmark flag. Set true to set the user's current reading bookmark. Set false or null to mark this bookmark as non-reading. Omit this field to create or update a regular bookmark.

    mushafId integer

    Possible values: [1, 2, 3, 4, 5, 6, 7, 11, 19]

    The id of the Mushaf being used.

    1 = QCFV2

    2 = QCFV1

    3 = Indopak

    4 = UthmaniHafs

    5 = KFGQPCHAFS

    6 = Indopak15Lines

    7 = Indopak16Lines

    11 = Tajweeed

    19 = QCFTajweedV4 Preferred field name.

    mushaf integer

    Possible values: [1, 2, 3, 4, 5, 6, 7, 11, 19]

    The id of the Mushaf being used.

    1 = QCFV2

    2 = QCFV1

    3 = Indopak

    4 = UthmaniHafs

    5 = KFGQPCHAFS

    6 = Indopak15Lines

    7 = Indopak16Lines

    11 = Tajweeed

    19 = QCFTajweedV4 Legacy alias for mushafId.

Responses

Request has been handled successfully.

Response Headers
  • X-Mutation-At string

    Unix timestamp (milliseconds) of the latest mutation for the user. Clients should store this value and include it in subsequent mutation requests for optimistic concurrency control.


Schema
    success boolean
    data object nullable
    id string required
    createdAt date-time required
    type string required
    key integer required
    verseNumber integer nullable
    group string required
    isInDefaultCollection boolean required
    isReading boolean nullable required
    collectionsCount integer

    Total user-visible collection memberships for this bookmark, including Favorites when isInDefaultCollection=true.

Loading...