Content Management API > Smart tags
List all automatically created upload tags
The results are sorted by name and paginated by default.
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
GET https://site-api.datocms.com/upload-smart-tags HTTP/1.1Authorization: Bearer YOUR-API-TOKENAccept: application/jsonX-Api-Version: 3
curl -g 'https://site-api.datocms.com/upload-smart-tags' \ \ -H "Authorization: Bearer YOUR-API-TOKEN" \ -H "Accept: application/json" \ -H "X-Api-Version: 3"
await fetch("https://site-api.datocms.com/upload-smart-tags", { headers: { Authorization: "Bearer YOUR-API-TOKEN", Accept: "application/json", "X-Api-Version": "3", },});
HTTP/1.1 200 OKContent-Type: application/jsonCache-Control: cache-control: max-age=0, private, must-revalidateX-RateLimit-Limit: 30X-RateLimit-Remaining: 28
{ "data": [ { "type": "upload_smart_tag", "id": "42", "attributes": { "name": "building" } } ], "meta": { "total_count": 20 }}