Show examples in:
List all upload collections

Query parameters

filter  Optional  object

Returns

Returns an array of upload_collection resource objects.

Examples

Example Basic example
import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const uploadCollections = await client.uploadCollections.list();
uploadCollections.forEach((uploadCollection) => {
console.log(uploadCollection);
});
}
run();