Show examples in:
List all manually created upload tags

The results are sorted by name and paginated by default.

Query parameters

filter  Optional  object

Attributes to filter tags

page  Optional  object

Parameters to control offset-based pagination

Returns

Returns an array of upload_tag resource objects.

Examples

Example Basic example
import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
// this only returns the first page of results:
const uploadTags = await client.uploadTags.list();
uploadTags.forEach((uploadTag) => {
console.log(uploadTag);
});
// this iterates over every page of results:
for await (const uploadTag of client.uploadTags.listPagedIterator()) {
console.log(uploadTag);
}
}
run();