Tags
Tag entities for your team's workflow.
tag_scope=organization in GET/DELETE query parameters or POST bodies to share assignments within the authenticated organization. Active membership and its tag permission are required. Private tags are never converted. Reads require tags:read; writes require tags:write. Sandbox/test keys cannot create or delete tags.tags=<name> returns 404 NOT_FOUND with details: [{"field": "tags", "issue": "unknown_tag", "received": "<name>"}] when the name is none of your static, dynamic, or organization tags, instead of an empty list. A tag you have that has no members for that resource still returns 200 with zero rows. The 404 costs 0 credits.entity_type (canonical, per the OpenAPI spec) or resource (alias). Responses always return entity_type. Examples on this page use entity_type; either works.Body schema (write endpoints)
POST /v1/tags, DELETE /v1/tags, and POST /v1/tags/bulk share the same body fields:
| Parameter | Type | Description |
|---|---|---|
tag_scope | string | private (default) or organization. Use the same scope for reads, writes, and deletion. |
entity_idrequired | string | ID of the entity to tag. For bulk, use entity_ids (array) instead. |
entity_ids | string[] | Bulk endpoint only. Up to 100 entities per call. |
entity_typerequired | string | One of: companies, personnel, broker-offices, brokers. Alias: resource. |
tagrequired | string | Tag name. Free-text; normalized on write and filter (leading # stripped, casing folded). |
List Tags
/v1/tags0 creditsReturns tag assignments for the authenticated API user, optionally filtered by entity type or tag name. Filtering, counts, and pagination are performed in the database. One entity can hold many tags.
| Parameter | Type | Description |
|---|---|---|
tag | string | Filter to one tag name. Normalized the same way as writes (leading # stripped, casing folded). |
entity_type | string | Filter to one entity type. Alias: resource. Both target_pool and target-pool select internal pool assignments. |
resource | string | Alias of entity_type. |
exclude_internal | boolean | Default false. Set true to exclude internal pool assignments before counting and pagination. Invalid values return 400. |
include_unresolved | boolean | Default false. Set true to also return assignments whose entity no longer exists, flagged resolved: false. |
page | integer | Zero-indexed page. |
page_size | integer | Default 25, max 500. |
Assignments whose entity no longer exists are left out of the rows and of total_count, so the count matches what a tags filter returns. meta.unresolved_count reports how many were left out. The same applies to GET /v1/tags/entities.
The MCP tags tool with action: list accepts these query parameters in input. Results remain user-scoped and cost zero credits. Pages use tag name, creation time descending, and row ID as a stable ordering.
curl -H "Authorization: Bearer ss_live_..." \
"https://api.hillwinds.ai/v1/tags?exclude_internal=true&page_size=3"{
"ok": true,
"data": [
{
"entity_id": "452990868",
"entity_type": "companies",
"tag": "q2-2026-outreach",
"tag_id": "cde98e19-fbb6-40f1-adf9-225d3dcd9f06"
},
{
"entity_id": "71038294",
"entity_type": "companies",
"tag": "renewals",
"tag_id": "afb60fb8-b651-4afa-89c2-4d133fae264d"
}
],
"meta": {
"total_count": 5,
"page": 0,
"page_size": 3,
"returned": 2,
"has_more": true,
"unresolved_count": 0,
"credits_charged": 0
}
}List Tags for One Entity
/v1/{resource}/{id}/tags0 creditsReturns the authenticated API user's tags for one entity. Supported resources are companies, personnel, broker-offices, and brokers.
curl -H "Authorization: Bearer ss_live_..." \
"https://api.hillwinds.ai/v1/companies/452990868/tags"Add Tag
/v1/tags0 creditsAdd a single tag to a single entity. Idempotent — re-tagging is a no-op.
The entity_id must name an existing entity of the given type; otherwise the call returns 404 NOT_FOUND and writes nothing. Company ids accept the EIN with or without dashes or leading zeros and are stored in canonical form (digits only, no leading zeros). The same id may carry the same tag under different entity types. If the entity lookup is unavailable, the call returns 503 QUERY_UNAVAILABLE and writes nothing.
curl -X POST -H "Authorization: Bearer ss_live_..." \
-H "Content-Type: application/json" \
-d '{"entity_type": "companies", "entity_id": "84629153", "tag": "q2-2026-outreach"}' \
"https://api.hillwinds.ai/v1/tags"{
"ok": true,
"data": {
"id": "d9118921-fcf7-4e85-8f96-4473763884ff",
"entity_id": "84629153",
"entity_type": "companies",
"tag": "q2-2026-outreach",
"created_at": "2026-06-10T02:06:37.015041+00:00",
"user_id": null
},
"meta": { "credits_charged": 0 }
}Remove Tag
/v1/tags0 creditsRemoves exactly one (entity, tag) pair. Identify it by both entity_id and tag, adding entity_type when the same entity id is tagged under more than one type. There is also a by-id form: DELETE /v1/tags/{id} takes the tag record UUID in the path — useful when you already have the id from a list call.
Selectors may be sent in the JSON body, the query string, or both; they are merged, and a selector sent in both places must have the same value. A request without an id that lacks entity_id or tag returns 400 VALIDATION_ERROR naming the missing fields and deletes nothing. Selectors that match more than one assignment also return 400, and no match returns 404. An id that is not a UUID also returns 404; there is no bulk delete, so DELETE /v1/tags/bulk is a 404 too. The same rules apply to tag_scope=organization.
curl -X DELETE -H "Authorization: Bearer ss_live_..." \
-H "Content-Type: application/json" \
-d '{"entity_type": "companies", "entity_id": "84629153", "tag": "q2-2026-outreach"}' \
"https://api.hillwinds.ai/v1/tags"Bulk Tag
/v1/tags/bulk0 creditsApply a single tag to up to 100 entities in one request. Idempotent per entity: the response is 201 when at least one new assignment was created and 200 when every entity already had the tag (created: 0), as POST /v1/tags does. A body missing entity_type, entity_ids or tag returns 400 VALIDATION_ERROR naming each missing field.
curl -X POST -H "Authorization: Bearer ss_live_..." \
-H "Content-Type: application/json" \
-d '{
"entity_type": "companies",
"entity_ids": ["84629153", "71038294", "452990868"],
"tag": "q2-2026-outreach"
}' \
"https://api.hillwinds.ai/v1/tags/bulk"{
"ok": true,
"data": {
"created": 2,
"matched": 2,
"rejected": [{ "entity_id": "452990868", "issue": "not_found" }],
"tags": [
{
"id": "33c77e89-c2cd-46d7-951d-fd5d1277e9a0",
"entity_id": "84629153",
"entity_type": "companies",
"tag": "q2-2026-outreach",
"created_at": "2026-06-10T02:41:52.769579+00:00"
}
/* ... one entry per matched entity_id ... */
]
},
"meta": { "credits_charged": 0 }
}created counts newly inserted tag rows; matched counts every existing entity the call tagged (including ones that were already tagged). rejected lists ids that match no entity of the given type; nothing is written for them, and a call where every id is rejected returns 200 with matched: 0.
Bulk Remove
/v1/tags/bulk-delete0 creditsRemove one tag from up to 100 entities of one type in a single transaction — for example to undo a bulk tag without one call per row. entity_type, entity_ids, and tag are all required; a missing one returns 400 naming the field, and more than 100 ids returns 400 limit_exceeded. Only your own assignments of that tag on those entities are removed (or the organization's with tag_scope=organization). An assignment stored under an entity's older id spelling is removed with it.
curl -X POST -H "Authorization: Bearer ss_live_..." \
-H "Content-Type: application/json" \
-d '{
"entity_type": "companies",
"entity_ids": ["84629153", "71038294", "452990868"],
"tag": "q2-2026-outreach"
}' \
"https://api.hillwinds.ai/v1/tags/bulk-delete"{
"ok": true,
"data": {
"deleted": 2,
"deleted_entity_ids": ["84629153", "71038294"],
"not_found": ["452990868"]
},
"meta": { "credits_charged": 0 }
}deleted counts entities whose tag was removed; not_found lists requested ids that held no such tag. The call returns 200 even when nothing matched. The MCP tags tool exposes it as action=remove_bulk.
List Entities for a Tag
/v1/tags/entities0 creditsThe read-side counterpart to POST /v1/tags/bulk: fetch every entity that shares a tag. Look up by either tag (name) or tag_id (UUID).
To go the other way — every tag on one entity — use the per-entity read on its resource: GET /v1/companies/:id/tags, GET /v1/personnel/:id/tags, GET /v1/brokers/:id/tags or GET /v1/broker-offices/:id/tags. These reads charge no credits. Contacts also expose their tags inline as the tags field on GET /v1/personnel/:id?mode=full.
| Parameter | Type | Description |
|---|---|---|
tag | string | Tag name. Provide tag or tag_id. |
tag_id | string | Tag record UUID. Provide tag or tag_id. |
entity_type | string | Restrict to one entity type. Alias: resource. |
page | integer | Zero-indexed page. |
page_size | integer | Default 25, max 500. |
curl -H "Authorization: Bearer ss_live_..." \
"https://api.hillwinds.ai/v1/tags/entities?tag=q2-2026-outreach&entity_type=companies"{
"ok": true,
"data": [
{
"id": "d9118921-fcf7-4e85-8f96-4473763884ff",
"entity_id": "84629153",
"entity_type": "companies",
"tag": "q2-2026-outreach",
"created_at": "2026-06-10T02:06:37.015041+00:00"
}
],
"meta": {
"total_count": 1,
"page": 0,
"page_size": 25,
"returned": 1,
"has_more": false,
"credits_charged": 0
}
}Keys are issued by our team, not a signup form. Book a 25-minute walkthrough and you'll leave with sandbox and live credentials.