Managing Health Tags
Create, update, list, and soft-delete custom Health Tag definitions.
Managing Health Tags
Last substantively updated: October 26, 2026.
Use the Health Tags management endpoints to manage custom tag definitions for your organization. Tags created with these endpoints are associated with your organization before Users select or check in with them.
Where This Fits
Managing Health Tags is an organization-level workflow. Use it when you need to define custom tags, organize tags by category, review available tag definitions, or remove a tag from future use.
For User selection and check-ins, use Using Health Tags.
Before You Begin
You need:
- A service-level token with the appropriate
health-tagsscope. - The tag categories available to your organization.
- A stable internal mapping from your product's tag concepts to the tag IDs returned by the API.
Management endpoint scopes differ by operation.
| Operation | Required service-level token scope |
|---|---|
| List tag categories | health-tags:r |
| List tag definitions | Either health-tags:r or health-tags:w |
| Create, update, or delete tags | health-tags:w |
Management Tasks
The management endpoints support several tag-management tasks.
List categories and tag definitions when you need to build or audit the catalog available to your application.
Add custom tags when the base catalog does not cover the User context you need to track.
Change an active tag before Users have recorded check-ins for it.
Soft-delete tags that should no longer be available for future selection.
Common Paths
| Task | Typical Steps |
|---|---|
| Inspect available tags | Fetch categories, then list BASE, CUSTOM, or COMBINED tag definitions. |
| Add a custom tag | Fetch categories, create the tag with a valid categoryId, then store the returned id. |
| Change an active tag | Update title, description, or category before Users begin recording check-ins for the tag. |
| Retire a tag | Delete the active tag definition. Historical User responses are retained. |
Endpoint Overview
| Step | Endpoint | Purpose |
|---|---|---|
| List categories | GET /health-tags/partner/v1/tag-categories | Returns available tag categories. |
| List tags | GET /health-tags/partner/v1/tags | Returns non-deleted tag definitions for the requested source. |
| Create tag | POST /health-tags/partner/v1/tags | Creates an active custom tag. |
| Update tag | PUT /health-tags/partner/v1/tags/{tagId} | Updates an active custom tag. |
| Delete tag | DELETE /health-tags/partner/v1/tags/{tagId} | Soft-deletes an active custom tag. |
List Categories And Tags
Fetch categories before creating tags so your application submits a valid categoryId.
GET /health-tags/partner/v1/tag-categoriesCategory query parameters:
| Parameter | Required | Default | Use |
|---|---|---|---|
page | No | 0 | Zero-based page index. Must be zero or greater. |
size | No | 20 | Maximum number of categories per page. Must be greater than zero. |
Use tagSet when listing tag definitions. Add categoryId, page, and size when you need to narrow or page through the tag library.
GET /health-tags/partner/v1/tags?tagSet=CUSTOM&categoryId=ACTIVITY&page=0&size=20Tag list query parameters:
| Parameter | Required | Default | Use |
|---|---|---|---|
tagSet | No | BASE | Selects which source of tags to return. |
categoryId | No | none | Filters tags to a single category. Omit it to return all categories. |
page | No | 0 | Zero-based page index. Must be zero or greater. |
size | No | 20 | Maximum number of tags per page. Must be greater than zero. |
| Value | Description |
|---|---|
BASE | InsideTracker-owned tags. |
CUSTOM | Custom tags available through your organization. |
COMBINED | Base and custom tags together. When a custom tag matches a base tag by title, ignoring case, the custom tag replaces the base tag in the response. |
Create Tags
Create custom tags after retrieving the available categories.
POST /health-tags/partner/v1/tags
Content-Type: application/json{
"key": "MORNING_WALK",
"title": "Morning walk",
"description": "User completed a morning walk.",
"categoryId": "ACTIVITY"
}Creation rules:
keymust use uppercase letters, digits, and underscores.titlemust be unique among your organization's active tags, ignoring case.categoryIdmust refer to an existing tag category.- The resulting tag identifier must not already exist, including soft-deleted tags.
- The returned tag ID is the value to store and use later.
Store the response's id as tagId in your application. Use that exact value for future tag selection, check-in, update, and delete requests.
For example, creating MORNING_WALK for organization 42 returns an ID such as the one shown in this response excerpt:
{
"id": "P42_MORNING_WALK"
}In that example, store P42_MORNING_WALK as tagId. Replace {tagId} in the update and delete paths below with the stored value. The base organization uses the submitted key as its ID; other organizations receive P{partnerId}_{key}. Always use the returned ID rather than constructing one yourself.
Update Tags
Update an active tag before Users begin recording check-ins for it.
PUT /health-tags/partner/v1/tags/{tagId}
Content-Type: application/json{
"title": "Morning walk",
"description": "User completed a morning walk.",
"categoryId": "ACTIVITY"
}Update rules:
- At least one request field must contain a non-blank value.
- A supplied category must exist.
- A supplied title must be unique among your organization's active tags, ignoring case.
- Tags with any customer check-in response cannot be updated.
Validation failures, including an attempt to update a tag with existing check-in responses, return 400 Bad Request. Error response messages are not currently stable, so do not parse the message text as a machine-readable error code.
Handle Common Outcomes
If a tag update returns 400 Bad Request, validate the request fields and do not retry the same request unchanged. Existing User check-in responses are one possible cause. Because the error message is not stable, do not use its text to distinguish that condition from other validation failures. Treat tag definitions as immutable after they have been used in a check-in.
If tag creation fails because the resulting tag identifier is already in use, choose a new key. Soft-deleted tag identifiers cannot be reused.
Delete Tags
Deleting a tag soft-deletes the active tag definition. Historical User responses are retained.
DELETE /health-tags/partner/v1/tags/{tagId}Key Field Relationships
| Field | Description |
|---|---|
id | Category identifier. Use this as categoryId when creating or updating a tag. |
name | Category display name. |
| Field | Description |
|---|---|
key | Required suggested key. Maximum 50 characters. Only uppercase letters, digits, and underscores are allowed. |
title | Required tag title. Maximum 50 characters. |
description | Required tag description. Maximum 200 characters. |
categoryId | Required identifier of an existing tag category. |
| Field | Description |
|---|---|
id | Tag identifier returned by the API. Store this value for User selection and check-ins. |
title | Tag title. |
description | Tag description. |
category | Category metadata for the tag. |
partnerId | Identifier for the organization that owns the tag. |
Best Practices
Store returned tag IDs
Store and reuse the tag IDs returned by the API. Do not reconstruct an ID from the submitted key or use the tag title as its canonical identifier.
Fetch categories before creation
Use category responses as the source for valid categoryId values in create and update requests.
Plan tag edits before User check-ins
Finalize title, description, and category choices before presenting a tag to Users. If check-in responses already exist, the API rejects the update.
Use status codes for errors
Use the HTTP status to handle failures. Error response messages are not currently a stable integration contract.
Implementation Checklist
- Fetch tag categories before creating custom tags.
- Choose
BASE,CUSTOM, orCOMBINEDwhen listing tags. - Create tags with uppercase
keyvalues. - Store returned tag IDs.
- Finalize tag titles, descriptions, and categories before Users begin recording check-ins.
- Treat deletion as a soft delete that retains historical responses.
Related API Reference
Related Topics
Updated about 1 month ago