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-tags scope.
  • 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.

OperationRequired service-level token scope
List tag categorieshealth-tags:r
List tag definitionsEither health-tags:r or health-tags:w
Create, update, or delete tagshealth-tags:w

Management Tasks

The management endpoints support several tag-management tasks.

list
Inspect available tags

List categories and tag definitions when you need to build or audit the catalog available to your application.

plus
Create custom tags

Add custom tags when the base catalog does not cover the User context you need to track.

pen
Update active tags

Change an active tag before Users have recorded check-ins for it.

archive
Retire tags

Soft-delete tags that should no longer be available for future selection.

Common Paths

TaskTypical Steps
Inspect available tagsFetch categories, then list BASE, CUSTOM, or COMBINED tag definitions.
Add a custom tagFetch categories, create the tag with a valid categoryId, then store the returned id.
Change an active tagUpdate title, description, or category before Users begin recording check-ins for the tag.
Retire a tagDelete the active tag definition. Historical User responses are retained.

Endpoint Overview

StepEndpointPurpose
List categoriesGET /health-tags/partner/v1/tag-categoriesReturns available tag categories.
List tagsGET /health-tags/partner/v1/tagsReturns non-deleted tag definitions for the requested source.
Create tagPOST /health-tags/partner/v1/tagsCreates an active custom tag.
Update tagPUT /health-tags/partner/v1/tags/{tagId}Updates an active custom tag.
Delete tagDELETE /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-categories

Category query parameters:

ParameterRequiredDefaultUse
pageNo0Zero-based page index. Must be zero or greater.
sizeNo20Maximum 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=20

Tag list query parameters:

ParameterRequiredDefaultUse
tagSetNoBASESelects which source of tags to return.
categoryIdNononeFilters tags to a single category. Omit it to return all categories.
pageNo0Zero-based page index. Must be zero or greater.
sizeNo20Maximum number of tags per page. Must be greater than zero.
ValueDescription
BASEInsideTracker-owned tags.
CUSTOMCustom tags available through your organization.
COMBINEDBase 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:

  • key must use uppercase letters, digits, and underscores.
  • title must be unique among your organization's active tags, ignoring case.
  • categoryId must 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

FieldDescription
idCategory identifier. Use this as categoryId when creating or updating a tag.
nameCategory display name.

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, or COMBINED when listing tags.
  • Create tags with uppercase key values.
  • 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


Did this page help you?