Content Management API > Smart tags
List all automatically created upload tags
The results are sorted by name and paginated by default.
Query parameters
filterobject
Attributes to filter tags
querystring
Textual query to match.
Example:
"foobar"
pageobject
Parameters to control offset-based pagination
offsetinteger
The (zero-based) offset of the first entity returned in the collection (defaults to 0)
Example:
200
limitinteger
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();