Skip to main content
post/datasets/tags
Request example
Response
post/datasets/tags

Authorization

Authorizationstringheaderrequired#

Every request authenticates with an API key: Authorization: Bearer {API_KEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API key (Get Started).

Keep keys server-side; never embed them in client code. Requests with a missing or invalid key fail with HTTP 401 (unauthorized).

Body

application/json
namestringrequired#
Tag name. Must be unique within the workspace.

Length: 1–50

Responses

application/json
Tag created successfully.
binding_countstring#
Number of knowledge bases bound to this tag.
idstring#
Tag identifier.
namestring#
Tag display name.
typestring#
Tag type. Always knowledge for knowledge base tags.