Show examples in:
    List all automatically 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_smart_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 uploadSmartTags = await client.uploadSmartTags.list();
    uploadSmartTags.forEach((uploadSmartTag) => {
    console.log(uploadSmartTag);
    });
    // this iterates over every page of results:
    for await (const uploadSmartTag of client.uploadSmartTags.listPagedIterator()) {
    console.log(uploadSmartTag);
    }
    }
    run();