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.

Get all collection items

Get all existing collections along with resources that belong to them.

Query Parameters
    sortBy string

    Possible values: [recentlyAdded, verseKey]

    Sort the collection items either by the time they were added at descendingly or alphabetically.

    type string

    Possible values: [page, juz, surah, ayah]

    Default value: ayah

    The bookmark type.

    last integer

    Possible values: >= 1 and <= 20

    The number of items to be fetched. Should be used together with before

    first object

    Possible values: >= 1 and <= 20

    The number of items to be fetched.

    after object

    The cursor after which you want to get the next page of items. Should be used together with first

    before object

    The cursor before which the previous page of items will be fetched. Should be used together with last

Responses

Request has been handled successfully.


Schema
    success boolean
    data object[]
  • Array [
  • 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.

  • ]
  • pagination object
    startCursor string
    endCursor string
    hasNextPage boolean
    hasPreviousPage boolean
Loading...