API GET calls objects can take a variety of parameters. These are specified in the URL using standard HTTP syntax.
Parameters may be specified in any order. This documentation section describes parameters that are valid for all calls; individual calls define additional ones.
General Parameters (all optional).
These two parameters define the scope of the query. The default is to query all accessible projects and none of the public datasets.
comma-separated list of project ids
comma-separated list of public dataset ids
General Parameters for set-retrieval calls (all optional):
|async||if set, do an asynchronous export (see below)
Note: This is strongly recommended any time you want to download more than page_size results
|offset||The index of the first object actually returned. Defaults to 0.|
|page_size||The maximum number of objects to return in this call. Default is 50, maximum is 1000.|
When retrieving large data sets (i.e. larger than the maximum page size), we strongly recommend doing an asynchronous request. This uses the existing export mechanism which allows you to download all requested data in one go.
curl -H X-CDD-Token:$TOKEN 'https://app.collaborativedrug.com/api/v1/vaults/23/protocols?async=true'
Data is then retrieved using the Async Export.
Date parameters should be of the form "YYYY-MM-DD" (other formats may be accepted but are not recommended). Dates are interpreted inclusively, ie, when querying for molecules, specifying
created_after=2008-01-01 will return molecules created on that date or after.