Content Management API > Smart tags
List all automatically created upload tags
Query parameters
filter object
Attributes to filter tags
query string
Textual query to match.
Example:
"foobar"
page object
Parameters to control offset-based pagination
offset integer
The (zero-based) offset of the first entity returned in the collection (defaults to 0)
Example:
200
limit integer
The maximum number of entities to return (defaults to 50, maximum is 500)
Returns
Returns an array of resource objects of type upload_smart_tag
Examples
import { buildClient } from "@datocms/cma-client-node";
async function run() { const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
// iterates over every page of results for await (const uploadSmartTag of client.uploadSmartTags.listPagedIterator()) { // Check the 'Returned output' tab for the result ☝️ console.log(uploadSmartTag); }}
run();