Tags
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:
Designanddesignare one tag, returned lowercase, the spelling Trova stores tags in (it lowercases them when they are saved). - By default only the user's own
tagscount. Withinclude_ai=true,ai_tagscount too; an item with a tag as both its own and an AI tag counts once. qkeeps 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.
bearerAuthorizationBearer <token>Supabase access token (JWT) or personal API key (ga_…). A key gets 403 on a resource it has no access to, and on anything that changes data without write access.
q?stringPrefix to match, case-insensitive.
length <= 64limit?integer1 <= value <= 20050include_ai?booleanAlso count AI tags.
falseTags, most used first
application/json- response
tags*array<>curl -X GET 'https://example.com/v1/tags'{ "tags": [ { "tag": "string", "count": 1 } ]}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>Supabase access token (JWT) or personal API key (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}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.
bearerAuthorizationBearer <token>Supabase access token (JWT) or personal API key (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
tags*array<>1 <= items <= 50into*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/merge' \ -H 'Content-Type: application/json' \ -d '{ "tags": [ "string" ], "into": "string"}'{ "items": 0}Removes the tags from the user's items (own and AI tags; archived items too) and dismisses them on
those items, so tagging them again does not suggest them back. Allowed while the library is read-only
over its plan's limits. Smart Spaces and rules that name a deleted or renamed tag are not changed. An
API key needs write access to items.
bearerAuthorizationBearer <token>Supabase access token (JWT) or personal API key (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
tags*array<>1 <= items <= 50Done. items is how many of the user's items changed.
application/json- response
items*integer0 <= valuecurl -X POST 'https://example.com/v1/tags/delete' \ -H 'Content-Type: application/json' \ -d '{ "tags": [ "string" ]}'{ "items": 0}Annotations
Passages a reader marked in an item's text, each with a colour and an optional note. Personal: the owner and members of a list the item is shared in each keep their own. Not quotes: an annotation stays on its item.
Spaces
Smart Spaces are searches you save. They always show their current matches.