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 manually 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_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 uploadTags = await client.uploadTags.list({
    filter: {
    query: 'foobar'
    },
    page: {
    offset: 200,
    limit: 20
    }
    });
    uploadTags.forEach((uploadTag) => {
    console.log(uploadTag);
    });
    // this iterates over every page of results:
    for await (const uploadTag of client.uploadTags.listPagedIterator(
    {
    filter: {
    query: 'foobar'
    }
    }
    )) {
    console.log(uploadTag);
    }
    }
    run();
    Returned output:
    {
    id: '42',
    name: 'Pictures of me'
    }