Home
Content Management API⁡𝅶‍‍𝅺⁡‍𝅴⁡𝅴𝅹‍‍⁢𝅵‍‍⁣‌⁡⁣𝅺⁢𝅸⁡⁢‍𝅹⁢𝅺𝅸‍‍‍𝅷‍‍𝅳⁡‍⁠‍‍⁢𝅵‍‍𝅳⁡⁣⁡⁣⁡​⁡⁢⁢𝅵‍𝅺‍𝅺⁢𝅸⁡⁢‍𝅹⁣‌⁡⁣𝅺⁢𝅸⁡⁢‍𝅹⁢𝅺𝅸‍𝅺⁠⁣𝅴⁡⁣𝅺⁡‍‍𝅺𝅴⁡⁣⁠𝅸⁠𝅺⁡⁣⁡𝅴⁡​⁠⁡⁢‍𝅺⁢𝅳⁢‌⁢​⁢𝅴⁢‍⁢⁠‍𝅺𝅴⁡⁣⁠𝅸⁡⁢‍𝅺⁢⁢⁢𝅴⁢𝅳⁢⁢⁢‌⁢⁡⁢𝅳⁢‌‍‍⁡𝅸
Main resources
Upload-related
Site Search
Environments
UI
Workflows
Async jobs
Roles & permissions
Webhooks
Hosting & CI integrations
Subscription
Enterprise
    Show examples in:
    List all automatically created upload tags

    The results are sorted by name and paginated by default.

    Query parameters

    filter  object  Optional

    Attributes to filter tags

    page  object  Optional

    Attributes to manage results pagination

    Returns

    Returns an array of upload_smart_tag resource objects.

    Examples

    Example code:
    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({
    filter: {
    query: 'foobar'
    },
    page: {
    offset: 200,
    limit: 20
    }
    });
    uploadSmartTags.forEach((uploadSmartTag) => {
    console.log(uploadSmartTag);
    });
    // this iterates over every page of results:
    for await (const uploadSmartTag of client.uploadSmartTags.listPagedIterator(
    {
    filter: {
    query: 'foobar'
    }
    }
    )) {
    console.log(uploadSmartTag);
    }
    }
    run();
    Returned output:
    {
    id: '42',
    name: 'building'
    }