collection.getList
Returns a list of collections belonging to your user.
Note: Requests must be made to https://api.flipsnack.com/v1.
Request parameters
Name | Type | Description |
apiKey (required) | string | The API key provided for your user. If it is not specified, the request will return the error code "30 - Missing mandatory parameter". If the key is incorrect the request returns the error code "41 - Invalid credentials". |
signature (required) | string | The signature must be calculated by you and added to the request. See How to sign a request for more information. If the parameter is missing the request will return the error code "30 - Missing mandatory parameter". If the signature is incorrect the request will return the error code "44 - Invalid signature". |
action (required) | string | The API method that should be called. In this case the value should be collection.getList. If it is not specified, the request will return the error code "30 - Missing mandatory parameter". |
collectionStatus | string | The type of collection. Possible values are public, editable and unlisted. Public collections are listed on your public profile and in search results. They are publicly available to other users. Editable collections are not published. They must be published manually from the Flipsnack editor or updated using the collection.update method. Unlisted collections are published but not listed on your profile page and in search results. Other users may view them only if they receive a direct link or an embedded player from you. Note: If you do not specify a collection status, the API will return all collections within the specified range, regardless of their types. |
query | string | A search query to help narrow down search results. This could be a keyword or a phrase to search through the title and description of the collection. |
from | number | The index of the starting record for the returned list. You can limit the number of results by specifying the index for the first record (parameter from) and the last record (parameter to). By default, if you do not specify the from and to parameters, the API call returns the first 50 records. Default: 0. |
to | number | The index of the last record for the returned list. You can limit the number of results by specifying the index for the first record (parameter from) and the last record (parameter to). By default, if you do not specify the from and to parameters, the API call returns the first 50 records. Default: 50. |
orderBy | string | The field after which the returned list will be ordered. Possible values are date_published, date_created and name. Default: date_published. |
orderMode | string | Specifies if the list will be ordered ascending or descending. Possible values are asc and desc. Default: desc. |
folder | string | The folder path where collections are stored in your account.
You can specify a folder structure up to 3 levels.
If the folder does not exists or there are no collections in that folder you will receive 0 results. |
Response parameters
Name | Type | Description |
collectionsCount | string | The total number of collections that match the request. This number does not take into consideration the limits specified at the API call. For example, your request could match 100 collections, but it returns only the ones within the limits specified by from and to parameters. |
collections | object | An object containing the list of collections returned that match the requested criteria. The parameters for each collection are described in the list below. |
Collection parameters
Name | Type | Description |
collectionHash | string | The hash for the newly created collection. If the collection status is editable the generated hash will be temporary. Once the collection is published, a new, final hash will be generated for it. |
collectionTitle | string | The title of the collection. |
collectionStatus | string | The current status of the collection: public, editable or unlisted. |
coverImage | string | The url of the collection's thumbnail image. This thumbnail is generated from the first page of the first collection item. |
createdDate | date | The date when the collection was created (not necessarily published). |
directLink | string | The public link of the collection. |
Error codes
For complete list of error codes and messages go to API status codes section.
Examples
Request
Response
Last updated