Rename a tag on all the user's items
Every item of the user that has tag (its own tag or an AI tag; archived items too, deleted ones not)
gets to instead. Renaming to a tag that already exists merges the two: an item with both keeps one,
in the earlier place. Tags are compared after lowercasing and folding white space. Each changed item
sends an item.updated webhook. An API key needs write access to items.
bearerAuthorizationBearer <token>A personal API key (ga_…), sent as Authorization: Bearer ga_…. A key gets 403 on a resource it has no access to, and on anything that changes data without write access.
application/json- body
tag*stringlength <= 64to*stringlength <= 64Done. items is how many of the user's items changed.
application/json- response
items*integer0 <= valuecurl -X POST 'https://example.com/v1/tags/rename' \ -H 'Content-Type: application/json' \ -d '{ "tag": "string", "to": "string"}'{ "items": 0}List the user's tags GET
The signed-in user's own tags, with how many of their items carry each, most used first (ties by tag, A to Z). Use it for search suggestions and tag autocomplete. An API key needs read access to `items`. - Only live items count: deleted and archived items are left out (archived items are put away, so their tags are not suggested). A tag no live item carries is not listed. - Tags are case-insensitive: `Design` and `design` are one tag, returned lowercase, the spelling Trova stores tags in (it lowercases them when they are saved). - By default only the user's own `tags` count. With `include_ai=true`, `ai_tags` count too; an item with a tag as both its own and an AI tag counts once. - `q` keeps tags that start with it, case-insensitively, after folding white space as tags are. Counts come from a per-user aggregate kept current by the database as items change, so the request reads a few index rows rather than every item.
Merge tags into one on all the user's items POST
Like `renameTag` for several tags at once: each of `tags` becomes `into`. `into` may be one of `tags` (it is left alone). An API key needs write access to `items`.