- All immediate items of a common parent,
- All items filtered by text search (i.e. items whose name or owner’s email address/first name/last name contains a specified string),
- All items based on ownership or sharing status (where ‘sharing status’ refers to items that a Covata user either has shared or is a collaborator on) and
- All ancestral collections of an item.
-
Before retrieving a list of Secure Objects and collections, your application must have a valid access token obtained by authenticating and authorizing a Covata user to the Covata Platform, where this user either:
- has the appropriate role to create their own items (i.e. the Originator role) or
- be a collaborator on items which other users have shared with them. For more information about the definition of a collaborator and sharing items, see Sharing items.
- The Supported roles (and conditions) sections of each API endpoint page (linked to from the procedures below) contain details about the roles and permissions that a Covata user requires for a successful request to the endpoint (along with a valid access token representing this user).
Retrieving info about all immediate items of a common parent
Information about immediate child items (i.e. both Secure Objects and collections) of a common parent can be retrieved as a list from the Covata Platform. This common parent can be either a parent collection of these child items, or the logical root level. To retrieve this list of information about all immediate child items of a common parent, make aGET request to the <access-service>/api/v1/items API endpoint with the collectionId URL parameter whose value is either:
- the parent collection’s ID (i.e. of the collection that contains these child items), or
0to specify items located at the logical root level.
Retrieving info about all items filtered by text search
Information about all items whose name or owner’s email address/first name/last name contains a specified string, irrespective of an item’s location or ownership, can be retrieved as a list from the Covata Platform. (This is effectively a text search feature.) To retrieve a list of information about all items whose name or owner’s email address/first name/last name contains a specified string, make aGET request to the <access-service>/api/v1/items API endpoint with the searchText URL parameter whose value contains the specified string itself.
It is not possible to specify both the searchText and collectionId (above) URL parameters in the same request.
Retrieving info about all items based on ownership or sharing status
Information about all items belonging to a Covata user (represented by an access token), or all items which this user has shared or is a collaborator on (i.e. the items’ sharing status in relation to the user) can be retrieved as a list from the Covata Platform. To retrieve this list of information about all items:- belonging to a Covata user or
- based on their sharing status in relation to this user,
GET request to the <access-service>/api/v1/items API endpoint and specifying the view URL parameter with a value of:
owned-by-meto retrieve all items owned by the specified Covata user*,shared-with-meto retrieve all items that other Covata users have shared with the specified Covata user*,sharingto retrieve all items that the specified Covata user* has shared with other people, orallto retrieve all items that the specified Covata user* can access.
Retrieving info about all ancestral collections of an item
To retrieve information about all ancestral collections (back to the logical root level) of an item, make aGET request to the <access-service>/api/v1/items/{itemId}/ancestry API endpoint.
All ancestral collections from the logical root level through to the parent collection of item whose ID is specified in this request’s URL is returned in the response. The response is a flat list of information about these ancestral collections in hierarchical order from the logical root level.
Sorting, ordering and paginating the list of item info
The list of information about all retrieved items from a common parent, filtered by text search or based on ownership or sharing status can be sorted, ordered and paginated by specifying the following additional URL parameters in the appropriateGET request to the <access-service>/api/v1/items API endpoint:
-
sortBy - The item’s field by which the items in the list is ordered. Valid values are:
NAME- the item’s name (which is the default value if this parameter is omitted),OWNER- the item’s owner,MODIFIED- the date when the item was last modified, orCREATED- the date when the item was created.
-
orderBy - The sortBy field is ordered by the value of this field. Valid values are:
ASC- for ascending alphanumeric or chronological order (which is the default value if this parameter is omitted), orDESC- for descending alphanumeric or chronological order.
-
limit - The maximum number of items returned in the response. If this parameter is omitted, its value is
10by default. -
offset - The count order of all retrievable items from the Covata Platform filtered using other URL parameters in the request. If this parameter is omitted, its value is
0by default.

