Get List by Id
Required scope:
public-api:read
Description
This endpoint resolves the referenced documents in a list.The response is a JSON object including list information with resolved documents.
Use Cases
- Resolve a Document List in the delivery
Endpoint
GET /api/v1/document-lists/:id
Parameters
Name | Type | Required | Notes |
---|---|---|---|
:id | integer | x | |
?reverse | boolean | Pass ‘reverse=false’ to get the list in the same order as you see it in the editor. (the default is reverse=true for backwards compatibility reasons) | |
?fields | string | Filters which (comma separated) document properties are included in the response. Defaults to ‘systemdata,metadata’ also accepts ‘content’ (no renditions). | |
?limit | integer | A limit for how much documents to resolve for the requested list. Defaults to 100. Max. 100. | |
?ignoreComponentConditions | boolean | Added in: release-2024-03 Provides a way to opt out of component filtering and return all content regardless of whether each component passes the conditional checks. Default: | |
?componentConditions | string | Added in: release-2024-03 JSON stringified object which contains the component conditions you would like to apply. Default: |
Response
Get Lists
Required scope:
public-api:read
Description
The response is a JSON array including only document lists without resolving documents.Endpoint
GET /api/v1/document-lists
Parameters
Name | Type | Required | Notes |
---|---|---|---|
?name | string | Filters the result set and allows searching by list name | |
?limit | integer | A limit for how much document lists to retrieve. Defaults to 10. Max. 100 | |
?offset | integer | An offset into the query. Useful when getting more than 100 results (pagination) |