List viewer assets for a published package or dataset

Unauthenticated endpoint that returns viewer assets for a published
package or a published dataset, along with a CloudFront signed policy
for accessing the asset files. Each asset includes an asset_url.
To access files, append the relative path and signing params:
{asset_url}{path}?Policy={policy}&Signature={signature}&Key-Pair-Id={key_pair_id}

Caller must supply exactly one of package_id or dataset_id.
Note the asymmetry between the two: the package side accepts a node ID
because discover.public_file_versions stores source_package_id as a
node ID, while the dataset side accepts the published-dataset integer
PK
because discover.public_datasets does not record the source
dataset node ID.

In every mode, only finished assets (status: ready) are returned;
assets still uploading are hidden. Chat figures (chat_session_id set)
are never returned.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string

Source package node id (e.g. N:package:uuid). Returns viewer assets
linked to that package. Mutually exclusive with dataset_id.

int64

Published-dataset integer PK (i.e. discover.public_datasets.id,
the same numeric ID used in https://discover.pennsieve.io/datasets/{id}
URLs). By default returns dataset-scoped viewer assets (those with no
package links); with scope=all, every asset in the dataset.
Mutually exclusive with package_id.

string
enum

Only with dataset_id. all returns every viewer asset in the
published dataset: assets with no package links plus assets linked
to a package that is in a successfully published version of the
dataset (e.g. the thumbnails for a gallery), newest first. Each
asset's package_ids lists only its published packages. Omit for
the default dataset-scoped list.

Allowed:
Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json