For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tag

The Tag API allows you to list, rename, and merge tags in the Eagle library.

Endpoints Overview

Method
Endpoint
Description

GET

/api/v2/tag/get

List all tags

POST

/api/v2/tag/get

List tags (body)

GET

/api/v2/tag/getRecentTags

Get recently used tags

GET

/api/v2/tag/getStarredTags

Get starred tags

POST

/api/v2/tag/update

Rename a tag

POST

/api/v2/tag/merge

Merge two tags


GET /api/v2/tag/get

List all tags in the library. Returns paginated results.

Query Parameters

  • name string (optional) — Filter tags by name (substring match)

  • offset integer (optional) — Pagination offset, default 0

  • limit integer (optional) — Pagination limit, default 50, max 1000

Response

Examples


POST /api/v2/tag/get

Same as GET, but accepts filter parameters in the JSON body.

Request Body

  • name string (optional) — Filter tags by name (substring match)

  • offset integer (optional) — Pagination offset, default 0

  • limit integer (optional) — Pagination limit, default 50, max 1000

Example


GET /api/v2/tag/getRecentTags

Get recently used tags. Returns paginated results.

Query Parameters

  • offset integer (optional) — Pagination offset, default 0

  • limit integer (optional) — Pagination limit, default 50, max 1000

Response

Example


GET /api/v2/tag/getStarredTags

Get starred (pinned) tags. Returns paginated results.

Query Parameters

  • offset integer (optional) — Pagination offset, default 0

  • limit integer (optional) — Pagination limit, default 50, max 1000

Response

Same format as /api/v2/tag/getRecentTags.

Example


POST /api/v2/tag/update

Rename an existing tag. All items using this tag will be updated automatically.

Request Body

  • originalName string (required) — The current tag name

  • name string (required) — The new tag name

Response

Returns the updated tag object.

Example


POST /api/v2/tag/merge

Merge a source tag into a target tag. All items with the source tag will have it replaced by the target tag. The source tag is removed after merging.

Request Body

  • source string (required) — The tag name to merge from (will be removed)

  • target string (required) — The tag name to merge into (will be kept)

Response

Example


Tag Properties

Tags returned by the API contain the following properties:

Property
Type
Description

name

string

Tag name

count

integer

Number of items using this tag

color

string

Tag color (empty string if unset)

groups

string[]

Array of tag group IDs

pinyin

string

Pinyin representation of the name

Last updated