Skip to content
Navigation

Pages a product's own files with their access, in the seller's order unless sorted by name, type or tier.

GET
https://api.sherpo.io/customer/v1/stores/{store}/products/{product}/files

Authorization

  • bearer
    optional
    HTTP
  • publishableKey
    optional
    API key in header

Path parameters

  • store
    string
    required

    A hostname of the store.

  • product
    string
    required

    An id, or slug:<slug>.

    minLength: 1

Query parameters

  • filter
    optional
    object

    filter[<field>]=<value> is an equality, filter[<field>][<op>]=<value> names the operator; in repeats the parameter.

  • sort
    optional
    position
    or
    name
    or
    type
    or
    tier

    Sorted by name or type, rows without a value come last either way.

  • direction
    optional
    asc
    or
    desc
  • limit
    optional
    integer
    maximum: 100 · minimum: 1
  • cursor
    optional
    string
    maxLength: 8192
  • count
    optional
    boolean
  • preview
    optional
    string

    A token a seller made for the product's page or one of its entries, which lists an unpublished product's files.

    maxLength: 128 · minLength: 1

Returns

200

Pages a product's own files with their access, in the seller's order unless sorted by name, type or tier.

JSON
  • items
    array of
    object
    required
    • watermark
      required

      How its downloads are marked for their reader: basic a line at the foot of each page of a PDF or a protected sheet in a spreadsheet, full (PDFs only) a stamp across every page too; null for a file never marked.

      One of the following:

      • string
      • null
    • requires
      required

      What opens it, the same for every reader: anyone, a tier's rank or higher of the product it names, or nobody.

      One of the following:

      • object
      • object
      • object
    • download_requires
      required

      What opens downloading it where that asks more than requires: a lesson's slides bound as a download always, as they show in its place; null otherwise.

      One of the following:

      • object
      • object
      • object
      • null
    • requires_any
      required

      The products its rules name that a visitor reaches, each at a tier's rank, any one of which opens it past requires; null where no rule decides it.

      One of the following:

      • array<object>
      • null
    • tracks
      array of
      object
      required
      • id
        string
        required
      • label
        required

        One of the following:

        • string
        • null
      • language
        required

        One of the following:

        • string
        • null
      • generated
        boolean
        required

        Subtitles the store generated with AI from the video's audio.

    • outputs
      array of
      string
      required

      The published AI outputs getMediaOutputs reads beside the video or audio file.

    • access
      string
      required
    • id
      string
      required
    • role
      string
      required
    • delivery
      string
      required
    • preview_only
      boolean
      required
    • from_body
      boolean
      required

      Named by its target's body text, rather than the target's own media (a lesson's video or slides).

    • release_file
      boolean
      required

      One of a software release's files, which a product read lists after the product's own while the release is current.

    • position
      number
      required
    • asset
      object
      required
      • id
        string
        required
      • name
        required

        One of the following:

        • string
        • null
      • title
        required

        One of the following:

        • string
        • null
      • ext
        required

        One of the following:

        • string
        • null
      • description
        required

        One of the following:

        • string
        • null
      • mime
        required

        One of the following:

        • string
        • null
      • bytes
        required

        The file's size in bytes, null when it has none or is withheld.

        One of the following:

        • number
        • null
      • enforcement
        string
        required
      • locator
        required

        One of the following:

        • string
        • null
      • metadata
        object
        required
        • width
          required

          One of the following:

          • number
          • null
        • height
          required

          One of the following:

          • number
          • null
        • duration
          required

          One of the following:

          • number
          • null
        • pages
          required

          One of the following:

          • number
          • null
      • status
        string
        required
  • cursor
    required

    One of the following:

    • string
    • null
  • total
    optional
    number
  • facets
    optional
    map of
    map<number>
JSON
  • type
    string
    required
    format: uri
  • title
    string
    required
  • status
    integer
    required
  • detail
    string
    required
  • code
    optional
    string
  • context
    optional
    object
  • reached_core
    optional
    boolean
  • core_answer
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close