Prismic
Prismic Headless CMS integration
Instead of using the /list
endpoint (API documentation), this API supports Prismic's format directly.
This endpoint lists the assets with the following settings:
50 elements per pages
ordered by last_update
Endpoint
GET {API_SECRET_KEY}@api.filerobot.com/{TOKEN}/integration/prismic/assets
Property | Description |
---|---|
API_SECRET_KEY | can be generated in the Asset hub (documentation) |
TOKEN | your DAM token |
GET Parameters
Parameter | Description |
---|---|
folder | the path to the folder you would like to list default: |
page | the result page number, starting from 1 default: |
Examples
Request
Copy-paste the cURL request in your Terminal to see the API in action.
Response
The response format will look like this:
Where:
results_size is the total counting of the listing result; and could be easily understood as the sum of
size(results)
of all pages, while each page contains a maximum of 50 files.image_url is fixed to be resized to
100x100
description would be returned as a concatenation from
blob->meta->search
andblob->meta->tags
and the parsed list of directories and sub-directories. In case the file doesn't have this field (and is at the root folder), it defaults toNo description for this file is available
.
Last updated